Skip to main content



      Home
Home » Eclipse Projects » GEF » Create new command from within command?
Create new command from within command? [message #94899] Thu, 18 September 2003 17:37 Go to next message
Eclipse UserFriend
Originally posted by: felix.mayer.cingular.com

I have the need to create a new command from within Command.execute().
Is that okay as long as I execute it with CommandStack.execute()?
Re: Create new command from within command? [message #94942 is a reply to message #94899] Thu, 18 September 2003 23:20 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You must execute, undo, and redo the created command from within the command
which created it. Otherwise, undo and redo will not be atomic. Also,
you'll have better control of the order in which the two commands are
undone.

"Felix Mayer" <felix.mayer@cingular.com> wrote in message
news:bkd8hv$dgt$1@eclipse.org...
> I have the need to create a new command from within Command.execute().
> Is that okay as long as I execute it with CommandStack.execute()?
>
Previous Topic:EditPart layout manager
Next Topic:Image (GIFF/TIFF) Editor
Goto Forum:
  


Current Time: Mon Jul 21 21:53:37 EDT 2025

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

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

Back to the top