Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » composing commands vs executing commands inside doExecuteWithResult
composing commands vs executing commands inside doExecuteWithResult [message #66569] Fri, 20 October 2006 18:39 Go to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

I find myself creating AbstractTransactionalCommands that execute other
semantic commands in doExecuteWithResult.

Is this the right approach? Should I be composing commands instead?

thank you

vlad
Re: composing commands vs executing commands inside doExecuteWithResult [message #67860 is a reply to message #66569] Mon, 23 October 2006 14:15 Go to previous message
Linda Damus is currently offline Linda DamusFriend
Messages: 85
Registered: July 2009
Member
Hello Vlad,

It is preferable if you use a composite rather than delegating to the
other command. By using a composite command the affected files and
undo/redo behaviour of its children will automatically be considered
when the composite is executed. If you delegate to the second command,
you need to ensure that your wrapper command correctly reflects the
affected files and undo/redo behaviour of its delegate.

Regards,
Linda

Vlad Ciubotariu wrote:
> I find myself creating AbstractTransactionalCommands that execute other
> semantic commands in doExecuteWithResult.
>
> Is this the right approach? Should I be composing commands instead?
>
> thank you
>
> vlad
Previous Topic:Link mapping problem
Next Topic:Toggle arrange all action
Goto Forum:
  


Current Time: Thu Aug 08 23:12:44 GMT 2024

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

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

Back to the top