examples of right-click on an EditPart to create child objects [message #191206] |
Tue, 09 August 2005 10:29  |
Eclipse User |
|
|
|
Originally posted by: pbeagan.yahoo_nospam_.com
I want to be able to right click on the editor to bring up a list
of objects that can be placed there, select and have it be created.
Likewise, I want to be able to right click on an object an get a list of
possible child objects, select and have it created. Seems like logic,
flow, schema and shapes all use drag from palette.
Are there any examples of this out there?
Thanks.
|
|
|
Re: examples of right-click on an EditPart to create child objects [message #191214 is a reply to message #191206] |
Tue, 09 August 2005 11:20  |
Eclipse User |
|
|
|
Patrick Beagan schrieb am 09.08.2005 16:29:
> I want to be able to right click on the editor to bring up a list
> of objects that can be placed there, select and have it be created.
Look at the Logic example how increment and decrement of a LED works. Instead of implementing an incrementAction implement an
createModelElementAction (or what you name it) where you create the createRequest for the new element.
> Likewise, I want to be able to right click on an object an get a list of
> possible child objects, select and have it created.
You can handle this within calculateEnabled() of the action.
|
|
|
Powered by
FUDForum. Page generated in 0.06770 seconds