| aovoid, forbid undo in Commands [message #632907] |
Thu, 14 October 2010 11:52  |
AlexejS Mising name Messages: 25 Registered: May 2010 |
Junior Member |
|
|
Hello Community,
I hope here is someone who can help me.
My aim is to execute a Command such AbstractCommand or other Commnad with no undo possibility.
until now I execute my commands in this way ->
targetEditPart.getEditingDomain().getCommandStack().execute(command);
I tried also simply command.execute() <- but in this case the framework throw an exception at the moment when it want modify the model.
I just don't want to see an Undo-Option in Editmenu.
Thx
[Updated on: Thu, 14 October 2010 11:53] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01809 seconds