Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » determine creation source of elements
determine creation source of elements [message #1014229] Mon, 25 February 2013 07:05 Go to next message
Eclipse UserFriend
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 02:32 Go to previous messageGo to next message
Eclipse UserFriend
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 05:52 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 14:16:46 EDT 2025

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

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

Back to the top