Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » determine creation source of elements
determine creation source of elements [message #1014229] Mon, 25 February 2013 12:05 Go to next message
Chris B. is currently offline Chris B.Friend
Messages: 37
Registered: November 2011
Member
Hi,

is it possible to find out whether an element is created from the palette or the context menu while dragging it?

Regards,
Chris
Re: determine creation source of elements [message #1014631 is a reply to message #1014229] Tue, 26 February 2013 07:32 Go to previous messageGo to next message
Thomas Beyer is currently offline Thomas BeyerFriend
Messages: 55
Registered: February 2013
Member
Hi Chris,

what exactly do you mean by Quote:
the context menu while dragging it
? The Popup Handles on the diagram elements?


Regards
Thomas
Re: determine creation source of elements [message #1015063 is a reply to message #1014631] Wed, 27 February 2013 10:52 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

GraphicalNodeEditPolicy is responsible for showing this context menu. You could add information to the request's map used to store parameters. This you could check in your creation command and execute code depending on this value. Is this what you intend to do? If yes I can give you further details, methods to modiy, installing a custom graphical node edit policy etc.

Ralph
Previous Topic:Dependencies to externalize a plugin
Next Topic:GMF examples sources
Goto Forum:
  


Current Time: Fri Apr 19 14:21:43 GMT 2024

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

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

Back to the top