|
Re: Diagram fragmentation: "Create Submodel" from diagram [message #1755150 is a reply to message #1753737] |
Tue, 28 February 2017 08:19  |
Eclipse User |
|
|
|
Hi Tjalling,
As far as I know, it's not available in Papyrus.
But the control mode framework was developed independent of UML (but never officially tested on pure emf models)
You may try to add your custom eclipse menu on the notation file.
Here is the code for the Papyrus control mode menus declaration
org.eclipse.papyrus\plugins\infra\services\org.eclipse.papyrus.infra.services.controlmode\plugin.xml
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?after=tools">
<command
commandId="org.eclipse.papyrus.infra.services.controlmode.createsubmodel"
icon="icons/CreateSubModel_16.png"
label="%cmd.control.label"
style="push"
tooltip="%cmd.control.tip">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isFragmentModel"
value="false">
</test>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.infra.services.controlmode.reintegratesubmodel"
icon="icons/ReintegrateSubModel_16.png"
label="%cmd.uncontrol.label"
style="push"
tooltip="%cmd.uncontrol.tip">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<and>
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isFragmentModel"
value="true">
</test>
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isParentLoaded"
value="true">
</test>
</and>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.infra.services.controlmode.toggleSubmodelStyle"
label="%cmd.submodel.label"
style="toggle"
tooltip="%cmd.submodel.tip">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<and>
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isFragmentModel"
value="true">
</test>
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isParentLoaded"
value="true">
</test>
</and>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
Regards,
Benoit
|
|
|
Powered by
FUDForum. Page generated in 0.06726 seconds