|Disabling Undo Issues [message #1122687]
||Tue, 01 October 2013 20:57
| Philip Alldredge
Registered: February 2013
I am using a non-EMF model and I am implementing ICustomUndoablePattern to return false during canUndo() in an attempt to prevent the feature from being undone. However, eclipse provides the undo command to the user.
For example after creating a connection from the palette, the undo command in eclipse is not-disabled and has the text, "Undo connection creation".
Is there any way to disable undo/redo functionality? In my example case, when the user runs undo, the connection pictogram is removed, but because the feature is not undoable, the underlying business model is not changed.
I would prefer a method that would disable undoing/clear the undo stack in cases like this. It would allow me and others to work on our editors and add undo functionality as practical.
Powered by FUDForum
. Page generated in 0.10360 seconds