1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

passing token to MIEvent.

This commit is contained in:
Alain Magloire 2002-10-26 20:24:27 +00:00
parent 3861e97a3b
commit da1086033d
3 changed files with 3 additions and 4 deletions

View file

@ -113,7 +113,7 @@ public class RegisterManager extends SessionObject {
for (int i = 0 ; i < regnos.length; i++) {
Register reg = getRegister(regnos[i]);
if (reg != null) {
eventList.add(new MIRegisterChangedEvent(reg.getName(), regnos[i]));
eventList.add(new MIRegisterChangedEvent(changed.getToken(), reg.getName(), regnos[i]));
}
}
MIEvent[] events = (MIEvent[])eventList.toArray(new MIEvent[0]);

View file

@ -93,8 +93,7 @@ public class Variable extends CObject implements ICDIVariable {
}
// If the assign was succesfull fire a MIVarChangedEvent()
// FIXME: Is this necessary?
MIVarChangedEvent change = new MIVarChangedEvent(miVar.getVarName(), true);
MIVarChangedEvent change = new MIVarChangedEvent(var.getToken(), miVar.getVarName(), true);
mi.fireEvent(change);
}

View file

@ -105,7 +105,7 @@ public class VariableManager extends SessionObject implements ICDIExpressionMana
String varName = changes[i].getVarName();
Element element = getElement(varName);
if (element != null) {
eventList.add( new MIVarChangedEvent(varName, changes[i].isInScope()));
eventList.add(new MIVarChangedEvent(update.getToken(), varName, changes[i].isInScope()));
}
if (! changes[i].isInScope()) {
// Only remove ICDIVariables.