| Disabling Undo [message #654034] |
Sun, 13 February 2011 06:43  |
Jos Warmer Messages: 104 Registered: October 2010 |
Senior Member |
|
|
Hi,
I am trying to disable undo in my Graphiti editor. I have redefined canUndo() to return false in all features. Disregarding this, the Undo option in the default popup menu is still enabled and performing an undo. I see several types of undo: Undo Layout, Undo Update, Undo Add and Undo Do. I don't understand why Graphiti still assumes it can undo things.
Is there anything else that I can do to disable the undo command? I just want it to be removed from the standard popup menu.
Jos
|
|
|
|
|
|
|
|
|
| Re: Disabling Undo [message #732247 is a reply to message #730861] |
Tue, 04 October 2011 06:23  |
Harish Messages: 1 Registered: October 2011 |
Junior Member |
|
|
Hi Jos,
As suggested by you, we were able to disable the Undo option in the context menu by creating our own DiagramEditorContextMenuProvider and overriding the method.
We also have to disable the Undo and Redo button in the toolbar, Please suggest how to do it.
Thanks,
Harish
|
|
|
Powered by
FUDForum. Page generated in 0.03154 seconds