|
Re: composing commands vs executing commands inside doExecuteWithResult [message #67860 is a reply to message #66569] |
Mon, 23 October 2006 10:15  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04559 seconds