diff options
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/plugin.xml')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/plugin.xml | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/plugin.xml index 8e0a4c7141f..27d6abc5373 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/plugin.xml +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/plugin.xml @@ -264,11 +264,18 @@ <with variable="activeEditorId"> <equals value="org.eclipse.papyrus.infra.core.papyrusEditor"/> </with> + <with + variable="activeEditor"> + <adapt + type="org.eclipse.jface.viewers.ISelection"> + <test + forcePluginActivation="true" + property="org.eclipse.papyrus.UMLSelectionTester.isUMLModel" + value="true"> + </test> + </adapt> + </with> - <with variable="selection"> - <test property="org.eclipse.papyrus.UMLSelectionTester.isUMLModel" value="true" - forcePluginActivation="true"/> - </with> </and> </definition> @@ -280,10 +287,17 @@ <equals value="org.eclipse.papyrus.infra.core.papyrusEditor"/> </with> - <with variable="selection"> - <test property="org.eclipse.papyrus.UMLSelectionTester.isUMLProfile" value="true" - forcePluginActivation="true"/> - </with> + <with + variable="activeEditor"> + <adapt + type="org.eclipse.jface.viewers.ISelection"> + <test + forcePluginActivation="true" + property="org.eclipse.papyrus.UMLSelectionTester.isUMLProfile" + value="true"> + </test> + </adapt> + </with> </and> </definition> |