mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fire a ChangedEvent when the assign is successfull.
This commit is contained in:
parent
71d62cdd6e
commit
074c939b24
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,7 @@ import org.eclipse.cdt.debug.mi.core.command.CommandFactory;
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIVarAssign;
|
import org.eclipse.cdt.debug.mi.core.command.MIVarAssign;
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIVarSetFormat;
|
import org.eclipse.cdt.debug.mi.core.command.MIVarSetFormat;
|
||||||
import org.eclipse.cdt.debug.mi.core.command.MIVarShowAttributes;
|
import org.eclipse.cdt.debug.mi.core.command.MIVarShowAttributes;
|
||||||
|
import org.eclipse.cdt.debug.mi.core.event.MIVarChangedEvent;
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIVar;
|
import org.eclipse.cdt.debug.mi.core.output.MIVar;
|
||||||
import org.eclipse.cdt.debug.mi.core.output.MIVarShowAttributesInfo;
|
import org.eclipse.cdt.debug.mi.core.output.MIVarShowAttributesInfo;
|
||||||
|
@ -90,6 +91,11 @@ public class Variable extends CObject implements ICDIVariable {
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
throw new CDIException(e.getMessage());
|
throw new CDIException(e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the assign was succesfull fire a MIVarChangedEvent()
|
||||||
|
// FIXME: Is this necessary?
|
||||||
|
MIVarChangedEvent change = new MIVarChangedEvent(miVar.getVarName(), true);
|
||||||
|
mi.fireEvent(change);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue