Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2009-11-13 21:59:29 +0000
committerpfullbright2009-11-13 21:59:29 +0000
commit7b9fe736bf162f793230455ca147da014f08effe (patch)
treed008348447d60ecacbd7743409f0417546c2ab4c
parent1829329aac9dbbe513bc5c4ba212b2855ddab631 (diff)
downloadwebtools.dali-7b9fe736bf162f793230455ca147da014f08effe.tar.gz
webtools.dali-7b9fe736bf162f793230455ca147da014f08effe.tar.xz
webtools.dali-7b9fe736bf162f793230455ca147da014f08effe.zip
attempt to better address configurations for JPA project wizard
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/plugin.properties3
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/plugin.xml29
2 files changed, 27 insertions, 5 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/plugin.properties b/jpa/plugins/org.eclipse.jpt.core/plugin.properties
index 7c253de2f4..81c77dcbd2 100644
--- a/jpa/plugins/org.eclipse.jpt.core/plugin.properties
+++ b/jpa/plugins/org.eclipse.jpt.core/plugin.properties
@@ -41,6 +41,7 @@ NO_OP_LIBRARY_PROVIDER_MESSAGE = The JPA facet requires a JPA implementation lib
JPA_FACET_LABEL=Java Persistence
JPA_FACET_DESCRIPTION=Adds support for writing persistent meta-data using Java Persistence Architecture.
-JPA_PRESET_LABEL=Default JPA 2.0 Configuration
+JPA_1.0_PRESET_LABEL=Minimal JPA 1.0 Configuration
+JPA_2.0_PRESET_LABEL=Minimal JPA 2.0 Configuration
JPA_TEMPLATE_LABEL=JPA Project
JPA_VALIDATOR=JPA Validator
diff --git a/jpa/plugins/org.eclipse.jpt.core/plugin.xml b/jpa/plugins/org.eclipse.jpt.core/plugin.xml
index ca2dc41c5b..fc721369bc 100644
--- a/jpa/plugins/org.eclipse.jpt.core/plugin.xml
+++ b/jpa/plugins/org.eclipse.jpt.core/plugin.xml
@@ -337,7 +337,8 @@
<template id="jpt.jpa.template">
<label>%JPA_TEMPLATE_LABEL</label>
- <preset id="jpt.jpa.preset"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jpt.jpa"/>
</template>
<action facet="jpt.jpa" type="install" id="jpt.jpa.install">
@@ -363,14 +364,34 @@
</extension>
-
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.defaultFacets">
+
+ <default-facets>
+ <context>
+ <fixed-facet id="jpt.jpa"/>
+ </context>
+ <facet id="jst.utility" version="1.0"/>
+ </default-facets>
+
+ </extension>
+
+
<extension
point="org.eclipse.wst.common.project.facet.core.presets">
- <static-preset id="jpt.jpa.preset">
- <label>%JPA_PRESET_LABEL</label>
+ <static-preset id="jpt.jpa.1_0.preset">
+ <label>%JPA_1.0_PRESET_LABEL</label>
<facet id="jst.java" version="5.0"/>
<facet id="jst.utility" version="1.0"/>
+ <facet id="jpt.jpa" version="1.0"/>
+ </static-preset>
+
+ <static-preset id="jpt.jpa.2_0.preset">
+ <label>%JPA_2.0_PRESET_LABEL</label>
+ <facet id="jst.java" version="6.0"/>
+ <facet id="jst.utility" version="1.0"/>
<facet id="jpt.jpa" version="2.0"/>
</static-preset>

Back to the top