Hi,
to add a popup menu item to Lifelines in the model explorer, you can use the following:
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
<command
commandId="<your-command-id>"
id="<your-contribution-id>"
label="Label"
style="push">
<visibleWhen checkEnabled="false">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.emf.ecore.EObject">
<instanceof value="org.eclipse.uml2.uml.Lifeline"/>
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
</extension>
Hope this helps!
Best wishes,
Philip
--
Philip Langer
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
[Updated on: Wed, 28 December 2016 10:56] by Moderator