In an update feature, I modify an Graphic Algorithm Text object using an EMF object. Then I invoke undo by pressing Ctrl-z. I wonder if there some mechanism available to sync the Text value and EMF object after an undo is performed?
Is there any setup step for the ICustomUndoableFeature to work in 0.9.2? I tried this before, the undo method is not invoked by pressing ctrl-z a few times in sequence.
My feature is an update feature, I modify the EMF model from a property view. After that, I invoke the update feature to display the new model value in a Text graphic algorithm. I repeated this step for a few times before I press ctrl-z key a few time.
I thought the update feature's undo method should be invoked at this point. But it is not invoked.
Do I need to set up the link between ctrl-z and this update feature. Just some thoughts.
Michael Wenz Messages: 1884 Registered: July 2009 Location: Walldorf, Germany
not sure what causes that, just some thoughs...
You might check the undo is done in the rigth editing domain. If it happens
from the property sheet it might get mixed up with another one. Also CTRL-Z
is bound in SWT text fields, in case the focus is still there or the command
binding might was not reset to the editor it might simply be the field undo
that gets executed...