Author: akazakov
Date: 2012-04-12 20:21:59 -0400 (Thu, 12 Apr 2012)
New Revision: 40167
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
Log:
https://issues.jboss.org/browse/JBIDE-11470 Context New Menu does not provide the best
options for "webapp"
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2012-04-13 00:13:54 UTC (rev
40166)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2012-04-13 00:21:59 UTC (rev
40167)
@@ -214,7 +214,7 @@
type="new"
wizardId="org.jboss.tools.jst.web.ui.wizards.newfile.NewXHTMLWizard">
<enablement>
- <or>
+ <and>
<adapt type="org.eclipse.core.resources.IResource">
<or>
<test
@@ -225,7 +225,14 @@
value="jst.web"/>
</or>
</adapt>
- </or>
+ <not>
+ <or>
+ <instanceof
value="org.eclipse.jdt.core.IPackageFragment"/>
+ <instanceof
value="org.eclipse.jdt.core.IPackageFragmentRoot"/>
+ <instanceof
value="org.eclipse.jdt.core.ICompilationUnit"/>
+ </or>
+ </not>
+ </and>
</enablement>
</commonWizard>
</extension>