Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian NOYRIT2020-11-24 10:10:28 -0500
committerFlorian Noyrit2020-11-26 03:14:58 -0500
commit42fb5824d8f8ad7c26805acddff295bb53fefc1d (patch)
treeaf9f5b67ca3c6613b241bac377c2070b31902789 /plugins/infra/gmfdiag/css
parent7d1a334002dae0c68e7b025d78bd244462c94b51 (diff)
downloadorg.eclipse.papyrus-42fb5824d8f8ad7c26805acddff295bb53fefc1d.tar.gz
org.eclipse.papyrus-42fb5824d8f8ad7c26805acddff295bb53fefc1d.tar.xz
org.eclipse.papyrus-42fb5824d8f8ad7c26805acddff295bb53fefc1d.zip
Bug 569128 - Menu contribution "CSS Theme" from Papyrus is too visible
- Added a condition to the "CSS Theme" menu contribution to make it visible only for CSS files
Diffstat (limited to 'plugins/infra/gmfdiag/css')
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml50
1 files changed, 32 insertions, 18 deletions
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml
index 266441657ea..62a916b8641 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/plugin.xml
@@ -37,18 +37,18 @@
class="org.eclipse.papyrus.infra.gmfdiag.css.properties.handler.CSSFileHandler"
commandId="org.eclipse.papyrus.infra.gmfdiag.css.theme.edit">
<enabledWhen>
- <with
- variable="selection">
- <iterate>
- <adapt
- type="org.eclipse.core.resources.IResource">
- <test
- property="org.eclipse.core.resources.extension"
- value="css">
- </test>
- </adapt>
- </iterate>
- </with>
+ <with
+ variable="selection">
+ <iterate>
+ <adapt
+ type="org.eclipse.core.resources.IResource">
+ <test
+ property="org.eclipse.core.resources.extension"
+ value="css">
+ </test>
+ </adapt>
+ </iterate>
+ </with>
</enabledWhen>
</handler>
</extension>
@@ -79,12 +79,26 @@
label="CSS Theme">
<visibleWhen
checkEnabled="true">
- <with
- variable="activePartId">
- <equals
- value="org.eclipse.ui.navigator.ProjectExplorer">
- </equals>
- </with>
+ <and>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.ui.navigator.ProjectExplorer">
+ </equals>
+ </with>
+ <with
+ variable="selection">
+ <iterate>
+ <adapt
+ type="org.eclipse.core.resources.IResource">
+ <test
+ property="org.eclipse.core.resources.extension"
+ value="css">
+ </test>
+ </adapt>
+ </iterate>
+ </with>
+ </and>
</visibleWhen>
</menu>
</menuContribution>

Back to the top