| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <plugin> |
| <extension |
| point="org.eclipse.ui.views"> |
| <view |
| category="org.eclipse.papyrus.views.category" |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.view.LayersExplorerView" |
| icon="platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.layers.ui/icons/LayersStackApplication.gif" |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.view.layersexplorer" |
| name="LayersExplorer" |
| restorable="true"> |
| </view> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachLayerStack" |
| name="Attach LayerStack"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.detachLayerStack" |
| name="Detach LayerStack"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.deleteLayer" |
| name="Delete Layer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.deleteProperty" |
| name="Delete Property"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.createlayer" |
| name="Create Basic Layer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachCSSToLayer" |
| name="Attach a StyleSheet to a Layer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachCSSHideToLayer" |
| name="Attach a Disable StyleSheet to a Layer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachDiagramViewsToLayer" |
| name="Attach Multiple Diagram Views to a Layer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.openlayersexplorerview" |
| name="Open Layers Explorer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachitemselectedindiagramtocurrentlayer" |
| name="Attach Views to Current Layer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.removeitemselectedindiagramfromcurrentlayer" |
| name="Remove Views from Current Layer"> |
| </command> |
| <command |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.showmenus" |
| name="Show Menus"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.commands.AttachLayerStackCommand" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachLayerStack"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.commands.DetachLayerStackCommand" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.detachLayerStack"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.handlers.CreateLayerHandler" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.createlayer"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.commands.AttachCSSToLayer" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachCSSToLayer"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.commands.AttachCSSHideToLayer" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachCSSHideToLayer"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.commands.AttachDiagramViewsToLayer" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachDiagramViewsToLayer"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.handlers.DeleteItemHandler" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.deleteLayer"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.handlers.DeleteItemHandler" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.deleteProperty"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.handlers.OpenLayerExplorerHandler" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.openlayersexplorerview"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.handlers.AttachDiagramSelectedItemsToCurrentLayer" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachitemselectedindiagramtocurrentlayer"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.handlers.RemoveDiagramSelectedItemsFromCurrentLayer" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.removeitemselectedindiagramfromcurrentlayer"> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.handlers.ShowItemHandler" |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.showmenus"> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="menu:org.eclipse.papyrus.ui.menu"> |
| <menu |
| label="Layers"> |
| <!--command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.openlayersexplorerview" |
| label="Open Layers Explorer" |
| style="push" |
| tooltip="Open the Layers Explorer View"> |
| </command--> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.detachLayerStack" |
| label="Detach Layer Stack" |
| style="push" |
| tooltip="Detach a Layer Stack to the diagram"> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachLayerStack" |
| label="Attach Layer Stack" |
| style="push" |
| tooltip="Attach a Layer Stack to the diagram"> |
| </command> |
| </menu> |
| </menuContribution> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.papyrus.infra.gmfdiag.layers.ui.popupmenu"> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.createlayer" |
| label="Create Layer" |
| style="push" |
| tooltip="Create a new Layer in selected parent"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <with |
| variable="selection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester.canCreateLayer" |
| value="true"> |
| </test> |
| </with> |
| </and> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachCSSToLayer" |
| label="Attach StyleSheet" |
| style="push" |
| tooltip="Attach a StyleSheet to a Layer"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <with |
| variable="selection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester.canAttachCSS" |
| value="true"> |
| </test> |
| </with> |
| </and> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachCSSHideToLayer" |
| label="Attach Disable StyleSheet" |
| style="push" |
| tooltip="Attach a Disable StyleSheet to a Layer"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <with |
| variable="selection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester.canAttachCSSHide" |
| value="true"> |
| </test> |
| </with> |
| </and> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachDiagramViewsToLayer" |
| label="Attach Views" |
| style="push" |
| tooltip="Attach Multiple Diagram Views to a Layer"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <with |
| variable="selection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester.canAttachViews" |
| value="true"> |
| </test> |
| </with> |
| </and> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.deleteLayer" |
| icon="IMG_TOOL_DELETE" |
| label="Delete Layer" |
| style="push" |
| tooltip="Delete Selected Layer from the Layer Explorer"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <with |
| variable="selection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester.canDeleteLayer" |
| value="true"> |
| </test> |
| </with> |
| </and> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.deleteProperty" |
| icon="IMG_TOOL_DELETE" |
| label="Delete Property" |
| style="push" |
| tooltip="Delete Selected Property from the Layer Explorer"> |
| <visibleWhen |
| checkEnabled="false"> |
| <and> |
| <with |
| variable="selection"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester.canDeleteProperty" |
| value="true"> |
| </test> |
| </with> |
| </and> |
| </visibleWhen> |
| </command> |
| <separator |
| name="endseparator" |
| visible="false"> |
| </separator> |
| </menuContribution> |
| <menuContribution |
| locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu"> |
| <menu |
| label="Layers"> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.attachLayerStack" |
| label="Attach Layer Stack" |
| style="push" |
| tooltip="Attach a Layer Stack to the diagram"> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.detachLayerStack" |
| label="Detach Layer Stack" |
| style="push" |
| tooltip="Detach a Layer Stack to the diagram"> |
| </command> |
| <!--command |
| commandId="org.eclipse.papyrus.infra.gmfdiag.layers.ui.commands.openlayersexplorerview" |
| label="Open Layers Explorer" |
| style="push" |
| tooltip="Open the Layers Explorer View"> |
| </command--> |
| </menu> |
| </menuContribution> |
| </extension> |
| <extension |
| point="org.eclipse.papyrus.infra.properties.contexts"> |
| <context |
| contextModel="properties/layers.ctx" |
| isCustomizable="true"> |
| </context> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.papyrus.internal.infra.gmfdiag.layers.ui.utils.LayersWidgetPropertyTester" |
| id="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester" |
| namespace="org.eclipse.papyrus.infra.gmfdiag.layers.ui.tester" |
| properties="canCreateLayer, canAttachProperties, canAttachCSS, canAttachCSSHide, canAttachViews, canDeleteLayer, canDeleteProperty" |
| type="org.eclipse.jface.viewers.IStructuredSelection"> |
| </propertyTester> |
| </extension> |
| <extension |
| point="org.eclipse.papyrus.emf.facet.util.emf.core.modeldeclaration"> |
| <modeldeclaration |
| file="resources/PapyrusDiagramLayer.custom"> |
| </modeldeclaration> |
| </extension> |
| </plugin> |