Author: mareshkau
Date: 2010-10-29 10:03:48 -0400 (Fri, 29 Oct 2010)
New Revision: 26134
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml
Log:
https://jira.jboss.org/browse/JBIDE-7383
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml 2010-10-29 14:00:29 UTC (rev 26133)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/plugin.xml 2010-10-29 14:03:48 UTC (rev 26134)
@@ -162,6 +162,21 @@
point="org.jboss.tools.jst.jsp.visulaEditorImplementations"
id="org.jboss.tools.vpe.editor.VpeEditorPartFactory">
<visualEditorImplementation name="%visualEditorImpl_name"
class="org.jboss.tools.vpe.editor.VpeEditorPartFactory"/>
</extension>
+ <extension point="org.eclipse.core.expressions.definitions">
+ <definition id="org.jboss.tools.ui.vpe.editor">
+ <or>
+ <with variable="activeEditorId">
+ <equals value="org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor"/>
+ </with>
+ <with variable="activeEditorId">
+ <equals
value="org.jboss.tools.jst.jsp.jspeditor.HTMLTextEditor"/>
+ </with>
+ <with variable="activeEditorId">
+ <equals value="org.jboss.tools.jst.jsp.jspeditor.DocBookEditor"/>
+ </with>
+ </or>
+ </definition>
+ </extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
@@ -251,7 +266,7 @@
id="org.jboss.tools.vpe.menus.showBundleAsELCommand"
mnemonic="S"/>
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</menu>
</menuContribution>
@@ -263,7 +278,7 @@
id="org.jboss.tools.vpe.toolbars.preferencesCommand"
tooltip="%vpe.toolbar.preferences">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
<command
@@ -272,7 +287,7 @@
id="org.jboss.tools.vpe.toolbars.refreshCommand"
tooltip="%vpe.toolbar.refresh">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
<command
@@ -281,7 +296,7 @@
id="org.jboss.tools.vpe.toolbars.pageDesignOptionsCommand"
tooltip="%vpe.toolbar.page_design_options">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
<command
@@ -289,7 +304,7 @@
icon=""
id="org.jboss.tools.vpe.toolbars.rotateEditorsCommand">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
<command
@@ -299,7 +314,7 @@
id="org.jboss.tools.vpe.toolbars.showBorderCommand"
tooltip="%vpe.toolbar.show_border">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
<command
@@ -309,7 +324,7 @@
id="org.jboss.tools.vpe.toolbars.showNonVisualTagsCommand"
tooltip="%vpe.toolbar.show_non_visual_tags">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
<command
@@ -319,7 +334,7 @@
id="org.jboss.tools.vpe.toolbars.showTextFormattingCommand"
tooltip="%vpe.toolbar.show_text_formatting">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
<command
@@ -329,7 +344,7 @@
id="org.jboss.tools.vpe.toolbars.showBundleAsELCommand"
tooltip="%vpe.toolbar.show_bundle_as_el">
<visibleWhen checkEnabled="false">
- <reference
definitionId="org.jboss.tools.ui.structuredEditor"/>
+ <reference definitionId="org.jboss.tools.ui.vpe.editor"/>
</visibleWhen>
</command>
</menuContribution>