|Re: Undo of commands [message #234504 is a reply to message #233144]
||Tue, 23 June 2009 08:50
Originally posted by: c.sanchez.iactive.es|
Hi, I have the same problem. Any idea?
> Hello guys.
> I have implemented a SetCommand (EMF) which I don't want it to be
> Undone, so the method doCanUndo() is returning false. Let's imagine I
> make some modifications in my diagram and then I execute that command
> through the editingDomain.getCommandStack().execute(). Then if I go to
> Undo one of the previous changes, it doesn't appear, actually no change
> appears as undoable. Is this behavior normal? This is happening using an
> AbstractCommand (GMF) as well.
> I need to make some modifications with a Command but I don't want it to
> appear in the CommandStack undoable commands, and I don't know if
> overriding the canUndo() method is the right way.
> Any hint?
> Thank u guys
Powered by FUDForum
. Page generated in 0.01246 seconds