Skip to main content



      Home
Home » Modeling » Papyrus » Diagram fragmentation: "Create Submodel" from diagram(Does Papyrus support fragmenting Diagrams, separately from fragmenting Models?)
icon5.gif  Diagram fragmentation: "Create Submodel" from diagram [message #1753737] Thu, 09 February 2017 08:41 Go to next message
Eclipse UserFriend
Papyrus supports UML model fragmentation, as a way to support working in a team environment. (Context menu in the Eclipse Model Explorer -> Create Submodel). This works well.

A Submodel gets its own *.notation file, so there is diagram fragmentation that is coupled to UML model fragmentation.

However, I'd like to fragment the diagram file (the *.notation file) on its own, independently from UML model fragmentation (similar to how UML Designer has the 'extract to .aird file' functionality). Is it possible to do so in Papyrus?
Re: Diagram fragmentation: "Create Submodel" from diagram [message #1755150 is a reply to message #1753737] Tue, 28 February 2017 08:19 Go to previous message
Eclipse UserFriend
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
Previous Topic:Reference is displayed incorrectly in Papyrus 2
Next Topic:Abort Save
Goto Forum:
  


Current Time: Thu Jul 17 13:28:05 EDT 2025

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

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

Back to the top