Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Chaining commands
Chaining commands [message #246261] Mon, 17 November 2008 17:21
No real name is currently offline No real nameFriend
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?
Previous Topic:[Zest] How to use the Directed Graph Layout Algorithm?
Next Topic:Startup Performance
Goto Forum:
  


Current Time: Tue Apr 23 03:53:33 GMT 2024

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

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

Back to the top