diff options
author | Shuai Li | 2015-03-31 16:04:19 +0000 |
---|---|---|
committer | Camille Letavernier | 2015-04-01 08:42:16 +0000 |
commit | 656e4ef5bed59f9e983e2d45572750b9ccef4d7f (patch) | |
tree | b4ac0afedbb668b7268b465068fa710a2e5c53bb /plugins/sysml | |
parent | abdedeac563ed695b061b4cc73d39ac26fcbf8c7 (diff) | |
download | org.eclipse.papyrus-656e4ef5bed59f9e983e2d45572750b9ccef4d7f.tar.gz org.eclipse.papyrus-656e4ef5bed59f9e983e2d45572750b9ccef4d7f.tar.xz org.eclipse.papyrus-656e4ef5bed59f9e983e2d45572750b9ccef4d7f.zip |
Bug 435502 - [Usability] The New Child/Diagram context menu subitems
waste screen space
- Drop "UML" and "SysML" in "New Diagram" and "New Table" menus
Signed-off-by: Shuai Li <shuai.li@cea.fr>
Change-Id: I85210243df4b39ec912f70239bc8538e775e11e2
Reviewed-on: https://git.eclipse.org/r/44930
Tested-by: Hudson CI
Reviewed-by: Camille Letavernier <camille.letavernier@cea.fr>
Diffstat (limited to 'plugins/sysml')
7 files changed, 1135 insertions, 1135 deletions
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.gen.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.gen.xml index 02d27c02739..ba948d9fabf 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.gen.xml +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.gen.xml @@ -9,7 +9,7 @@ icon="icons/obj16/Diagram_BlockDefinition.gif" id="org.eclipse.papyrus.sysml.diagram.blockdefinition.CreateCommand" language="sysml" - label="SysML Block Definition Diagram"/> + label="Block Definition Diagram"/> <editorDiagram actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor" factoryClass="org.eclipse.papyrus.sysml.diagram.blockdefinition.BlockDefinitionDiagramEditorFactory" @@ -1168,198 +1168,198 @@ </extension> -<!-- // Start of user code custom extensions
- -->
-
-<!-- Insert custom extensions here. -->
-
-<!-- Palette tool declaration (declares the real palette containment) -->
-<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"
- name="SysML Constraints (BDD)">
- <paletteDefinition ID="SYSML_Constraints_BlockDefinition"
- class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
- name="SYSML_Constraints_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- path="palettes/blockdefinition.palette.constraints.xml"
- provider="CEA LIST">
- <Priority name="Low"/>
-
- <!-- Specify diagram this palette tools relate to -->
- <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/>
- </paletteDefinition>
-</extension>
-
-<!-- Palette tool declaration (declares the real palette containment) -->
-<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"
- name="SysML DataTypes (BDD)">
- <paletteDefinition ID="SYSML_DataTypes_BlockDefinition"
- class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
- name="SYSML_DataTypes_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- path="palettes/blockdefinition.palette.datatypes.xml"
- provider="CEA LIST">
- <Priority name="Low"/>
-
- <!-- Specify diagram this palette tools relate to -->
- <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/>
- </paletteDefinition>
-</extension>
-
-<!-- Palette tool declaration (declares the real palette containment) -->
-<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"
- name="SysML Port and flows (BDD)">
- <paletteDefinition ID="SYSML_PortAndFlows_BlockDefinition"
- class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
- name="SYSML_PortAndFlows_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- path="palettes/blockdefinition.palette.portandflows.xml"
- provider="CEA LIST">
- <Priority name="Low"/>
-
- <!-- Specify diagram this palette tools relate to -->
- <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/>
- </paletteDefinition>
-</extension>
-
-<!-- Palette tool declaration (declares the real palette containment) -->
-<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"
- name="SysML ModelElements (BDD)">
- <paletteDefinition ID="SYSML_ModelElements_BlockDefinition"
- class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
- name="SYSML_ModelElements_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- path="palettes/blockdefinition.palette.modelelements.xml"
- provider="CEA LIST">
- <Priority name="Low"/>
-
- <!-- Specify diagram this palette tools relate to -->
- <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/>
- </paletteDefinition>
-</extension>
-
-<!-- Palette tool declaration (declares the real palette containment) -->
-<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"
- name="SysML Associations (BDD)">
- <paletteDefinition ID="SYSML_Associations_BlockDefinition"
- class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
- name="SYSML_Associations_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- path="palettes/blockdefinition.palette.associations.xml"
- provider="CEA LIST">
- <Priority name="Low"/>
-
- <!-- Specify diagram this palette tools relate to -->
- <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/>
- </paletteDefinition>
-</extension>
-
-<!-- Parser provider declaration -->
-<extension point="org.eclipse.gmf.runtime.common.ui.services.parserProviders">
- <ParserProvider class="org.eclipse.papyrus.sysml.diagram.blockdefinition.provider.ParserProvider">
- <Priority name="Low"/>
- </ParserProvider>
-</extension>
-
-<extension point="org.eclipse.gmf.runtime.common.ui.services.markerNavigationProviders" id="markers-navigation">
- <MarkerNavigationProvider class="org.eclipse.papyrus.gmf.diagram.common.provider.MarkerNavigationProvider">
- <MarkerType name="org.eclipse.papyrus.sysml.diagram.blockdefinition.diagnostic"/>
- <Priority name="Lowest"/>
- </MarkerNavigationProvider>
- </extension>
-
-<extension id="diagnostic" name="Block Definition Diagram problems" point="org.eclipse.core.resources.markers">
- <super type="org.eclipse.core.resources.problemmarker"/>
- <super type="org.eclipse.gmf.runtime.common.ui.services.marker"/>
- <persistent value="true"/>
-</extension>
-
-<extension id="validationDecoratorProvider" name="ValidationDecorations" point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
- <decoratorProvider class="org.eclipse.papyrus.sysml.diagram.blockdefinition.provider.ValidationDecoratorProvider">
- <Priority name="Lowest"/>
- <object class="org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart(org.eclipse.gmf.runtime.diagram.ui)" id="PRIMARY_VIEW"/>
- <context decoratorTargets="PRIMARY_VIEW"/>
- </decoratorProvider>
-</extension>
-
-<!-- The Command to manages the Provided and Required Interfaces for a Port-->
-<extension
- point="org.eclipse.ui.commands">
- <command
- categoryId="org.eclipse.papyrus.editor.category"
- description="Allows to manage easily provided Interfaces for a Port"
- id="org.eclipse.papyrus.sysml.diagram.blockdefinition.command.manage.interfaces"
- name="Manage Provided Interfaces">
- </command>
-</extension>
-<!-- The Handler to manages the Provided and Required Interfaces for a Port-->
-<extension
- point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.papyrus.sysml.diagram.blockdefinition.handler.ManageProvidedInterfacesHandler"
- commandId="org.eclipse.papyrus.sysml.diagram.blockdefinition.command.manage.interfaces">
- <activeWhen>
- <and>
- <with
- variable="selection">
- <iterate>
- <instanceof
- value="org.eclipse.papyrus.uml.diagram.common.edit.part.DefaultChildLabelEditPart">
- </instanceof>
- </iterate>
- </with>
- <with
- variable="activeEditor">
- <test
- forcePluginActivation="true"
- property="org.eclipse.papyrus.uml.diagram.common.diagram.tester.diagramType"
- value="BlockDefinition">
- </test>
- </with>
- </and>
- </activeWhen>
- </handler>
-</extension>
-
-<!-- Add the Menu to manages the Provided and Required Interfaces for a Port-->
-<extension
- point="org.eclipse.ui.menus">
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?endof=editMenu">
- <command
- commandId="org.eclipse.papyrus.sysml.diagram.blockdefinition.command.manage.interfaces"
- icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Interface.gif"
- id="org.eclipse.papyrus.sysml.diagram.blockdefinition.popup.manage.interface"
- label="Manage Interfaces"
- mnemonic="&I"
- style="push"
- tooltip="The command to manage the interfaces provided and required by a Port">
- <!-- The action is visible only if there is an active handler for it -->
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- </menuContribution>
-</extension>
-
-<!-- Diagram specific advices -->
-<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
-
- <metamodel nsURI="http://www.eclipse.org/uml2/3.0.0/UML">
-
- <!-- Delete moved views advice -->
- <adviceBinding id="org.eclipse.papyrus.sysml.diagram.blockdefinition.DeleteViewDuringMoveHelperAdvice"
- class="org.eclipse.papyrus.sysml.diagram.blockdefinition.helper.advice.DeleteViewDuringMoveHelperAdvice"
- inheritance="all" typeId="org.eclipse.papyrus.uml.Element">
- </adviceBinding>
-
- </metamodel>
-</extension>
-
-<!-- UML ElementType bindings to Papyrus shared IClientContext -->
-<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings">
-
- <!-- Bindings declaration to shared IClientContext -->
- <binding context="org.eclipse.papyrus.infra.services.edit.TypeContext">
- <elementType ref="org.eclipse.papyrus.sysml.diagram.blockdefinition.DeleteViewDuringMoveHelperAdvice"/>
- </binding>
-
-</extension>
+<!-- // Start of user code custom extensions + --> + +<!-- Insert custom extensions here. --> + +<!-- Palette tool declaration (declares the real palette containment) --> +<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition" + name="SysML Constraints (BDD)"> + <paletteDefinition ID="SYSML_Constraints_BlockDefinition" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + name="SYSML_Constraints_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + path="palettes/blockdefinition.palette.constraints.xml" + provider="CEA LIST"> + <Priority name="Low"/> + + <!-- Specify diagram this palette tools relate to --> + <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/> + </paletteDefinition> +</extension> + +<!-- Palette tool declaration (declares the real palette containment) --> +<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition" + name="SysML DataTypes (BDD)"> + <paletteDefinition ID="SYSML_DataTypes_BlockDefinition" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + name="SYSML_DataTypes_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + path="palettes/blockdefinition.palette.datatypes.xml" + provider="CEA LIST"> + <Priority name="Low"/> + + <!-- Specify diagram this palette tools relate to --> + <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/> + </paletteDefinition> +</extension> + +<!-- Palette tool declaration (declares the real palette containment) --> +<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition" + name="SysML Port and flows (BDD)"> + <paletteDefinition ID="SYSML_PortAndFlows_BlockDefinition" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + name="SYSML_PortAndFlows_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + path="palettes/blockdefinition.palette.portandflows.xml" + provider="CEA LIST"> + <Priority name="Low"/> + + <!-- Specify diagram this palette tools relate to --> + <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/> + </paletteDefinition> +</extension> + +<!-- Palette tool declaration (declares the real palette containment) --> +<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition" + name="SysML ModelElements (BDD)"> + <paletteDefinition ID="SYSML_ModelElements_BlockDefinition" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + name="SYSML_ModelElements_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + path="palettes/blockdefinition.palette.modelelements.xml" + provider="CEA LIST"> + <Priority name="Low"/> + + <!-- Specify diagram this palette tools relate to --> + <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/> + </paletteDefinition> +</extension> + +<!-- Palette tool declaration (declares the real palette containment) --> +<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition" + name="SysML Associations (BDD)"> + <paletteDefinition ID="SYSML_Associations_BlockDefinition" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + name="SYSML_Associations_BlockDefinition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + path="palettes/blockdefinition.palette.associations.xml" + provider="CEA LIST"> + <Priority name="Low"/> + + <!-- Specify diagram this palette tools relate to --> + <editor id="org.eclipse.papyrus.sysml.diagram.blockdefinition"/> + </paletteDefinition> +</extension> + +<!-- Parser provider declaration --> +<extension point="org.eclipse.gmf.runtime.common.ui.services.parserProviders"> + <ParserProvider class="org.eclipse.papyrus.sysml.diagram.blockdefinition.provider.ParserProvider"> + <Priority name="Low"/> + </ParserProvider> +</extension> + +<extension point="org.eclipse.gmf.runtime.common.ui.services.markerNavigationProviders" id="markers-navigation"> + <MarkerNavigationProvider class="org.eclipse.papyrus.gmf.diagram.common.provider.MarkerNavigationProvider"> + <MarkerType name="org.eclipse.papyrus.sysml.diagram.blockdefinition.diagnostic"/> + <Priority name="Lowest"/> + </MarkerNavigationProvider> + </extension> + +<extension id="diagnostic" name="Block Definition Diagram problems" point="org.eclipse.core.resources.markers"> + <super type="org.eclipse.core.resources.problemmarker"/> + <super type="org.eclipse.gmf.runtime.common.ui.services.marker"/> + <persistent value="true"/> +</extension> + +<extension id="validationDecoratorProvider" name="ValidationDecorations" point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders"> + <decoratorProvider class="org.eclipse.papyrus.sysml.diagram.blockdefinition.provider.ValidationDecoratorProvider"> + <Priority name="Lowest"/> + <object class="org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart(org.eclipse.gmf.runtime.diagram.ui)" id="PRIMARY_VIEW"/> + <context decoratorTargets="PRIMARY_VIEW"/> + </decoratorProvider> +</extension> + +<!-- The Command to manages the Provided and Required Interfaces for a Port--> +<extension + point="org.eclipse.ui.commands"> + <command + categoryId="org.eclipse.papyrus.editor.category" + description="Allows to manage easily provided Interfaces for a Port" + id="org.eclipse.papyrus.sysml.diagram.blockdefinition.command.manage.interfaces" + name="Manage Provided Interfaces"> + </command> +</extension> +<!-- The Handler to manages the Provided and Required Interfaces for a Port--> +<extension + point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.sysml.diagram.blockdefinition.handler.ManageProvidedInterfacesHandler" + commandId="org.eclipse.papyrus.sysml.diagram.blockdefinition.command.manage.interfaces"> + <activeWhen> + <and> + <with + variable="selection"> + <iterate> + <instanceof + value="org.eclipse.papyrus.uml.diagram.common.edit.part.DefaultChildLabelEditPart"> + </instanceof> + </iterate> + </with> + <with + variable="activeEditor"> + <test + forcePluginActivation="true" + property="org.eclipse.papyrus.uml.diagram.common.diagram.tester.diagramType" + value="BlockDefinition"> + </test> + </with> + </and> + </activeWhen> + </handler> +</extension> + +<!-- Add the Menu to manages the Provided and Required Interfaces for a Port--> +<extension + point="org.eclipse.ui.menus"> + <menuContribution + allPopups="false" + locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?endof=editMenu"> + <command + commandId="org.eclipse.papyrus.sysml.diagram.blockdefinition.command.manage.interfaces" + icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Interface.gif" + id="org.eclipse.papyrus.sysml.diagram.blockdefinition.popup.manage.interface" + label="Manage Interfaces" + mnemonic="&I" + style="push" + tooltip="The command to manage the interfaces provided and required by a Port"> + <!-- The action is visible only if there is an active handler for it --> + <visibleWhen + checkEnabled="true"> + </visibleWhen> + </command> + </menuContribution> +</extension> + +<!-- Diagram specific advices --> +<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes"> + + <metamodel nsURI="http://www.eclipse.org/uml2/3.0.0/UML"> + + <!-- Delete moved views advice --> + <adviceBinding id="org.eclipse.papyrus.sysml.diagram.blockdefinition.DeleteViewDuringMoveHelperAdvice" + class="org.eclipse.papyrus.sysml.diagram.blockdefinition.helper.advice.DeleteViewDuringMoveHelperAdvice" + inheritance="all" typeId="org.eclipse.papyrus.uml.Element"> + </adviceBinding> + + </metamodel> +</extension> + +<!-- UML ElementType bindings to Papyrus shared IClientContext --> +<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings"> + + <!-- Bindings declaration to shared IClientContext --> + <binding context="org.eclipse.papyrus.infra.services.edit.TypeContext"> + <elementType ref="org.eclipse.papyrus.sysml.diagram.blockdefinition.DeleteViewDuringMoveHelperAdvice"/> + </binding> + +</extension> <!-- // End of user code --> diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.xml index 2e371f0c226..238e80eb21b 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.xml +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition/plugin.xml @@ -10,7 +10,7 @@ icon="icons/obj16/Diagram_BlockDefinition.gif" id="org.eclipse.papyrus.sysml.diagram.blockdefinition.CreateCommand" language="sysml" - label="SysML Block Definition Diagram"/> + label="Block Definition Diagram"/> <editorDiagram actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor" factoryClass="org.eclipse.papyrus.sysml.diagram.blockdefinition.BlockDefinitionDiagramEditorFactory" diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.gen.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.gen.xml index 858443489ea..64fc80461ad 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.gen.xml +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.gen.xml @@ -9,7 +9,7 @@ icon="icons/obj16/Diagram_InternalBlock.gif" id="org.eclipse.papyrus.sysml.diagram.internalblock.CreateCommand" language="sysml" - label="SysML Internal Block Diagram"/> + label="Internal Block Diagram"/> <editorDiagram actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor" factoryClass="org.eclipse.papyrus.sysml.diagram.internalblock.InternalBlockDiagramEditorFactory" @@ -475,49 +475,49 @@ </extension> -<!-- // Start of user code custom extensions
- -->
-
-<!-- Insert custom extensions here. -->
-
-<!--
- Handler declaration for the Interface Manager Command.
- The handler is enabled only if the selected element is a Port (excluding FlowPort) in an InternalBlockDiagram.
- -->
-<extension point="org.eclipse.ui.handlers">
-
- <handler commandId="org.eclipse.papyrus.uml.diagram.composite.command.manage.interfaces"
- class="org.eclipse.papyrus.uml.diagram.composite.custom.actions.ManageProvidedInterfacesHandler">
- <activeWhen>
- <and>
- <with variable="selection">
- <iterate>
- <instanceof value="org.eclipse.papyrus.uml.diagram.composite.edit.parts.PortEditPart"/>
- </iterate>
- </with>
-
- <with variable="activeEditor">
- <test property="org.eclipse.papyrus.uml.diagram.common.diagram.tester.diagramType" value="InternalBlock" forcePluginActivation="true"/>
- </with>
-
- <with variable="selection">
- <test property="org.eclipse.papyrus.uml.diagram.internalblock.tester.selection.isFlowPort" value="false" forcePluginActivation="true"/>
- </with>
- </and>
- </activeWhen>
- </handler>
-</extension>
-
-<!--
- Add a property tester for this diagram.
- The tested properties allow to enable/disable handlers for commands .
- -->
-<extension point="org.eclipse.core.expressions.propertyTesters">
- <propertyTester id="org.eclipse.papyrus.uml.diagram.internalblock.tester.selection" type="org.eclipse.jface.viewers.ISelection"
- namespace="org.eclipse.papyrus.uml.diagram.internalblock.tester.selection" properties="isFlowPort"
- class="org.eclipse.papyrus.sysml.diagram.internalblock.utils.InternalBlockDiagramTester">
- </propertyTester>
-</extension>
+<!-- // Start of user code custom extensions + --> + +<!-- Insert custom extensions here. --> + +<!-- + Handler declaration for the Interface Manager Command. + The handler is enabled only if the selected element is a Port (excluding FlowPort) in an InternalBlockDiagram. + --> +<extension point="org.eclipse.ui.handlers"> + + <handler commandId="org.eclipse.papyrus.uml.diagram.composite.command.manage.interfaces" + class="org.eclipse.papyrus.uml.diagram.composite.custom.actions.ManageProvidedInterfacesHandler"> + <activeWhen> + <and> + <with variable="selection"> + <iterate> + <instanceof value="org.eclipse.papyrus.uml.diagram.composite.edit.parts.PortEditPart"/> + </iterate> + </with> + + <with variable="activeEditor"> + <test property="org.eclipse.papyrus.uml.diagram.common.diagram.tester.diagramType" value="InternalBlock" forcePluginActivation="true"/> + </with> + + <with variable="selection"> + <test property="org.eclipse.papyrus.uml.diagram.internalblock.tester.selection.isFlowPort" value="false" forcePluginActivation="true"/> + </with> + </and> + </activeWhen> + </handler> +</extension> + +<!-- + Add a property tester for this diagram. + The tested properties allow to enable/disable handlers for commands . + --> +<extension point="org.eclipse.core.expressions.propertyTesters"> + <propertyTester id="org.eclipse.papyrus.uml.diagram.internalblock.tester.selection" type="org.eclipse.jface.viewers.ISelection" + namespace="org.eclipse.papyrus.uml.diagram.internalblock.tester.selection" properties="isFlowPort" + class="org.eclipse.papyrus.sysml.diagram.internalblock.utils.InternalBlockDiagramTester"> + </propertyTester> +</extension> <!-- // End of user code --> diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.xml index 7767ab31c04..f9ac5b86118 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.xml +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/plugin.xml @@ -4,7 +4,7 @@ <!-- Diagram declaration --> <extension point="org.eclipse.papyrus.infra.core.papyrusDiagram"> - <creationCommand creationCommandClass="org.eclipse.papyrus.sysml.diagram.internalblock.InternalBlockDiagramCreateCommand" creationCondition="org.eclipse.papyrus.sysml.diagram.internalblock.InternalBlockDiagramCondition" icon="icons/obj16/Diagram_InternalBlock.gif" id="org.eclipse.papyrus.sysml.diagram.internalblock.CreateCommand" language="sysml" label="SysML Internal Block Diagram"></creationCommand> + <creationCommand creationCommandClass="org.eclipse.papyrus.sysml.diagram.internalblock.InternalBlockDiagramCreateCommand" creationCondition="org.eclipse.papyrus.sysml.diagram.internalblock.InternalBlockDiagramCondition" icon="icons/obj16/Diagram_InternalBlock.gif" id="org.eclipse.papyrus.sysml.diagram.internalblock.CreateCommand" language="sysml" label="Internal Block Diagram"></creationCommand> <editorDiagram actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor" factoryClass="org.eclipse.papyrus.sysml.diagram.internalblock.InternalBlockDiagramEditorFactory" icon="icons/obj16/Diagram_InternalBlock.gif"></editorDiagram> </extension> diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.parametric/plugin.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.parametric/plugin.xml index d4c6ef12ad1..62530e0d64c 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.parametric/plugin.xml +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.parametric/plugin.xml @@ -19,7 +19,7 @@ icon="icons/obj16/Diagram_Parametric.png" id="org.eclipse.papyrus.sysml.diagram.parametric.CreateCommand" language="sysml" - label="SysML Parametric Diagram"/> + label="Parametric Diagram"/> <editorDiagram actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor" factoryClass="org.eclipse.papyrus.sysml.diagram.parametric.ParametricDiagramEditorFactory" diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.gen.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.gen.xml index f4d25812750..196e6a6226c 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.gen.xml +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.gen.xml @@ -10,7 +10,7 @@ icon="icons/obj16/Diagram_Requirement.gif" id="org.eclipse.papyrus.sysml.diagram.requirement.CreateCommand" language="sysml" - label="SysML Requirement Diagram"/> + label="Requirement Diagram"/> <editorDiagram actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor" factoryClass="org.eclipse.papyrus.sysml.diagram.requirement.RequirementDiagramEditorFactory" diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.xml index d6d9e5d454c..ffd3cee9490 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.xml +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement/plugin.xml @@ -1,894 +1,894 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
-
-<!-- Diagram declaration -->
-<extension point="org.eclipse.papyrus.infra.core.papyrusDiagram">
- <creationCommand
- creationCommandClass="org.eclipse.papyrus.sysml.diagram.requirement.RequirementDiagramCreateCommand"
- creationCondition="org.eclipse.papyrus.sysml.diagram.requirement.RequirementDiagramCreationCondition"
- icon="icons/obj16/Diagram_Requirement.gif"
- id="org.eclipse.papyrus.sysml.diagram.requirement.CreateCommand"
- language="sysml"
- label="SysML Requirement Diagram"/>
- <editorDiagram
- actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor"
- factoryClass="org.eclipse.papyrus.sysml.diagram.requirement.RequirementDiagramEditorFactory"
- icon="icons/obj16/Diagram_Requirement.gif" />
-</extension>
-
-<!-- Diagram creation command and handler -->
-<extension point="org.eclipse.ui.commands">
- <command id="org.eclipse.papyrus.sysml.diagram.requirement.CreateCommand"
- name="Create a new Requirement Diagram"
- description="Create a new Requirement Diagram"
- categoryId="org.eclipse.papyrus.editor.category"/>
-</extension>
-
-
-<!-- Diagram creation command registration in menu and toolbar -->
-
-<!-- Palette tool declaration (declares the real palette containment) -->
-<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"
- name="SYSML_Requirement">
-
- <paletteDefinition ID="SYSML_Requirement"
- class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
- name="SYSML_Requirement" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- path="palettes/requirement.palette.xml"
- provider="CEA LIST">
- <Priority name="Low"/>
-
- <!-- Specify diagram this palette tools relate to -->
- <editor id="org.eclipse.papyrus.sysml.diagram.requirement"/>
- </paletteDefinition>
-</extension>
-
-<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"
- name="SYSML_Requirement_Addition">
-
- <paletteDefinition ID="SYSML_Requirement_Addition"
- class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
- name="Addition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- path="palettes/Addition.palette.xml"
- provider="CEA LIST">
- <Priority name="Low"/>
-
- <!-- Specify diagram this palette tools relate to -->
- <editor id="org.eclipse.papyrus.sysml.diagram.requirement"/>
- </paletteDefinition>
-</extension>
-
-<!-- Diagram view providers declaration -->
-<extension point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
- <!-- Diagram view provider -->
- <viewProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.RequirementDiagramViewProvider">
- <Priority name="Low"/>
- <context viewClass="org.eclipse.gmf.runtime.notation.Diagram" semanticHints="RequirementDiagram"/>
- </viewProvider>
-
- <!-- ViewProvider for inherited elements (from ClassDiagram ViewProvider) -->
- <viewProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.CustomInheritedElementViewProvider">
- <Priority name="Low"/>
-
- <!--
- "2007" = PACKAGE
- "3009" = PACKAGE_CN
- "2008" = CLASS
- "3010" = CLASS_CN
- "2097" = DEFAULT_NAMED_ELEMENT
- "3032" = CONTAINMENT_CIRCLE_CN
- "2012" = COMMENT
- "3028" = COMMENT_CN
- "2011" = CONSTRAINT
- "3029" = CONSTRAINT_CN
- -->
- <context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="2007, 3009, 2008, 3010, 2097, 3032, 2012, 3028, 2011, 3029"/>
-
- <!--
- "3012" = CLASS_PROPERTY_CLN
- "3011" = CLASS_RECEPTION_CLN
- "3013" = CLASS_OPERATION_CLN
- "3014" = CLASS_CLASS_CLN
- "3036" = CLASS_INTERFACE_CLN
- "3052" = CLASS_ENUMERATION_CLN
- "3047" = CLASS_PRIMITIVE_TYPE_CLN
- "3044" = CLASS_DATA_TYPE_CLN
- "3050" = CLASS_SIGNAL_CLN
- -->
- <context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="3012, 3011, 3013, 3014, 3036, 3052, 3047, 3044, 3050"/>
-
- <!--
- "4006" = ABSTRACTION
- "4023" = CONTAINMENT_LINK
- "4022" = CONTAINMENT_SUB_LINK
- "4008" = DEPENDENCY
- "4013" = COMMENT_ANNOTATED_ELEMENT
- "4014" = CONSTRAINT_CONSTRAINED_ELEMENT
- -->
- <context viewClass="org.eclipse.gmf.runtime.notation.Edge" semanticHints="4006, 4023, 4022, 4008, 4013, 4014"/>
-
- <object id="elementtype.node"
- class="org.eclipse.papyrus.gmf.diagram.common.commands.ISemanticHintAdapter(org.eclipse.papyrus.sysml.diagram.common)">
-
- <method
- name="getSemanticHint()"
- value="2007, 3009, 2008, 3010, 2097, 3032, 2012, 3028, 2011, 3029">
- </method>
- </object>
- <context viewClass="org.eclipse.gmf.runtime.notation.Node" elements="elementtype.node"/>
-
- <object id="elementtype.edge"
- class="org.eclipse.papyrus.gmf.diagram.common.commands.ISemanticHintAdapter(org.eclipse.papyrus.sysml.diagram.common)">
-
- <method
- name="getSemanticHint()"
- value="4006, 4023, 4022, 4008, 4013, 4014">
- </method>
- </object>
- <context viewClass="org.eclipse.gmf.runtime.notation.Edge" elements="elementtype.edge"/>
-
-
- <!-- Additional descriptors provided in case the semantic hint is is not provided -->
-
- <!-- "uml.Package" -->
- <object id="uml.Package" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Package"/>
- </object>
-
- <!-- "uml.Class" -->
- <object id="uml.Class" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Class"/>
- </object>
-
- <!-- "uml.NamedElement" -->
- <object id="uml.NamedElement" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.NamedElement"/>
- </object>
-
- <!-- "uml.Comment" -->
- <object id="uml.Comment" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Comment"/>
- </object>
-
- <!-- "uml.Constraint" -->
- <object id="uml.Constraint" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Constraint"/>
- </object>
-
- <!-- "uml.Property" -->
- <object id="uml.Property" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Property"/>
- </object>
-
- <!-- "uml.Reception" -->
- <object id="uml.Reception" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Reception"/>
- </object>
-
- <!-- "uml.Operation" -->
- <object id="uml.Operation" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Operation"/>
- </object>
-
- <!-- "uml.Interface" -->
- <object id="uml.Interface" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Interface"/>
- </object>
-
- <!-- "uml.Enumeration" -->
- <object id="uml.Enumeration" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Enumeration"/>
- </object>
-
- <!-- "uml.PrimitiveType" -->
- <object id="uml.PrimitiveType" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.PrimitiveType"/>
- </object>
-
- <!-- "uml.DataType" -->
- <object id="uml.DataType" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.DataType"/>
- </object>
-
- <!-- "uml.Signal" -->
- <object id="uml.Signal" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Signal"/>
- </object>
-
- <!-- "uml.Abstraction" -->
- <object id="uml.Abstraction" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Abstraction"/>
- </object>
-
- <!-- "uml.Dependency" -->
- <object id="uml.Dependency" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)">
- <method name="getProxyClassID()" value="uml.Dependency"/>
- </object>
-
- <!-- Additional activation contexts for nodes semantic objects -->
- <context viewClass="org.eclipse.gmf.runtime.notation.Node"
- elements="uml.Package, uml.Class, uml.NamedElement, uml.Comment, uml.Constraint, uml.Property, uml.Reception, uml.Operation, uml.Interface, uml.Enumeration, uml.PrimitiveType, uml.DataType, uml.Signal"/>
-
- <!-- Additional activation contexts for edges semantic objects -->
- <context viewClass="org.eclipse.gmf.runtime.notation.Edge"
- elements="uml.Abstraction, uml.Dependency"/>
-
- </viewProvider>
-</extension>
-
-<!-- Diagram edit part providers declaration -->
-<extension point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
-
- <!-- Diagram edit part provider -->
- <editpartProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.RequirementDiagramEditPartProvider">
- <Priority name="Low"/>
- <object
- id="org.eclipse.papyrus.sysml.diagram.requirement.Diagram"
- class="org.eclipse.gmf.runtime.notation.Diagram">
- <method name="getType()" value="RequirementDiagram"/>
- </object>
- <context views="org.eclipse.papyrus.sysml.diagram.requirement.Diagram"/>
- </editpartProvider>
-
- <!-- EditPartProvider for inherited elements (from ClassDiagram) -->
- <editpartProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.InheritedClassDiagramEditPartProvider">
- <Priority name="Low"/>
- <!--
- The semantic hints given here are used in case the provider is not already loaded.
- As soon as the provider is loaded its provides method is used.
- "2007" = PACKAGE
- "5026" = PACKAGE_LABEL_NAME_HINT
- "7016" = PACKAGE_COMPARTMENT_PACKAGEABLE_ELEMENT_HINT
- "3009" = PACKAGE_CN
- "5017" = PACKAGE_CN_LABEL_NAME_HINT
- "7010" = PACKAGE_CN_COMPARTMENT_PACKAGEABLE_ELEMENT_HINT
- "2008" = CLASS
- "5029" = CLASS_LABEL_NAME_HINT
- "7017" = CLASS_COMPARTMENT_ATTRIBUTE_HINT
- "7018" = CLASS_COMPARTMENT_OPERATION_HINT
- "7019" = CLASS_COMPARTMENT_NESTED_CLASSIFIER_HINT
- "3010" = CLASS_CN
- "5014" = CLASS_CN_LABEL_NAME_HINT
- "7011" = CLASS_CN_COMPARTMENT_ATTRIBUTE_HINT
- "7012" = CLASS_CN_COMPARTMENT_OPERATION_HINT
- "7013" = CLASS_CN_COMPARTMENT_NESTED_CLASSIFIER_HINT
- "2097" = DEFAULT_NAMED_ELEMENT
- "5157" = DEFAULT_NAMED_ELEMENT_LABEL_NAME_HINT
- "3032" = CONTAINMENT_CIRCLE_CN
- "2012" = COMMENT
- "5038" = COMMENT_LABEL_BODY_HINT
- "3028" = COMMENT_CN
- "5063" = COMMENT_CN_LABEL_BODY_HINT
- "2011" = CONSTRAINT
- "5037" = CONSTRAINT_LABEL_NAME_HINT
- "5159" = CONSTRAINT_LABEL_BODY_HINT
- "3029" = CONSTRAINT_CN
- "5064" = CONSTRAINT_CN_LABEL_NAME_HINT
- "5160" = CONSTRAINT_CN_LABEL_BODY_HINT
- -->
- <object
- id="PACKAGE"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="2007, 5026, 7016"/>
- </object>
- <object
- id="PACKAGE_CN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3009, 5017, 7010"/>
- </object>
- <object
- id="CLASS"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="2008, 5029, 7017, 7018, 7019"/>
- </object>
- <object
- id="CLASS_CN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3010, 5014, 7011, 7012, 7013"/>
- </object>
- <object
- id="DEFAULT_NAMED_ELEMENT"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="2097, 5157"/>
- </object>
- <object
- id="CONTAINMENT_CIRCLE_CN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3032"/>
- </object>
- <object
- id="COMMENT"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="2012, 5038"/>
- </object>
- <object
- id="COMMENT_CN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3028, 5063"/>
- </object>
- <object
- id="CONSTRAINT"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="2011, 5037, 5159"/>
- </object>
- <object
- id="CONSTRAINT_CN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3029, 5064, 5160"/>
- </object>
-
- <!--
- "3012" = CLASS_PROPERTY_CLN
- "3011" = CLASS_RECEPTION_CLN
- "3013" = CLASS_OPERATION_CLN
- "3014" = CLASS_CLASS_CLN
- "3036" = CLASS_INTERFACE_CLN
- "3052" = CLASS_ENUMERATION_CLN
- "3047" = CLASS_PRIMITIVE_TYPE_CLN
- "3044" = CLASS_DATA_TYPE_CLN
- "3050" = CLASS_SIGNAL_CLN
- -->
- <object
- id="CLASS_PROPERTY_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3012"/>
- </object>
- <object
- id="CLASS_RECEPTION_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3011"/>
- </object>
- <object
- id="CLASS_OPERATION_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3013"/>
- </object>
- <object
- id="CLASS_CLASS_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3014"/>
- </object>
- <object
- id="CLASS_INTERFACE_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3036"/>
- </object>
- <object
- id="CLASS_ENUMERATION_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3052"/>
- </object>
- <object
- id="CLASS_PRIMITIVE_TYPE_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3047"/>
- </object>
- <object
- id="CLASS_DATA_TYPE_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3044"/>
- </object>
- <object
- id="CLASS_SIGNAL_CLN"
- class="org.eclipse.gmf.runtime.notation.Node">
- <method name="getType()" value="3050"/>
- </object>
-
- <!--
- "4006" = ABSTRACTION
- "6014" = ABSTRACTION_LABEL_NAME_HINT
- "6015" = ABSTRACTION_LABEL_APPLIED_STEREOTYPE_HINT
- "4023" = CONTAINMENT_LINK
- "4022" = CONTAINMENT_SUB_LINK
- "4008" = DEPENDENCY
- "6026" = DEPENDENCY_LABEL_NAME_HINT
- "6027" = DEPENDENCY_LABEL_APPLIED_STEREOTYPE_HINT
- "4013" = COMMENT_ANNOTATED_ELEMENT
- "4014" = CONSTRAINT_CONSTRAINED_ELEMENT
- -->
- <object
- id="ABSTRACTION"
- class="org.eclipse.gmf.runtime.notation.Edge">
- <method name="getType()" value="4006, 6014, 6015"/>
- </object>
- <object
- id="CONTAINMENT_LINK"
- class="org.eclipse.gmf.runtime.notation.Edge">
- <method name="getType()" value="4023"/>
- </object>
- <object
- id="CONTAINMENT_SUB_LINK"
- class="org.eclipse.gmf.runtime.notation.Edge">
- <method name="getType()" value="4022"/>
- </object>
- <object
- id="DEPENDENCY"
- class="org.eclipse.gmf.runtime.notation.Edge">
- <method name="getType()" value="4008, 6026, 6027"/>
- </object>
- <object
- id="COMMENT_ANNOTATED_ELEMENT"
- class="org.eclipse.gmf.runtime.notation.Edge">
- <method name="getType()" value="4013"/>
- </object>
- <object
- id="CONSTRAINT_CONSTRAINED_ELEMENT"
- class="org.eclipse.gmf.runtime.notation.Edge">
- <method name="getType()" value="4014"/>
- </object>
-
- <context views="PACKAGE, PACKAGE_CN, CLASS, CLASS_CN, DEFAULT_NAMED_ELEMENT, CONTAINMENT_CIRCLE_CN, COMMENT, COMMENT_CN, CONSTRAINT, CONSTRAINT_CN"/>
- <context views="CLASS_PROPERTY_CLN, CLASS_RECEPTION_CLN, CLASS_OPERATION_CLN, CLASS_CLASS_CLN, CLASS_INTERFACE_CLN, CLASS_ENUMERATION_CLN, CLASS_PRIMITIVE_TYPE_CLN, CLASS_DATA_TYPE_CLN, CLASS_SIGNAL_CLN"/>
- <context views="ABSTRACTION, CONTAINMENT_LINK, CONTAINMENT_SUB_LINK, DEPENDENCY, COMMENT_ANNOTATED_ELEMENT, CONSTRAINT_CONSTRAINED_ELEMENT"/>
-
- </editpartProvider>
-</extension>
-
-<!-- Diagram edit policy provider -->
-<extension
- point="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders">
- <editpolicyProvider
- class="org.eclipse.papyrus.sysml.diagram.requirement.provider.CustomEditPolicyProvider">
- <Priority name="Low"/>
- </editpolicyProvider>
-</extension>
-
-<!-- Preference pages declaration -->
-<extension point="org.eclipse.ui.preferencePages" id="prefpages">
-
- <!-- Diagram Preference pages declaration -->
- <page
- id="org.eclipse.papyrus.sysml.diagram.requirement.preferences"
- name="Requirement Diagram"
- category="org.eclipse.papyrus.infra.gmfdiag.preferences.diagrams"
- class="org.eclipse.papyrus.sysml.diagram.requirement.preferences.RequirementDiagramGeneralPreferencePage">
- </page>
-
- <!-- Element Preference pages declaration -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</extension>
-
-
-<!-- // Start of user code custom extensions
- -->
-
-<!-- Insert custom extensions here. -->
- <extension
- id="ep-provider"
- point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
- <editpartProvider
- class="org.eclipse.papyrus.sysml.diagram.requirement.provider.CustomRequirementEditPartProvider">
- <Priority
- name="High">
- </Priority>
- <object
- class="org.eclipse.gmf.runtime.notation.Diagram"
- id="generated-diagram">
- <method
- name="getType()"
- value="Requirement">
- </method>
- </object>
- <object
- class="org.eclipse.gmf.runtime.notation.Node"
- id="generated-nodes">
- <method
- name="getType()"
- value="2014,2013,2015,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2016,3002,3003,3004,3015,3031,3016,3005,3006,3007,3008,3020,3021,3022,3023,3024,3025,3017,3009,3010,3011,3012,3013,3014,3026,3027,3018,3019,3028,3029,3030">
- </method>
- </object>
- <object
- class="org.eclipse.gmf.runtime.notation.Edge"
- id="generated-links">
- <method
- name="getType()"
- value="4016,4017,4001,4019,4002,4003,4004,4005,4006,4007,4008,4018,4009,4010,4011,4012,4013,4014,4015,4020,4021">
- </method>
- </object>
- <object
- class="org.eclipse.gmf.runtime.notation.Node"
- id="generated-labels">
- <method
- name="getType()"
- value="5066,5002,5005,5008,5011,5020,5023,5026,5029,5032,5035,5037,5038,0,5040,5043,5046,5049,5052,5055,5017,5014,5058,5061,5063,5064">
- </method>
- </object>
- <object
- class="org.eclipse.gmf.runtime.notation.Node"
- id="generated-compartments">
- <method
- name="getType()"
- value="7034,7001,7002,7003,7004,7014,7005,7006,7007,7008,7009,7023,7024,7025,7026,7027,7028,7029,7030,7031,7010,7011,7012,7013,7032,7033,7015,7016,7017,7018,7019,7020,7021,7035">
- </method>
- </object>
- <object
- id="generated-diagram,generated-nodes,generated-links,generated-labels,generated-compartments">
- </object>
- </editpartProvider>
-</extension>
-<extension point="org.eclipse.papyrus.infra.gmfdiag.common.notationTypesMapping">
- <diagramMappings diagramID="RequirementDiagram">
-
- <mapping
- humanReadableType="attributes"
- type="7011">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7012">
- </mapping>
-
- <mapping
- humanReadableType="nested classifiers"
- type="7013">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7023">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7024">
- </mapping>
-
- <mapping
- humanReadableType="nested classifiers"
- type="7025">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7026">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7027">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7028">
- </mapping>
-
- <mapping
- humanReadableType="nested classifiers"
- type="7029">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7041">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7042">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7032">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7033">
- </mapping>
-
- <mapping
- humanReadableType="packaged elements"
- type="7030">
- </mapping>
-
- <mapping
- humanReadableType="packaged elements"
- type="7010">
- </mapping>
-
- <mapping
- humanReadableType="literals"
- type="7031">
- </mapping>
-
- <mapping
- humanReadableType="slots"
- type="7035">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7017">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7018">
- </mapping>
-
- <mapping
- humanReadableType="nested classifiers"
- type="7019">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7002">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7003">
- </mapping>
-
- <mapping
- humanReadableType="nested classifiers"
- type="7004">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7006">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7007">
- </mapping>
-
- <mapping
- humanReadableType="nested classifiers"
- type="7008">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7039">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7040">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7020">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7021">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7034">
- </mapping>
-
- <mapping
- humanReadableType="slots"
- type="7001">
- </mapping>
-
- <mapping
- humanReadableType="attributes"
- type="7005">
- </mapping>
-
- <mapping
- humanReadableType="packaged elements"
- type="7009">
- </mapping>
-
- <mapping
- humanReadableType="packaged elements"
- type="7016">
- </mapping>
-
- <mapping
- humanReadableType="literals"
- type="7015">
- </mapping>
-
- <mapping
- humanReadableType="operations"
- type="7036">
- </mapping>
-
- <mapping
- humanReadableType="nested classifiers"
- type="7037">
- </mapping>
-
- <mapping
- humanReadableType="TemplateParameter"
- type="7014">
- </mapping>
-
- <mapping
- humanReadableType="TemplateParameter"
- type="7038">
- </mapping>
- <mapping
- humanReadableType="SourceRole"
- type="6031">
- </mapping>
- <mapping
- humanReadableType="TargetRole"
- type="6032">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6001">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="6002">
- </mapping>
- <mapping
- humanReadableType="TargetRole"
- type="6003">
- </mapping>
- <mapping
- humanReadableType="SourceRole"
- type="6005">
- </mapping>
- <mapping
- humanReadableType="SourceMultiplicity"
- type="6033">
- </mapping>
- <mapping
- humanReadableType="TargetMultiplicity"
- type="6034">
- </mapping>
- <mapping
- humanReadableType="TargetRole"
- type="6024">
- </mapping>
- <mapping
- humanReadableType="TargetMultiplicity"
- type="6035">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6007">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6008">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="6009">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6010">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="6011">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6012">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="6013">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="6014">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6015">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="6016">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6017">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="6026">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6027">
- </mapping>
- <mapping
- humanReadableType="Alias"
- type="6020">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6021">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6022">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6030">
- </mapping>
- <mapping
- humanReadableType="TemplateParameterSubstitution"
- type="6023">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6036">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6037">
- </mapping>
- <mapping
- humanReadableType="SourceRole"
- type="6039">
- </mapping>
- <mapping
- humanReadableType="TargetRole"
- type="6038">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="6041">
- </mapping>
- </diagramMappings>
- </extension>
-<!-- // End of user code
- -->
-
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> +<plugin> + +<!-- Diagram declaration --> +<extension point="org.eclipse.papyrus.infra.core.papyrusDiagram"> + <creationCommand + creationCommandClass="org.eclipse.papyrus.sysml.diagram.requirement.RequirementDiagramCreateCommand" + creationCondition="org.eclipse.papyrus.sysml.diagram.requirement.RequirementDiagramCreationCondition" + icon="icons/obj16/Diagram_Requirement.gif" + id="org.eclipse.papyrus.sysml.diagram.requirement.CreateCommand" + language="sysml" + label="Requirement Diagram"/> + <editorDiagram + actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor" + factoryClass="org.eclipse.papyrus.sysml.diagram.requirement.RequirementDiagramEditorFactory" + icon="icons/obj16/Diagram_Requirement.gif" /> +</extension> + +<!-- Diagram creation command and handler --> +<extension point="org.eclipse.ui.commands"> + <command id="org.eclipse.papyrus.sysml.diagram.requirement.CreateCommand" + name="Create a new Requirement Diagram" + description="Create a new Requirement Diagram" + categoryId="org.eclipse.papyrus.editor.category"/> +</extension> + + +<!-- Diagram creation command registration in menu and toolbar --> + +<!-- Palette tool declaration (declares the real palette containment) --> +<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition" + name="SYSML_Requirement"> + + <paletteDefinition ID="SYSML_Requirement" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + name="SYSML_Requirement" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + path="palettes/requirement.palette.xml" + provider="CEA LIST"> + <Priority name="Low"/> + + <!-- Specify diagram this palette tools relate to --> + <editor id="org.eclipse.papyrus.sysml.diagram.requirement"/> + </paletteDefinition> +</extension> + +<extension point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition" + name="SYSML_Requirement_Addition"> + + <paletteDefinition ID="SYSML_Requirement_Addition" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + name="Addition" icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + path="palettes/Addition.palette.xml" + provider="CEA LIST"> + <Priority name="Low"/> + + <!-- Specify diagram this palette tools relate to --> + <editor id="org.eclipse.papyrus.sysml.diagram.requirement"/> + </paletteDefinition> +</extension> + +<!-- Diagram view providers declaration --> +<extension point="org.eclipse.gmf.runtime.diagram.core.viewProviders"> + <!-- Diagram view provider --> + <viewProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.RequirementDiagramViewProvider"> + <Priority name="Low"/> + <context viewClass="org.eclipse.gmf.runtime.notation.Diagram" semanticHints="RequirementDiagram"/> + </viewProvider> + + <!-- ViewProvider for inherited elements (from ClassDiagram ViewProvider) --> + <viewProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.CustomInheritedElementViewProvider"> + <Priority name="Low"/> + + <!-- + "2007" = PACKAGE + "3009" = PACKAGE_CN + "2008" = CLASS + "3010" = CLASS_CN + "2097" = DEFAULT_NAMED_ELEMENT + "3032" = CONTAINMENT_CIRCLE_CN + "2012" = COMMENT + "3028" = COMMENT_CN + "2011" = CONSTRAINT + "3029" = CONSTRAINT_CN + --> + <context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="2007, 3009, 2008, 3010, 2097, 3032, 2012, 3028, 2011, 3029"/> + + <!-- + "3012" = CLASS_PROPERTY_CLN + "3011" = CLASS_RECEPTION_CLN + "3013" = CLASS_OPERATION_CLN + "3014" = CLASS_CLASS_CLN + "3036" = CLASS_INTERFACE_CLN + "3052" = CLASS_ENUMERATION_CLN + "3047" = CLASS_PRIMITIVE_TYPE_CLN + "3044" = CLASS_DATA_TYPE_CLN + "3050" = CLASS_SIGNAL_CLN + --> + <context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="3012, 3011, 3013, 3014, 3036, 3052, 3047, 3044, 3050"/> + + <!-- + "4006" = ABSTRACTION + "4023" = CONTAINMENT_LINK + "4022" = CONTAINMENT_SUB_LINK + "4008" = DEPENDENCY + "4013" = COMMENT_ANNOTATED_ELEMENT + "4014" = CONSTRAINT_CONSTRAINED_ELEMENT + --> + <context viewClass="org.eclipse.gmf.runtime.notation.Edge" semanticHints="4006, 4023, 4022, 4008, 4013, 4014"/> + + <object id="elementtype.node" + class="org.eclipse.papyrus.gmf.diagram.common.commands.ISemanticHintAdapter(org.eclipse.papyrus.sysml.diagram.common)"> + + <method + name="getSemanticHint()" + value="2007, 3009, 2008, 3010, 2097, 3032, 2012, 3028, 2011, 3029"> + </method> + </object> + <context viewClass="org.eclipse.gmf.runtime.notation.Node" elements="elementtype.node"/> + + <object id="elementtype.edge" + class="org.eclipse.papyrus.gmf.diagram.common.commands.ISemanticHintAdapter(org.eclipse.papyrus.sysml.diagram.common)"> + + <method + name="getSemanticHint()" + value="4006, 4023, 4022, 4008, 4013, 4014"> + </method> + </object> + <context viewClass="org.eclipse.gmf.runtime.notation.Edge" elements="elementtype.edge"/> + + + <!-- Additional descriptors provided in case the semantic hint is is not provided --> + + <!-- "uml.Package" --> + <object id="uml.Package" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Package"/> + </object> + + <!-- "uml.Class" --> + <object id="uml.Class" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Class"/> + </object> + + <!-- "uml.NamedElement" --> + <object id="uml.NamedElement" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.NamedElement"/> + </object> + + <!-- "uml.Comment" --> + <object id="uml.Comment" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Comment"/> + </object> + + <!-- "uml.Constraint" --> + <object id="uml.Constraint" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Constraint"/> + </object> + + <!-- "uml.Property" --> + <object id="uml.Property" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Property"/> + </object> + + <!-- "uml.Reception" --> + <object id="uml.Reception" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Reception"/> + </object> + + <!-- "uml.Operation" --> + <object id="uml.Operation" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Operation"/> + </object> + + <!-- "uml.Interface" --> + <object id="uml.Interface" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Interface"/> + </object> + + <!-- "uml.Enumeration" --> + <object id="uml.Enumeration" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Enumeration"/> + </object> + + <!-- "uml.PrimitiveType" --> + <object id="uml.PrimitiveType" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.PrimitiveType"/> + </object> + + <!-- "uml.DataType" --> + <object id="uml.DataType" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.DataType"/> + </object> + + <!-- "uml.Signal" --> + <object id="uml.Signal" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Signal"/> + </object> + + <!-- "uml.Abstraction" --> + <object id="uml.Abstraction" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Abstraction"/> + </object> + + <!-- "uml.Dependency" --> + <object id="uml.Dependency" class="org.eclipse.gmf.runtime.emf.core.util.IProxyEObject(org.eclipse.gmf.runtime.emf.core)"> + <method name="getProxyClassID()" value="uml.Dependency"/> + </object> + + <!-- Additional activation contexts for nodes semantic objects --> + <context viewClass="org.eclipse.gmf.runtime.notation.Node" + elements="uml.Package, uml.Class, uml.NamedElement, uml.Comment, uml.Constraint, uml.Property, uml.Reception, uml.Operation, uml.Interface, uml.Enumeration, uml.PrimitiveType, uml.DataType, uml.Signal"/> + + <!-- Additional activation contexts for edges semantic objects --> + <context viewClass="org.eclipse.gmf.runtime.notation.Edge" + elements="uml.Abstraction, uml.Dependency"/> + + </viewProvider> +</extension> + +<!-- Diagram edit part providers declaration --> +<extension point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders"> + + <!-- Diagram edit part provider --> + <editpartProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.RequirementDiagramEditPartProvider"> + <Priority name="Low"/> + <object + id="org.eclipse.papyrus.sysml.diagram.requirement.Diagram" + class="org.eclipse.gmf.runtime.notation.Diagram"> + <method name="getType()" value="RequirementDiagram"/> + </object> + <context views="org.eclipse.papyrus.sysml.diagram.requirement.Diagram"/> + </editpartProvider> + + <!-- EditPartProvider for inherited elements (from ClassDiagram) --> + <editpartProvider class="org.eclipse.papyrus.sysml.diagram.requirement.provider.InheritedClassDiagramEditPartProvider"> + <Priority name="Low"/> + <!-- + The semantic hints given here are used in case the provider is not already loaded. + As soon as the provider is loaded its provides method is used. + "2007" = PACKAGE + "5026" = PACKAGE_LABEL_NAME_HINT + "7016" = PACKAGE_COMPARTMENT_PACKAGEABLE_ELEMENT_HINT + "3009" = PACKAGE_CN + "5017" = PACKAGE_CN_LABEL_NAME_HINT + "7010" = PACKAGE_CN_COMPARTMENT_PACKAGEABLE_ELEMENT_HINT + "2008" = CLASS + "5029" = CLASS_LABEL_NAME_HINT + "7017" = CLASS_COMPARTMENT_ATTRIBUTE_HINT + "7018" = CLASS_COMPARTMENT_OPERATION_HINT + "7019" = CLASS_COMPARTMENT_NESTED_CLASSIFIER_HINT + "3010" = CLASS_CN + "5014" = CLASS_CN_LABEL_NAME_HINT + "7011" = CLASS_CN_COMPARTMENT_ATTRIBUTE_HINT + "7012" = CLASS_CN_COMPARTMENT_OPERATION_HINT + "7013" = CLASS_CN_COMPARTMENT_NESTED_CLASSIFIER_HINT + "2097" = DEFAULT_NAMED_ELEMENT + "5157" = DEFAULT_NAMED_ELEMENT_LABEL_NAME_HINT + "3032" = CONTAINMENT_CIRCLE_CN + "2012" = COMMENT + "5038" = COMMENT_LABEL_BODY_HINT + "3028" = COMMENT_CN + "5063" = COMMENT_CN_LABEL_BODY_HINT + "2011" = CONSTRAINT + "5037" = CONSTRAINT_LABEL_NAME_HINT + "5159" = CONSTRAINT_LABEL_BODY_HINT + "3029" = CONSTRAINT_CN + "5064" = CONSTRAINT_CN_LABEL_NAME_HINT + "5160" = CONSTRAINT_CN_LABEL_BODY_HINT + --> + <object + id="PACKAGE" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="2007, 5026, 7016"/> + </object> + <object + id="PACKAGE_CN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3009, 5017, 7010"/> + </object> + <object + id="CLASS" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="2008, 5029, 7017, 7018, 7019"/> + </object> + <object + id="CLASS_CN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3010, 5014, 7011, 7012, 7013"/> + </object> + <object + id="DEFAULT_NAMED_ELEMENT" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="2097, 5157"/> + </object> + <object + id="CONTAINMENT_CIRCLE_CN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3032"/> + </object> + <object + id="COMMENT" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="2012, 5038"/> + </object> + <object + id="COMMENT_CN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3028, 5063"/> + </object> + <object + id="CONSTRAINT" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="2011, 5037, 5159"/> + </object> + <object + id="CONSTRAINT_CN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3029, 5064, 5160"/> + </object> + + <!-- + "3012" = CLASS_PROPERTY_CLN + "3011" = CLASS_RECEPTION_CLN + "3013" = CLASS_OPERATION_CLN + "3014" = CLASS_CLASS_CLN + "3036" = CLASS_INTERFACE_CLN + "3052" = CLASS_ENUMERATION_CLN + "3047" = CLASS_PRIMITIVE_TYPE_CLN + "3044" = CLASS_DATA_TYPE_CLN + "3050" = CLASS_SIGNAL_CLN + --> + <object + id="CLASS_PROPERTY_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3012"/> + </object> + <object + id="CLASS_RECEPTION_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3011"/> + </object> + <object + id="CLASS_OPERATION_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3013"/> + </object> + <object + id="CLASS_CLASS_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3014"/> + </object> + <object + id="CLASS_INTERFACE_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3036"/> + </object> + <object + id="CLASS_ENUMERATION_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3052"/> + </object> + <object + id="CLASS_PRIMITIVE_TYPE_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3047"/> + </object> + <object + id="CLASS_DATA_TYPE_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3044"/> + </object> + <object + id="CLASS_SIGNAL_CLN" + class="org.eclipse.gmf.runtime.notation.Node"> + <method name="getType()" value="3050"/> + </object> + + <!-- + "4006" = ABSTRACTION + "6014" = ABSTRACTION_LABEL_NAME_HINT + "6015" = ABSTRACTION_LABEL_APPLIED_STEREOTYPE_HINT + "4023" = CONTAINMENT_LINK + "4022" = CONTAINMENT_SUB_LINK + "4008" = DEPENDENCY + "6026" = DEPENDENCY_LABEL_NAME_HINT + "6027" = DEPENDENCY_LABEL_APPLIED_STEREOTYPE_HINT + "4013" = COMMENT_ANNOTATED_ELEMENT + "4014" = CONSTRAINT_CONSTRAINED_ELEMENT + --> + <object + id="ABSTRACTION" + class="org.eclipse.gmf.runtime.notation.Edge"> + <method name="getType()" value="4006, 6014, 6015"/> + </object> + <object + id="CONTAINMENT_LINK" + class="org.eclipse.gmf.runtime.notation.Edge"> + <method name="getType()" value="4023"/> + </object> + <object + id="CONTAINMENT_SUB_LINK" + class="org.eclipse.gmf.runtime.notation.Edge"> + <method name="getType()" value="4022"/> + </object> + <object + id="DEPENDENCY" + class="org.eclipse.gmf.runtime.notation.Edge"> + <method name="getType()" value="4008, 6026, 6027"/> + </object> + <object + id="COMMENT_ANNOTATED_ELEMENT" + class="org.eclipse.gmf.runtime.notation.Edge"> + <method name="getType()" value="4013"/> + </object> + <object + id="CONSTRAINT_CONSTRAINED_ELEMENT" + class="org.eclipse.gmf.runtime.notation.Edge"> + <method name="getType()" value="4014"/> + </object> + + <context views="PACKAGE, PACKAGE_CN, CLASS, CLASS_CN, DEFAULT_NAMED_ELEMENT, CONTAINMENT_CIRCLE_CN, COMMENT, COMMENT_CN, CONSTRAINT, CONSTRAINT_CN"/> + <context views="CLASS_PROPERTY_CLN, CLASS_RECEPTION_CLN, CLASS_OPERATION_CLN, CLASS_CLASS_CLN, CLASS_INTERFACE_CLN, CLASS_ENUMERATION_CLN, CLASS_PRIMITIVE_TYPE_CLN, CLASS_DATA_TYPE_CLN, CLASS_SIGNAL_CLN"/> + <context views="ABSTRACTION, CONTAINMENT_LINK, CONTAINMENT_SUB_LINK, DEPENDENCY, COMMENT_ANNOTATED_ELEMENT, CONSTRAINT_CONSTRAINED_ELEMENT"/> + + </editpartProvider> +</extension> + +<!-- Diagram edit policy provider --> +<extension + point="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders"> + <editpolicyProvider + class="org.eclipse.papyrus.sysml.diagram.requirement.provider.CustomEditPolicyProvider"> + <Priority name="Low"/> + </editpolicyProvider> +</extension> + +<!-- Preference pages declaration --> +<extension point="org.eclipse.ui.preferencePages" id="prefpages"> + + <!-- Diagram Preference pages declaration --> + <page + id="org.eclipse.papyrus.sysml.diagram.requirement.preferences" + name="Requirement Diagram" + category="org.eclipse.papyrus.infra.gmfdiag.preferences.diagrams" + class="org.eclipse.papyrus.sysml.diagram.requirement.preferences.RequirementDiagramGeneralPreferencePage"> + </page> + + <!-- Element Preference pages declaration --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +</extension> + + +<!-- // Start of user code custom extensions + --> + +<!-- Insert custom extensions here. --> + <extension + id="ep-provider" + point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders"> + <editpartProvider + class="org.eclipse.papyrus.sysml.diagram.requirement.provider.CustomRequirementEditPartProvider"> + <Priority + name="High"> + </Priority> + <object + class="org.eclipse.gmf.runtime.notation.Diagram" + id="generated-diagram"> + <method + name="getType()" + value="Requirement"> + </method> + </object> + <object + class="org.eclipse.gmf.runtime.notation.Node" + id="generated-nodes"> + <method + name="getType()" + value="2014,2013,2015,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2016,3002,3003,3004,3015,3031,3016,3005,3006,3007,3008,3020,3021,3022,3023,3024,3025,3017,3009,3010,3011,3012,3013,3014,3026,3027,3018,3019,3028,3029,3030"> + </method> + </object> + <object + class="org.eclipse.gmf.runtime.notation.Edge" + id="generated-links"> + <method + name="getType()" + value="4016,4017,4001,4019,4002,4003,4004,4005,4006,4007,4008,4018,4009,4010,4011,4012,4013,4014,4015,4020,4021"> + </method> + </object> + <object + class="org.eclipse.gmf.runtime.notation.Node" + id="generated-labels"> + <method + name="getType()" + value="5066,5002,5005,5008,5011,5020,5023,5026,5029,5032,5035,5037,5038,0,5040,5043,5046,5049,5052,5055,5017,5014,5058,5061,5063,5064"> + </method> + </object> + <object + class="org.eclipse.gmf.runtime.notation.Node" + id="generated-compartments"> + <method + name="getType()" + value="7034,7001,7002,7003,7004,7014,7005,7006,7007,7008,7009,7023,7024,7025,7026,7027,7028,7029,7030,7031,7010,7011,7012,7013,7032,7033,7015,7016,7017,7018,7019,7020,7021,7035"> + </method> + </object> + <object + id="generated-diagram,generated-nodes,generated-links,generated-labels,generated-compartments"> + </object> + </editpartProvider> +</extension> +<extension point="org.eclipse.papyrus.infra.gmfdiag.common.notationTypesMapping"> + <diagramMappings diagramID="RequirementDiagram"> + + <mapping + humanReadableType="attributes" + type="7011"> + </mapping> + + <mapping + humanReadableType="operations" + type="7012"> + </mapping> + + <mapping + humanReadableType="nested classifiers" + type="7013"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7023"> + </mapping> + + <mapping + humanReadableType="operations" + type="7024"> + </mapping> + + <mapping + humanReadableType="nested classifiers" + type="7025"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7026"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7027"> + </mapping> + + <mapping + humanReadableType="operations" + type="7028"> + </mapping> + + <mapping + humanReadableType="nested classifiers" + type="7029"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7041"> + </mapping> + + <mapping + humanReadableType="operations" + type="7042"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7032"> + </mapping> + + <mapping + humanReadableType="operations" + type="7033"> + </mapping> + + <mapping + humanReadableType="packaged elements" + type="7030"> + </mapping> + + <mapping + humanReadableType="packaged elements" + type="7010"> + </mapping> + + <mapping + humanReadableType="literals" + type="7031"> + </mapping> + + <mapping + humanReadableType="slots" + type="7035"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7017"> + </mapping> + + <mapping + humanReadableType="operations" + type="7018"> + </mapping> + + <mapping + humanReadableType="nested classifiers" + type="7019"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7002"> + </mapping> + + <mapping + humanReadableType="operations" + type="7003"> + </mapping> + + <mapping + humanReadableType="nested classifiers" + type="7004"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7006"> + </mapping> + + <mapping + humanReadableType="operations" + type="7007"> + </mapping> + + <mapping + humanReadableType="nested classifiers" + type="7008"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7039"> + </mapping> + + <mapping + humanReadableType="operations" + type="7040"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7020"> + </mapping> + + <mapping + humanReadableType="operations" + type="7021"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7034"> + </mapping> + + <mapping + humanReadableType="slots" + type="7001"> + </mapping> + + <mapping + humanReadableType="attributes" + type="7005"> + </mapping> + + <mapping + humanReadableType="packaged elements" + type="7009"> + </mapping> + + <mapping + humanReadableType="packaged elements" + type="7016"> + </mapping> + + <mapping + humanReadableType="literals" + type="7015"> + </mapping> + + <mapping + humanReadableType="operations" + type="7036"> + </mapping> + + <mapping + humanReadableType="nested classifiers" + type="7037"> + </mapping> + + <mapping + humanReadableType="TemplateParameter" + type="7014"> + </mapping> + + <mapping + humanReadableType="TemplateParameter" + type="7038"> + </mapping> + <mapping + humanReadableType="SourceRole" + type="6031"> + </mapping> + <mapping + humanReadableType="TargetRole" + type="6032"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6001"> + </mapping> + <mapping + humanReadableType="Name" + type="6002"> + </mapping> + <mapping + humanReadableType="TargetRole" + type="6003"> + </mapping> + <mapping + humanReadableType="SourceRole" + type="6005"> + </mapping> + <mapping + humanReadableType="SourceMultiplicity" + type="6033"> + </mapping> + <mapping + humanReadableType="TargetMultiplicity" + type="6034"> + </mapping> + <mapping + humanReadableType="TargetRole" + type="6024"> + </mapping> + <mapping + humanReadableType="TargetMultiplicity" + type="6035"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6007"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6008"> + </mapping> + <mapping + humanReadableType="Name" + type="6009"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6010"> + </mapping> + <mapping + humanReadableType="Name" + type="6011"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6012"> + </mapping> + <mapping + humanReadableType="Name" + type="6013"> + </mapping> + <mapping + humanReadableType="Name" + type="6014"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6015"> + </mapping> + <mapping + humanReadableType="Name" + type="6016"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6017"> + </mapping> + <mapping + humanReadableType="Name" + type="6026"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6027"> + </mapping> + <mapping + humanReadableType="Alias" + type="6020"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6021"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6022"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6030"> + </mapping> + <mapping + humanReadableType="TemplateParameterSubstitution" + type="6023"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6036"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6037"> + </mapping> + <mapping + humanReadableType="SourceRole" + type="6039"> + </mapping> + <mapping + humanReadableType="TargetRole" + type="6038"> + </mapping> + <mapping + humanReadableType="Stereotype" + type="6041"> + </mapping> + </diagramMappings> + </extension> +<!-- // End of user code + --> + +</plugin> |