Disabling Undo of Graphical Changes? [message #1066655] |
Wed, 03 July 2013 11:10  |
Eclipse User |
|
|
|
I am working with a non-EMF model. I have implemented canUndo() on my features to return false. However, undo is not disabled and the user is able to call undo which rolls back any changes to the Graphical EMF model. I have noticed that unless ICustomUndoableFeature is implemented that canUndo is not even called and that GFWorkspaceCommandStackImpl first rolls back EMF undo's before checking whether features can be undone.
Is there any way to completely disable undo after a feature that can not be undone is executed? I would like to implement undo capability in the future for my features but in the meanwhile I would like to be able to prevent partial undo which result from the graphical model being undone but not the domain model.
Thank you
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03113 seconds