Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml33
1 files changed, 29 insertions, 4 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml b/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml
index df929c68d9..deb6c8ef1c 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml
+++ b/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml
@@ -272,12 +272,13 @@
<command
id="org.eclipse.jpt.jpa.ui.convertJavaProjectToJpa"
name="%convertJavaProjectToJpaCommandName"
- categoryId="org.eclipse.ui.category.file"
- defaultHandler="org.eclipse.jpt.jpa.ui.internal.commands.ConvertJavaProjectToJpaCommandHandler"/>
-
+ categoryId="org.eclipse.ui.category.file">
+ </command>
+
<command
id="org.eclipse.jpt.jpa.ui.xmlFileUpgradeToLatestVersion"
- name="%upgradeToLatestVersion"/>
+ name="%upgradeToLatestVersion">
+ </command>
<category
id="org.eclipse.jpt.jpa.ui.jpaStructureViewCommands"
@@ -514,6 +515,30 @@
class="org.eclipse.jpt.jpa.ui.internal.commands.JavaQueryConversionHandler"
commandId="org.eclipse.jpt.jpa.ui.convertJavaQueries"/>
+ <handler
+ commandId="org.eclipse.jpt.jpa.ui.convertJavaProjectToJpa"
+ class="org.eclipse.jpt.jpa.ui.internal.commands.ConvertJavaProjectToJpaCommandHandler">
+ <activeWhen>
+ <and>
+ <count value="1"/>
+ <iterate ifEmpty="false" operator="and">
+ <adapt type="org.eclipse.core.resources.IProject">
+ <and>
+ <test
+ property="org.eclipse.core.resources.projectNature"
+ value="org.eclipse.jdt.core.javanature"/>
+ <not>
+ <test
+ property="org.eclipse.core.resources.projectNature"
+ value="org.eclipse.wst.common.project.facet.core.nature"/>
+ </not>
+ </and>
+ </adapt>
+ </iterate>
+ </and>
+ </activeWhen>
+ </handler>
+
</extension>

Back to the top