Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » drag-in menu contribution
drag-in menu contribution [message #183790] Tue, 22 April 2008 09:05 Go to next message
Eclipse UserFriend
Originally posted by: matthias.schmidt.xactium.com

Hello everybody,

I want to write a plug-in which adds an action to the context menu that
appears when you drag-in a new node from the palette to the diagram.
This menu is usually only shown when there is just one tool specified
for two different nodes and it asks you to choose which node you want to
add.

Can anybody give me a hint how to access this menu? It's probably some
sort of org.eclipse.ui.popupMenus, isn't it?

Thanks in advance,

Matthias
Re: drag-in menu contribution [message #183821 is a reply to message #183790] Tue, 22 April 2008 10:46 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Matthias,

If you need to understand how does this kind of tool works then see:
- UnspecifiedTypeCreationTool
- CreationEditPolicy (UnspecifiedTypeCreationTool handled there)
- CreateOrSelectElementCommand (popup menu will be displayed by this command)

-----------------
Alex Shatalin
Previous Topic:Preventing Node being added to Diagram
Next Topic:Multiple domain models for diagrams
Goto Forum:
  


Current Time: Tue Apr 16 09:17:11 GMT 2024

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

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

Back to the top