Author: dmaliarevich
Date: 2011-08-09 14:29:27 -0400 (Tue, 09 Aug 2011)
New Revision: 33729
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml
Log:
https://issues.jboss.org/browse/JBIDE-9445 , now enabled only from editor's context
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2011-08-09 18:19:36 UTC (rev
33728)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2011-08-09 18:29:27 UTC (rev
33729)
@@ -379,23 +379,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