Chaining commands [message #246261] |
Mon, 17 November 2008 17:21 |
No real name Messages: 38 Registered: July 2009 |
Member |
|
|
I have what seems to be a basic problem, but cannot find the solution
(maybe because of my age!?)
I've extended the AbstractGraphicalEditPart and installed an edit policy
with:
installEditPolicy(EditPolicy.LAYOUT_ROLE, new MyPolicy());
Everything is working peachy, I can create n edit objects using the
commands created by the edit policy.
However, I would like to chain an edit command along with my create
command. A simple 'cmd.chain(editCommand)' in
MyPolicy::getCreateCommand() won't work because the edit command is
passed the object to edit and this object is created in the
CreateCommand::execute() method.
(How) can I retrieve any chained commands from my create command class
and pass (a reference to) the object it just created to this chained
command?
|
|
|
Powered by
FUDForum. Page generated in 0.03082 seconds