summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2014-05-22 04:45:54 (EDT)
committerBenoit Maggi2014-05-22 04:45:54 (EDT)
commit0ef7e84804e2a275949541014d3a9579548768d2 (patch)
tree8e676a25bcc7dcaaf2d8ed6a945a52e7379a0a96
parent591bd57b8694a950b1afb6862c250291c97a3e11 (diff)
downloadorg.eclipse.papyrus-0ef7e84804e2a275949541014d3a9579548768d2.zip
org.eclipse.papyrus-0ef7e84804e2a275949541014d3a9579548768d2.tar.gz
org.eclipse.papyrus-0ef7e84804e2a275949541014d3a9579548768d2.tar.bz2
Bug 375331 - [All Diagrams] Cut, Copy and Paste commands shall berefs/changes/89/27089/1
available for diagrams - remove the "duplicate" menu on diagrams in model explorer Change-Id: I90e4747bb17fee8407c6d3eb6b96fccadfae08e8 Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml824
1 files changed, 410 insertions, 414 deletions
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml
index eef10e5..2dccfc0 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml
@@ -1,92 +1,92 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?eclipse version="3.4"?>
-
-<plugin>
-<extension point="org.eclipse.papyrus.emf.facet.util.emf.core.modeldeclaration">
- <modeldeclaration file="resources/OpenedPage.custom"/>
-</extension>
- <extension-point id="actionHandler" name="actionHandler" schema="schema/org.eclipse.papyrus.views.modelexplorer.actionHandler.exsd"/>
- <extension
- point="org.eclipse.papyrus.emf.facet.util.emf.core.modeldeclaration">
- <modeldeclaration
- file="resources/ReadOnlyElement.custom">
- </modeldeclaration>
- </extension>
- <extension point="org.eclipse.ui.views">
- <view category="org.eclipse.papyrus.views.category" class="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView" icon="icons/ModelExplorer.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer" name="Model Explorer" restorable="true">
- </view>
- </extension>
- <extension point="org.eclipse.ui.navigator.viewer">
- <viewer popupMenuId="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup" viewerId="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
- </viewer>
- <viewerContentBinding viewerId="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
- <includes>
- <contentExtension pattern="org.eclipse.papyrus.views.modelexplorer.*">
- </contentExtension>
- </includes>
- </viewerContentBinding>
- <!--We add a drag assistant in order support drag and drop between Model Explorer and Table Editor or other View/editors -->
- <dragAssistant class="org.eclipse.papyrus.views.modelexplorer.dnd.EObjectDragAdapterAssistant" viewerId="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
- </dragAssistant>
- </extension>
- <extension point="org.eclipse.ui.navigator.navigatorContent">
- <navigatorContent activeByDefault="false" contentProvider="org.eclipse.papyrus.infra.emf.providers.MoDiscoContentProvider" id="org.eclipse.papyrus.views.modelexplorer.navigatorContent" labelProvider="org.eclipse.jface.viewers.LabelProvider" name="Model Contents" priority="lowest">
- <triggerPoints>
- <or>
- <instanceof value="org.eclipse.emf.ecore.EObject">
- </instanceof>
- <adapt type="org.eclipse.emf.ecore.EObject">
- </adapt>
- <instanceof value="java.lang.Object">
- </instanceof>
- </or>
- </triggerPoints>
- <possibleChildren>
- <or>
- <instanceof value="org.eclipse.gmf.runtime.notation.impl.DiagramImpl">
- </instanceof>
- <adapt type="org.eclipse.emf.ecore.EObject"/>
- </or>
- </possibleChildren>
- <actionProvider class="org.eclipse.papyrus.views.modelexplorer.actionprovider.GenericTransformActionProvider" id="org.eclipse.papyrus.views.modelexplorer.actionprovider.GenericTransformActionProvider">
- <enablement>
- <or>
- <adapt type="org.eclipse.emf.ecore.EObject">
- </adapt>
- <instanceof
- value="org.eclipse.emf.ecore.EObject">
- </instanceof>
- </or>
- </enablement>
- </actionProvider>
-
- <actionProvider class="org.eclipse.papyrus.views.modelexplorer.actionprovider.EditingDomainActionProvider" id="org.eclipse.papyrus.views.modelexplorer.actionprovider.EditingDomainActionProvider">
- <enablement>
- <and>
- <not>
- <instanceof value="org.eclipse.gmf.runtime.notation.Diagram">
- </instanceof>
- </not>
- <adapt
- type="org.eclipse.emf.ecore.EObject">
- </adapt>
- </and>
- </enablement>
- </actionProvider>
- <dropAssistant class="org.eclipse.papyrus.views.modelexplorer.dnd.CommonDropAdapterAssistant" id="org.eclipse.papyrus.views.modelexplorer.dnd.CommonDropAdapterAssistant">
- <possibleDropTargets>
- <or>
- <instanceof value="org.eclipse.gmf.runtime.notation.impl.DiagramImpl">
- </instanceof>
- <adapt
- type="org.eclipse.emf.ecore.EObject">
- </adapt>
- </or>
- </possibleDropTargets>
- </dropAssistant>
-
- </navigatorContent>
- </extension>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?eclipse version="3.4"?>
+
+<plugin>
+<extension point="org.eclipse.papyrus.emf.facet.util.emf.core.modeldeclaration">
+ <modeldeclaration file="resources/OpenedPage.custom"/>
+</extension>
+ <extension-point id="actionHandler" name="actionHandler" schema="schema/org.eclipse.papyrus.views.modelexplorer.actionHandler.exsd"/>
+ <extension
+ point="org.eclipse.papyrus.emf.facet.util.emf.core.modeldeclaration">
+ <modeldeclaration
+ file="resources/ReadOnlyElement.custom">
+ </modeldeclaration>
+ </extension>
+ <extension point="org.eclipse.ui.views">
+ <view category="org.eclipse.papyrus.views.category" class="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView" icon="icons/ModelExplorer.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer" name="Model Explorer" restorable="true">
+ </view>
+ </extension>
+ <extension point="org.eclipse.ui.navigator.viewer">
+ <viewer popupMenuId="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup" viewerId="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </viewer>
+ <viewerContentBinding viewerId="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ <includes>
+ <contentExtension pattern="org.eclipse.papyrus.views.modelexplorer.*">
+ </contentExtension>
+ </includes>
+ </viewerContentBinding>
+ <!--We add a drag assistant in order support drag and drop between Model Explorer and Table Editor or other View/editors -->
+ <dragAssistant class="org.eclipse.papyrus.views.modelexplorer.dnd.EObjectDragAdapterAssistant" viewerId="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </dragAssistant>
+ </extension>
+ <extension point="org.eclipse.ui.navigator.navigatorContent">
+ <navigatorContent activeByDefault="false" contentProvider="org.eclipse.papyrus.infra.emf.providers.MoDiscoContentProvider" id="org.eclipse.papyrus.views.modelexplorer.navigatorContent" labelProvider="org.eclipse.jface.viewers.LabelProvider" name="Model Contents" priority="lowest">
+ <triggerPoints>
+ <or>
+ <instanceof value="org.eclipse.emf.ecore.EObject">
+ </instanceof>
+ <adapt type="org.eclipse.emf.ecore.EObject">
+ </adapt>
+ <instanceof value="java.lang.Object">
+ </instanceof>
+ </or>
+ </triggerPoints>
+ <possibleChildren>
+ <or>
+ <instanceof value="org.eclipse.gmf.runtime.notation.impl.DiagramImpl">
+ </instanceof>
+ <adapt type="org.eclipse.emf.ecore.EObject"/>
+ </or>
+ </possibleChildren>
+ <actionProvider class="org.eclipse.papyrus.views.modelexplorer.actionprovider.GenericTransformActionProvider" id="org.eclipse.papyrus.views.modelexplorer.actionprovider.GenericTransformActionProvider">
+ <enablement>
+ <or>
+ <adapt type="org.eclipse.emf.ecore.EObject">
+ </adapt>
+ <instanceof
+ value="org.eclipse.emf.ecore.EObject">
+ </instanceof>
+ </or>
+ </enablement>
+ </actionProvider>
+
+ <actionProvider class="org.eclipse.papyrus.views.modelexplorer.actionprovider.EditingDomainActionProvider" id="org.eclipse.papyrus.views.modelexplorer.actionprovider.EditingDomainActionProvider">
+ <enablement>
+ <and>
+ <not>
+ <instanceof value="org.eclipse.gmf.runtime.notation.Diagram">
+ </instanceof>
+ </not>
+ <adapt
+ type="org.eclipse.emf.ecore.EObject">
+ </adapt>
+ </and>
+ </enablement>
+ </actionProvider>
+ <dropAssistant class="org.eclipse.papyrus.views.modelexplorer.dnd.CommonDropAdapterAssistant" id="org.eclipse.papyrus.views.modelexplorer.dnd.CommonDropAdapterAssistant">
+ <possibleDropTargets>
+ <or>
+ <instanceof value="org.eclipse.gmf.runtime.notation.impl.DiagramImpl">
+ </instanceof>
+ <adapt
+ type="org.eclipse.emf.ecore.EObject">
+ </adapt>
+ </or>
+ </possibleDropTargets>
+ </dropAssistant>
+
+ </navigatorContent>
+ </extension>
<!--
<extension
point="org.eclipse.papyrus.views.modelexplorer.actionHandler">
@@ -98,293 +98,289 @@
needSeparator="true">
</customAction>
</extension>
--->
-<extension point="org.eclipse.ui.menus">
-
- <!-- ModelExplorer toolbar -->
- <menuContribution allPopups="false" locationURI="toolbar:org.eclipse.papyrus.views.modelexplorer.modelexplorer">
-
- <!-- Load modisco browser customization command -->
- <command commandId="org.eclipse.papyrus.views.modelexplorer.LoadBrowserCustomization" icon="icons/etool16/uiCustom.gif" label="Load browser customization" style="push">
- </command>
-
- <!-- Search element command -->
-
- <!-- Sort elements command -->
- <command commandId="org.eclipse.papyrus.views.modelexplorer.sortelement" icon="icons/etool16/sort.gif" label="sort" style="toggle">
- </command>
- </menuContribution>
- <menuContribution allPopups="false" locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
- <separator
- name="newelements"
- visible="false">
- </separator>
- <menu id="org.eclipse.papyrus.views.modelexplorer.popupmenu.createchild" label="New Child">
- </menu>
- <menu
- icon="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/icons/NewDiagram.gif"
- id="org.eclipse.papyrus.views.modelexplorer.popupmenu.creatediagram"
- label="New Diagram">
- </menu>
- <command commandId="org.eclipse.ui.edit.delete" disabledIcon="IMG_TOOL_DELETE_DISABLED" icon="IMG_TOOL_DELETE" label="Delete" style="push" tooltip="Delete">
- <visibleWhen checkEnabled="true">
- <and>
- <with variable="selection">
- <iterate>
- <adapt type="org.eclipse.emf.ecore.EObject">
- </adapt>
- </iterate>
- </with>
- </and>
- </visibleWhen>
- </command>
- <separator name="rename" visible="true">
- </separator>
- <command commandId="org.eclipse.ui.edit.rename" icon="icons/etool16/rename.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.rename" label="&amp;Rename" style="push" tooltip="Rename the element">
- <visibleWhen checkEnabled="true">
- </visibleWhen>
- </command>
- <separator name="command" visible="true">
- </separator>
- <command commandId="org.eclipse.ui.edit.undo" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.undo" label="&amp;Undo" style="push">
- </command>
- <command commandId="org.eclipse.ui.edit.redo" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.redo" label="&amp;Redo" style="push">
- </command>
- <separator name="diagramedit" visible="true">
- </separator>
- <command commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.command" icon="icons/etool16/forward.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.open" label="&amp;Open" style="push" tooltip="Open">
- <visibleWhen checkEnabled="true">
- </visibleWhen>
- </command>
- <command commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.new.command" icon="icons/etool16/arrow_double.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.open.new" label="Open In &amp;New Table" style="push" tooltip="Open in new tab">
- <visibleWhen checkEnabled="true">
- </visibleWhen>
- </command>
- <command commandId="org.eclipse.papyrus.views.modelexplorer.popup.close.command" icon="icons/etool16/close.png" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.close" label="&amp;Close" style="push" tooltip="Close">
- <visibleWhen checkEnabled="true">
- </visibleWhen>
- </command>
- <command commandId="org.eclipse.papyrus.views.modelexplorer.close.all.command" icon="icons/etool16/closeAll.png" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.close.all" label="Close &amp;All" style="push" tooltip="Close All">
- <visibleWhen checkEnabled="true">
- </visibleWhen>
- </command>
- <command commandId="org.eclipse.papyrus.views.modelexplorer.duplicate.command" icon="icons/etool16/duplicate.png" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.duplicate" label="&amp;Duplicate" style="push" tooltip="Duplicate the element">
- <visibleWhen checkEnabled="true">
- </visibleWhen>
- </command>
- <separator name="edition" visible="true">
- </separator>
- <command commandId="org.eclipse.ui.edit.cut" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.cut" label="Cu&amp;t" style="push">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <!-- We add this test in order to refresh the Cut action in the menu edit -->
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
- </test>
- </with>
- </visibleWhen>
- </command>
- <command commandId="org.eclipse.ui.edit.copy" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.copy" label="&amp;Copy" style="push">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <!-- We add this test in order to refresh the Copy action in the menu edit -->
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
- </test>
- </with>
- </visibleWhen>
- </command>
- <command commandId="org.eclipse.ui.edit.paste" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.paste" label="&amp;Paste" style="push">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <!-- We add this test in order to refresh the Paste action in the menu edit -->
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
- </test>
- </with>
- </visibleWhen>
- </command>
- <separator
- name="tools"
- visible="true">
- </separator>
- <separator
- name="others"
- visible="true">
- </separator>
- <separator
- name="additions"
- visible="false">
- </separator>
- </menuContribution>
- <!-- ModelExplorer Contextual menu -->
-
-</extension>
-
-<!-- Command declarations (for model explorer toolbar and contextual menu -->
-<extension point="org.eclipse.ui.commands">
-
- <!-- Command declaration : Load modisco browser customization command -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.LoadBrowserCustomization" description="Load a customization for the papyrus browser" id="org.eclipse.papyrus.views.modelexplorer.LoadBrowserCustomization" name="Customize Model Explorer">
- </command>
-
- <!-- Command declaration : Search element command -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.SearchElementHandler" description="Search an element in the model explorer" id="org.eclipse.papyrus.views.modelexplorer.searchelement" name="Quick Search">
- </command>
-
- <!-- Command declaration : Sort elements command -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.SortElementHandler" description="Sort elements" id="org.eclipse.papyrus.views.modelexplorer.sortelement" name="Sort elements">
- <state
- class="org.eclipse.papyrus.views.modelexplorer.handler.SortElementState:org.eclipse.papyrus.views.modelexplorer.modelexplorer"
- id="org.eclipse.ui.commands.toggleState">
- </state>
- </command>
-
- <!-- Command declaration : Delete element command -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.DeleteCommandHandler" description="Delete" id="org.eclipse.papyrus.uml.service.creation.DeleteCommand" name="Delete">
- </command>
-</extension>
-
-
- <extension point="org.eclipse.core.runtime.preferences">
- <?gmfgen generated="false"?>
- <initializer class="org.eclipse.papyrus.views.modelexplorer.preferences.NavigatorPreferenceInitializer"/>
- </extension>
- <extension point="org.eclipse.ui.preferencePages">
- <page category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory" class="org.eclipse.papyrus.views.modelexplorer.preferences.NavigatorPreferencePage" id="org.eclipse.papyrus.views.modelexplorer.preferences.NavigatorPreferencePage" name="Papyrus Model Explorer">
- </page>
- </extension>
-
+-->
+<extension point="org.eclipse.ui.menus">
+
+ <!-- ModelExplorer toolbar -->
+ <menuContribution allPopups="false" locationURI="toolbar:org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+
+ <!-- Load modisco browser customization command -->
+ <command commandId="org.eclipse.papyrus.views.modelexplorer.LoadBrowserCustomization" icon="icons/etool16/uiCustom.gif" label="Load browser customization" style="push">
+ </command>
+
+ <!-- Search element command -->
+
+ <!-- Sort elements command -->
+ <command commandId="org.eclipse.papyrus.views.modelexplorer.sortelement" icon="icons/etool16/sort.gif" label="sort" style="toggle">
+ </command>
+ </menuContribution>
+ <menuContribution allPopups="false" locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
+ <separator
+ name="newelements"
+ visible="false">
+ </separator>
+ <menu id="org.eclipse.papyrus.views.modelexplorer.popupmenu.createchild" label="New Child">
+ </menu>
+ <menu
+ icon="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/icons/NewDiagram.gif"
+ id="org.eclipse.papyrus.views.modelexplorer.popupmenu.creatediagram"
+ label="New Diagram">
+ </menu>
+ <command commandId="org.eclipse.ui.edit.delete" disabledIcon="IMG_TOOL_DELETE_DISABLED" icon="IMG_TOOL_DELETE" label="Delete" style="push" tooltip="Delete">
+ <visibleWhen checkEnabled="true">
+ <and>
+ <with variable="selection">
+ <iterate>
+ <adapt type="org.eclipse.emf.ecore.EObject">
+ </adapt>
+ </iterate>
+ </with>
+ </and>
+ </visibleWhen>
+ </command>
+ <separator name="rename" visible="true">
+ </separator>
+ <command commandId="org.eclipse.ui.edit.rename" icon="icons/etool16/rename.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.rename" label="&amp;Rename" style="push" tooltip="Rename the element">
+ <visibleWhen checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <separator name="command" visible="true">
+ </separator>
+ <command commandId="org.eclipse.ui.edit.undo" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.undo" label="&amp;Undo" style="push">
+ </command>
+ <command commandId="org.eclipse.ui.edit.redo" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.redo" label="&amp;Redo" style="push">
+ </command>
+ <separator name="diagramedit" visible="true">
+ </separator>
+ <command commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.command" icon="icons/etool16/forward.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.open" label="&amp;Open" style="push" tooltip="Open">
+ <visibleWhen checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.new.command" icon="icons/etool16/arrow_double.gif" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.open.new" label="Open In &amp;New Table" style="push" tooltip="Open in new tab">
+ <visibleWhen checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command commandId="org.eclipse.papyrus.views.modelexplorer.popup.close.command" icon="icons/etool16/close.png" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.close" label="&amp;Close" style="push" tooltip="Close">
+ <visibleWhen checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command commandId="org.eclipse.papyrus.views.modelexplorer.close.all.command" icon="icons/etool16/closeAll.png" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.close.all" label="Close &amp;All" style="push" tooltip="Close All">
+ <visibleWhen checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <separator name="edition" visible="true">
+ </separator>
+ <command commandId="org.eclipse.ui.edit.cut" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.cut" label="Cu&amp;t" style="push">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <!-- We add this test in order to refresh the Cut action in the menu edit -->
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
+ </test>
+ </with>
+ </visibleWhen>
+ </command>
+ <command commandId="org.eclipse.ui.edit.copy" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.copy" label="&amp;Copy" style="push">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <!-- We add this test in order to refresh the Copy action in the menu edit -->
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
+ </test>
+ </with>
+ </visibleWhen>
+ </command>
+ <command commandId="org.eclipse.ui.edit.paste" id="org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup.paste" label="&amp;Paste" style="push">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <!-- We add this test in order to refresh the Paste action in the menu edit -->
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
+ </test>
+ </with>
+ </visibleWhen>
+ </command>
+ <separator
+ name="tools"
+ visible="true">
+ </separator>
+ <separator
+ name="others"
+ visible="true">
+ </separator>
+ <separator
+ name="additions"
+ visible="false">
+ </separator>
+ </menuContribution>
+ <!-- ModelExplorer Contextual menu -->
+
+</extension>
+
+<!-- Command declarations (for model explorer toolbar and contextual menu -->
+<extension point="org.eclipse.ui.commands">
+
+ <!-- Command declaration : Load modisco browser customization command -->
+ <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.LoadBrowserCustomization" description="Load a customization for the papyrus browser" id="org.eclipse.papyrus.views.modelexplorer.LoadBrowserCustomization" name="Customize Model Explorer">
+ </command>
+
+ <!-- Command declaration : Search element command -->
+ <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.SearchElementHandler" description="Search an element in the model explorer" id="org.eclipse.papyrus.views.modelexplorer.searchelement" name="Quick Search">
+ </command>
+
+ <!-- Command declaration : Sort elements command -->
+ <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.SortElementHandler" description="Sort elements" id="org.eclipse.papyrus.views.modelexplorer.sortelement" name="Sort elements">
+ <state
+ class="org.eclipse.papyrus.views.modelexplorer.handler.SortElementState:org.eclipse.papyrus.views.modelexplorer.modelexplorer"
+ id="org.eclipse.ui.commands.toggleState">
+ </state>
+ </command>
+
+ <!-- Command declaration : Delete element command -->
+ <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.views.modelexplorer.handler.DeleteCommandHandler" description="Delete" id="org.eclipse.papyrus.uml.service.creation.DeleteCommand" name="Delete">
+ </command>
+</extension>
+
+
+ <extension point="org.eclipse.core.runtime.preferences">
+ <?gmfgen generated="false"?>
+ <initializer class="org.eclipse.papyrus.views.modelexplorer.preferences.NavigatorPreferenceInitializer"/>
+ </extension>
+ <extension point="org.eclipse.ui.preferencePages">
+ <page category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory" class="org.eclipse.papyrus.views.modelexplorer.preferences.NavigatorPreferencePage" id="org.eclipse.papyrus.views.modelexplorer.preferences.NavigatorPreferencePage" name="Papyrus Model Explorer">
+ </page>
+ </extension>
+
<!-- This declaration is added in order command (DeleteCommandHandler) status to be
verified (isVisible and isEnabled) before any attempt to execute the command,
and to mask the command in case it is not supported or executable.
-->
-<extension point="org.eclipse.ui.navigator.linkHelper">
- <linkHelper class="org.eclipse.papyrus.views.modelexplorer.LinkHelper" id="org.eclipse.papyrus.views.modelexplorer.linkHelper">
- <selectionEnablement>
- <instanceof value="java.lang.Object">
- </instanceof>
- </selectionEnablement>
- <editorInputEnablement>
- <instanceof value="org.eclipse.ui.IFileEditorInput">
- </instanceof>
- </editorInputEnablement>
- </linkHelper>
-</extension>
-
+<extension point="org.eclipse.ui.navigator.linkHelper">
+ <linkHelper class="org.eclipse.papyrus.views.modelexplorer.LinkHelper" id="org.eclipse.papyrus.views.modelexplorer.linkHelper">
+ <selectionEnablement>
+ <instanceof value="java.lang.Object">
+ </instanceof>
+ </selectionEnablement>
+ <editorInputEnablement>
+ <instanceof value="org.eclipse.ui.IFileEditorInput">
+ </instanceof>
+ </editorInputEnablement>
+ </linkHelper>
+</extension>
+
<!-- This handler is activated when deleteInModelExplorer variable is valid.
- -->
-<extension point="org.eclipse.ui.commands">
- <command categoryId="org.eclipse.papyrus.editor.category" description="The command to open in a tab" id="org.eclipse.papyrus.views.modelexplorer.popup.open.command" name="Open Command">
- </command>
- <command categoryId="org.eclipse.papyrus.editor.category" description="The command to open in a new tab" id="org.eclipse.papyrus.views.modelexplorer.popup.open.new.command" name="Open In New Tab Command">
- </command>
- <command categoryId="org.eclipse.papyrus.editor.category" description="The command to close" id="org.eclipse.papyrus.views.modelexplorer.popup.close.command" name="Close Command">
- </command>
- <command categoryId="org.eclipse.papyrus.editor.category" description="The command to close all " id="org.eclipse.papyrus.views.modelexplorer.close.all.command" name="Close All Command">
- </command>
- <command categoryId="org.eclipse.papyrus.editor.category" description="The Command to duplicate the selected element" id="org.eclipse.papyrus.views.modelexplorer.duplicate.command" name="Duplicate ">
- </command>
-</extension>
-<extension point="org.eclipse.ui.handlers">
- <handler commandId="org.eclipse.papyrus.views.modelexplorer.popup.close.command">
- <activeWhen>
- <with variable="selection">
- <and>
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
- </test>
- </and>
- </with>
- </activeWhen>
- <class class="org.eclipse.papyrus.views.modelexplorer.handler.CloseHandler">
- <parameter name="close_parameter" value="selection">
- </parameter>
- </class>
- </handler>
- <handler commandId="org.eclipse.papyrus.views.modelexplorer.close.all.command">
- <class class="org.eclipse.papyrus.views.modelexplorer.handler.CloseHandler">
- <parameter name="close_parameter" value="all">
- </parameter>
- </class>
- <activeWhen>
- <with variable="selection">
- <and>
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
- </test>
- </and>
- </with>
- </activeWhen>
- </handler>
- <handler commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.command">
- <activeWhen>
- <with variable="selection">
- <and>
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
- </test>
- </and>
- </with>
- </activeWhen>
- <class class="org.eclipse.papyrus.views.modelexplorer.handler.OpenHandler">
- <parameter name="open_parameter" value="close">
- </parameter>
- </class>
- </handler>
- <handler commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.new.command">
- <activeWhen>
- <with variable="selection">
- <and>
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
- </test>
- </and>
- </with>
- </activeWhen>
- <class class="org.eclipse.papyrus.views.modelexplorer.handler.OpenHandler">
- <parameter name="open_parameter" value="already_open">
- </parameter>
- </class>
- </handler>
- <handler class="org.eclipse.papyrus.views.modelexplorer.handler.CutHandler" commandId="org.eclipse.ui.edit.cut">
- <activeWhen>
- <and>
- <with variable="activePart">
- <instanceof value="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView">
- </instanceof>
- </with>
- <with variable="selection">
- <!-- We add this test in order to refresh the Cut action in the menu edit -->
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
- </test>
- </with>
- </and>
- </activeWhen>
- </handler>
- <handler class="org.eclipse.papyrus.views.modelexplorer.handler.UndoHandler" commandId="org.eclipse.ui.edit.undo">
- <activeWhen>
- <and>
- <with variable="activePart">
- <instanceof value="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView">
- </instanceof>
- </with>
- <with variable="activePart">
- <!-- We add this test in order to refresh the Undo action in the menu file -->
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.view.isModelExplorer" value="true">
- </test>
- </with>
- </and>
- </activeWhen>
- </handler>
- <handler class="org.eclipse.papyrus.views.modelexplorer.handler.RedoHandler" commandId="org.eclipse.ui.edit.redo">
- <activeWhen>
- <and>
- <with variable="activePart">
- <instanceof value="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView">
- </instanceof>
- </with>
- <with variable="activePart">
- <!-- We add this test in order to refresh the Redo action in the menu edit -->
- <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.view.isModelExplorer" value="true">
- </test>
- </with>
- </and>
- </activeWhen>
- </handler>
+ -->
+<extension point="org.eclipse.ui.commands">
+ <command categoryId="org.eclipse.papyrus.editor.category" description="The command to open in a tab" id="org.eclipse.papyrus.views.modelexplorer.popup.open.command" name="Open Command">
+ </command>
+ <command categoryId="org.eclipse.papyrus.editor.category" description="The command to open in a new tab" id="org.eclipse.papyrus.views.modelexplorer.popup.open.new.command" name="Open In New Tab Command">
+ </command>
+ <command categoryId="org.eclipse.papyrus.editor.category" description="The command to close" id="org.eclipse.papyrus.views.modelexplorer.popup.close.command" name="Close Command">
+ </command>
+ <command categoryId="org.eclipse.papyrus.editor.category" description="The command to close all " id="org.eclipse.papyrus.views.modelexplorer.close.all.command" name="Close All Command">
+ </command>
+ <command categoryId="org.eclipse.papyrus.editor.category" description="The Command to duplicate the selected element" id="org.eclipse.papyrus.views.modelexplorer.duplicate.command" name="Duplicate ">
+ </command>
+</extension>
+<extension point="org.eclipse.ui.handlers">
+ <handler commandId="org.eclipse.papyrus.views.modelexplorer.popup.close.command">
+ <activeWhen>
+ <with variable="selection">
+ <and>
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
+ </test>
+ </and>
+ </with>
+ </activeWhen>
+ <class class="org.eclipse.papyrus.views.modelexplorer.handler.CloseHandler">
+ <parameter name="close_parameter" value="selection">
+ </parameter>
+ </class>
+ </handler>
+ <handler commandId="org.eclipse.papyrus.views.modelexplorer.close.all.command">
+ <class class="org.eclipse.papyrus.views.modelexplorer.handler.CloseHandler">
+ <parameter name="close_parameter" value="all">
+ </parameter>
+ </class>
+ <activeWhen>
+ <with variable="selection">
+ <and>
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
+ </test>
+ </and>
+ </with>
+ </activeWhen>
+ </handler>
+ <handler commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.command">
+ <activeWhen>
+ <with variable="selection">
+ <and>
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
+ </test>
+ </and>
+ </with>
+ </activeWhen>
+ <class class="org.eclipse.papyrus.views.modelexplorer.handler.OpenHandler">
+ <parameter name="open_parameter" value="close">
+ </parameter>
+ </class>
+ </handler>
+ <handler commandId="org.eclipse.papyrus.views.modelexplorer.popup.open.new.command">
+ <activeWhen>
+ <with variable="selection">
+ <and>
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isPage" value="true">
+ </test>
+ </and>
+ </with>
+ </activeWhen>
+ <class class="org.eclipse.papyrus.views.modelexplorer.handler.OpenHandler">
+ <parameter name="open_parameter" value="already_open">
+ </parameter>
+ </class>
+ </handler>
+ <handler class="org.eclipse.papyrus.views.modelexplorer.handler.CutHandler" commandId="org.eclipse.ui.edit.cut">
+ <activeWhen>
+ <and>
+ <with variable="activePart">
+ <instanceof value="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView">
+ </instanceof>
+ </with>
+ <with variable="selection">
+ <!-- We add this test in order to refresh the Cut action in the menu edit -->
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.isEObject" value="true">
+ </test>
+ </with>
+ </and>
+ </activeWhen>
+ </handler>
+ <handler class="org.eclipse.papyrus.views.modelexplorer.handler.UndoHandler" commandId="org.eclipse.ui.edit.undo">
+ <activeWhen>
+ <and>
+ <with variable="activePart">
+ <instanceof value="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView">
+ </instanceof>
+ </with>
+ <with variable="activePart">
+ <!-- We add this test in order to refresh the Undo action in the menu file -->
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.view.isModelExplorer" value="true">
+ </test>
+ </with>
+ </and>
+ </activeWhen>
+ </handler>
+ <handler class="org.eclipse.papyrus.views.modelexplorer.handler.RedoHandler" commandId="org.eclipse.ui.edit.redo">
+ <activeWhen>
+ <and>
+ <with variable="activePart">
+ <instanceof value="org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView">
+ </instanceof>
+ </with>
+ <with variable="activePart">
+ <!-- We add this test in order to refresh the Redo action in the menu edit -->
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.views.modelexplorer.tester.view.isModelExplorer" value="true">
+ </test>
+ </with>
+ </and>
+ </activeWhen>
+ </handler>
<handler
class="org.eclipse.papyrus.views.modelexplorer.handler.DeleteCommandHandler"
commandId="org.eclipse.ui.edit.delete">
@@ -451,46 +447,46 @@
</and>
</activeWhen>
</handler>
-</extension>
-<extension point="org.eclipse.core.expressions.propertyTesters">
- <!-- the property tester is used to enabled/disabled handler -->
- <propertyTester class="org.eclipse.papyrus.views.modelexplorer.provider.PropertyTester" id="org.eclipse.papyrus.views.modelexplorer.tester" namespace="org.eclipse.papyrus.views.modelexplorer.tester" properties="isEObject,isPage,eClass" type="org.eclipse.jface.viewers.IStructuredSelection">
- </propertyTester>
- <propertyTester class="org.eclipse.papyrus.views.modelexplorer.provider.PropertyTester" id="org.eclipse.papyrus.views.modelexplorer.tester.view" namespace="org.eclipse.papyrus.views.modelexplorer.tester.view" properties="isModelExplorer" type="org.eclipse.ui.IWorkbenchPart">
- </propertyTester>
-</extension>
-<!--
-TODO: PAPYRUS EMF-FACET update uiCustom Here
- <extension point="org.eclipse.papyrus.emf.facet.infra.query.registration">
- <modelqueryset file="resources/PapyrusEcoreBrowserQuery.querySet"/>
- </extension>
- <extension point="org.eclipse.papyrus.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization file="resources/PapyrusEcoreBrowser.uiCustom"/>
- </extension>
- <extension point="org.eclipse.papyrus.emf.facet.infra.facet.registration">
- <facetset file="resources/PapyrusPages.facetSet"/>
- </extension>
- <extension point="org.eclipse.papyrus.emf.facet.infra.query.registration">
- <modelqueryset file="resources/PapyrusPages.querySet"/>
- </extension>
- <extension point="org.eclipse.papyrus.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization
- file="resources/PapyrusPages.uiCustom"
- loadByDefault="true"/>
- </extension>
- -->
- <extension point="org.eclipse.papyrus.infra.services.labelprovider.labelProvider">
- <context description="The ModelExplorer labelProvider context" id="org.eclipse.papyrus.views.modelexplorer.labelProvider.context">
- </context>
- </extension>
- <extension
- point="org.eclipse.papyrus.infra.services.navigation.navigationContributor">
- <target
- description="Display an element in the ModelExplorer"
- id="org.eclipse.papyrus.views.modelexplorer.navigation.target"
- label="Show in ModelExplorer"
- navigationTargetProvider="org.eclipse.papyrus.views.modelexplorer.navigation.ModelExplorerNavigationTargetProvider"
- order="500">
- </target>
- </extension>
-</plugin>
+</extension>
+<extension point="org.eclipse.core.expressions.propertyTesters">
+ <!-- the property tester is used to enabled/disabled handler -->
+ <propertyTester class="org.eclipse.papyrus.views.modelexplorer.provider.PropertyTester" id="org.eclipse.papyrus.views.modelexplorer.tester" namespace="org.eclipse.papyrus.views.modelexplorer.tester" properties="isEObject,isPage,eClass" type="org.eclipse.jface.viewers.IStructuredSelection">
+ </propertyTester>
+ <propertyTester class="org.eclipse.papyrus.views.modelexplorer.provider.PropertyTester" id="org.eclipse.papyrus.views.modelexplorer.tester.view" namespace="org.eclipse.papyrus.views.modelexplorer.tester.view" properties="isModelExplorer" type="org.eclipse.ui.IWorkbenchPart">
+ </propertyTester>
+</extension>
+<!--
+TODO: PAPYRUS EMF-FACET update uiCustom Here
+ <extension point="org.eclipse.papyrus.emf.facet.infra.query.registration">
+ <modelqueryset file="resources/PapyrusEcoreBrowserQuery.querySet"/>
+ </extension>
+ <extension point="org.eclipse.papyrus.emf.facet.infra.browser.custom.core.registration">
+ <browserCustomization file="resources/PapyrusEcoreBrowser.uiCustom"/>
+ </extension>
+ <extension point="org.eclipse.papyrus.emf.facet.infra.facet.registration">
+ <facetset file="resources/PapyrusPages.facetSet"/>
+ </extension>
+ <extension point="org.eclipse.papyrus.emf.facet.infra.query.registration">
+ <modelqueryset file="resources/PapyrusPages.querySet"/>
+ </extension>
+ <extension point="org.eclipse.papyrus.emf.facet.infra.browser.custom.core.registration">
+ <browserCustomization
+ file="resources/PapyrusPages.uiCustom"
+ loadByDefault="true"/>
+ </extension>
+ -->
+ <extension point="org.eclipse.papyrus.infra.services.labelprovider.labelProvider">
+ <context description="The ModelExplorer labelProvider context" id="org.eclipse.papyrus.views.modelexplorer.labelProvider.context">
+ </context>
+ </extension>
+ <extension
+ point="org.eclipse.papyrus.infra.services.navigation.navigationContributor">
+ <target
+ description="Display an element in the ModelExplorer"
+ id="org.eclipse.papyrus.views.modelexplorer.navigation.target"
+ label="Show in ModelExplorer"
+ navigationTargetProvider="org.eclipse.papyrus.views.modelexplorer.navigation.ModelExplorerNavigationTargetProvider"
+ order="500">
+ </target>
+ </extension>
+</plugin>