Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » examples of right-click on an EditPart to create child objects
examples of right-click on an EditPart to create child objects [message #191206] Tue, 09 August 2005 14:29 Go to next message
Eclipse UserFriend
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 15:20 Go to previous message
Andreas Holtz is currently offline Andreas HoltzFriend
Messages: 53
Registered: July 2009
Member
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.
Previous Topic:Hi, FreshMan coming
Next Topic:Invoking A Command
Goto Forum:
  


Current Time: Thu Dec 12 17:16:09 GMT 2024

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

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

Back to the top