Author: dmaliarevich
Date: 2011-09-29 10:55:44 -0400 (Thu, 29 Sep 2011)
New Revision: 35155
Modified:
branches/jbosstools-3.2.x/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml
Log:
https://issues.jboss.org/browse/JBIDE-9751 , now i18n menu item is enabled only from
editor's context.
Modified: branches/jbosstools-3.2.x/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml
===================================================================
--- branches/jbosstools-3.2.x/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2011-09-29
14:38:01 UTC (rev 35154)
+++ branches/jbosstools-3.2.x/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2011-09-29
14:55:44 UTC (rev 35155)
@@ -394,23 +394,22 @@
commandId="org.jboss.tools.jst.jsp.commands.i18"
id="org.jboss.tools.jst.jsp.menus.i18"
mnemonic="S">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="activeEditorId">
- <or>
- <equals
-
value="org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor">
- </equals>
- <equals
-
value="org.jboss.tools.jst.jsp.jspeditor.HTMLTextEditor">
- </equals>
- <equals
-
value="org.jboss.tools.jst.jsp.jspeditor.DocBookEditor">
- </equals>
- </or>
- </with>
- </visibleWhen>
+ <visibleWhen checkEnabled="false">
+ <and>
+ <with variable="activeContexts">
+ <iterate operator="or">
+ <equals
value="org.eclipse.wst.sse.ui.structuredTextEditorScope"/>
+ </iterate>
+ </with>
+ <with variable="activeEditorId">
+ <or>
+ <equals
value="org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor" />
+ <equals
value="org.jboss.tools.jst.jsp.jspeditor.HTMLTextEditor" />
+ <equals
value="org.jboss.tools.jst.jsp.jspeditor.DocBookEditor" />
+ </or>
+ </with>
+ </and>
+ </visibleWhen>
</command>
</menuContribution>
<menuContribution