Extending Papyrus - adding a new command to a papyrus menu [message #896930] |
Fri, 20 July 2012 09:16  |
Eclipse User |
|
|
|
Hi,
I want to develop a plugin to add new functionality while working with papyrus.
Assume user creates a State Diagram, drags/drop some states and transitions. Now for example, when s/he right clicks a state, I want to add a new command on the popped menu.
I searched for the extension points and identifiers. However, I couldnt find something useful.
Am I on the right path? or How do you think this can be done?
Thanks.
|
|
|
|
|
|
Re: Extending Papyrus - adding a new command to a papyrus menu [message #903219 is a reply to message #896930] |
Wed, 22 August 2012 10:51  |
Eclipse User |
|
|
|
Thanks Camille and Nicolas,
Solution:
As Camille said, I dig into the source code of "org.eclipse.papyrus.uml.diagram.menu" and found how papyrus team implemented the context views and commands such as "Format" and "Filter" by searching the extention points and locationURIs in the plugin.xml file.
For instance, the locationURI for adding a command in the context menu after right click in a papyrus diagram is "popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu"
Regards.
Mahmut
|
|
|
Powered by
FUDForum. Page generated in 0.03339 seconds