Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » aovoid, forbid undo in Commands(aovoid, forbid undo in Commands)
aovoid, forbid undo in Commands [message #632907] Thu, 14 October 2010 15:52 Go to next message
AlexejS Mising name is currently offline AlexejS Mising nameFriend
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 15:53]

Report message to a moderator

Re: aovoid, forbid undo in Commands [message #632939 is a reply to message #632907] Thu, 14 October 2010 17:16 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Alexej.

In what way is this related to Buckminster?

- thomas

On 10/14/2010 05:52 PM, AlexejS wrote:
> 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 a Undo option in Editmenu.
>
> Thx
Re: aovoid, forbid undo in Commands [message #632948 is a reply to message #632939] Thu, 14 October 2010 18:17 Go to previous message
AlexejS Mising name is currently offline AlexejS Mising nameFriend
Messages: 25
Registered: May 2010
Junior Member
Hello Thomas,

this post was a mistake by me, it does not belong in this Forum.
But I'm not able to delete them.

Regards,

Alexej
Previous Topic:One or more certificates rejected. Cannot proceed with installation.
Next Topic:site.p2 task does not create native launcher
Goto Forum:
  


Current Time: Thu Mar 28 15:26:36 GMT 2024

Powered by FUDForum. Page generated in 0.04278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top