Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/plugin.xml')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/plugin.xml187
1 files changed, 187 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/plugin.xml b/jpa/plugins/org.eclipse.jpt.core/plugin.xml
new file mode 100644
index 0000000000..31e7a5ebd3
--- /dev/null
+++ b/jpa/plugins/org.eclipse.jpt.core/plugin.xml
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+
+<plugin>
+ <extension-point
+ id="jpaPlatform" name="%JPA_PLATFORM" schema="schema/jpaPlatform.exsd"/>
+
+
+ <extension
+ point="org.eclipse.core.resources.markers"
+ id="jpaProblemMarker"
+ name="%JPA_PROBLEM_MARKER">
+ <persistent value="true"/>
+
+ <!-- Can't use text marker until we have specific models for each input type (XML, java)
+ <super type="org.eclipse.core.resources.textmarker"/>
+ -->
+
+ <super type="org.eclipse.wst.validation.problemmarker"/>
+ </extension>
+
+
+ <extension
+ point="org.eclipse.core.runtime.adapters">
+
+ <factory
+ class="org.eclipse.jpt.core.internal.JpaProjectAdapterFactory"
+ adaptableType="org.eclipse.core.resources.IProject">
+ <adapter type="org.eclipse.jpt.core.internal.IJpaProject"/>
+ </factory>
+
+ <factory
+ class="org.eclipse.jpt.core.internal.JpaProjectAdapterFactory"
+ adaptableType="org.eclipse.jdt.core.IJavaProject">
+ <adapter type="org.eclipse.jpt.core.internal.IJpaProject"/>
+ </factory>
+
+ </extension>
+
+
+ <extension
+ point="org.eclipse.core.runtime.contentTypes">
+
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+ file-names="orm.xml"
+ id="org.eclipse.jpt.core.content.orm"
+ name="ORM XML Content"
+ priority="normal">
+ Only allowing file names of orm.xml. Extenders will have to specify a different file name.
+ Limitation with WTP translators for registering files names instead of content types
+ </content-type>
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+ file-names="persistence.xml"
+ id="org.eclipse.jpt.core.content.persistence"
+ name="Persistence XML Content"
+ priority="normal">
+ Only allowing file names of persistence.xml.
+ </content-type>
+
+ </extension>
+
+
+ <extension
+ point="org.eclipse.core.runtime.preferences">
+
+ <initializer
+ class="org.eclipse.jpt.core.internal.prefs.JpaPreferenceInitializer"/>
+
+ </extension>
+
+
+ <extension
+ point="org.eclipse.jpt.core.jpaPlatform">
+
+ <jpaPlatform
+ id="generic"
+ label="%GENERIC_PLATFORM_LABEL"
+ class="org.eclipse.jpt.core.internal.platform.generic.GenericPlatform"/>
+
+ </extension>
+
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.facets">
+
+ <project-facet id="jpt.jpa">
+ <label>%JPA_FACET_LABEL</label>
+ <description>%JPA_FACET_DESCRIPTION</description>
+ </project-facet>
+
+ <project-facet-version facet="jpt.jpa" version="1.0">
+ <constraint>
+ <and>
+ <requires facet="jst.java" version="[5.0"/>
+ <or>
+ <requires facet="jst.utility" version="[1.0"/>
+ <requires facet="jst.appclient" version="[1.2"/>
+ <requires facet="jst.ejb" version="[1.1"/>
+ <requires facet="jst.connector" version="[1.0"/>
+ <requires facet="jst.web" version="[2.2"/>
+ </or>
+ </and>
+ </constraint>
+ </project-facet-version>
+
+ <preset id="jpt.jpa.preset">
+ <label>%JPA_PRESET_LABEL</label>
+ <facet id="jst.java" version="5.0"/>
+ <facet id="jst.utility" version="1.0"/>
+ <facet id="jpt.jpa" version="1.0"/>
+ </preset>
+
+ <template id="jpt.jpa.template">
+ <label>%JPA_TEMPLATE_LABEL</label>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.utility"/>
+ <fixed facet="jpt.jpa"/>
+ <preset id="jpt.jpa.preset"/>
+ </template>
+
+ <action facet="jpt.jpa" type="INSTALL" id="jpt.jpa.install">
+ <config-factory class="org.eclipse.jpt.core.internal.facet.JpaFacetDataModelProvider"/>
+ <delegate class="org.eclipse.jpt.core.internal.facet.JpaFacetInstallDelegate"/>
+ </action>
+
+ <action facet="jpt.jpa" type="UNINSTALL" id="jpt.jpa.uninstall">
+ <delegate class="org.eclipse.jpt.core.internal.facet.JpaFacetUninstallDelegate"/>
+ </action>
+
+ <event-handler facet="jpt.jpa" type="POST_INSTALL">
+ <delegate class="org.eclipse.jpt.core.internal.facet.JpaFacetPostInstallDelegate"/>
+ </event-handler>
+
+ </extension>
+
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.runtimes">
+
+ <supported>
+ <runtime-component any="true"/>
+ <facet id="jpt.jpa"/>
+ </supported>
+
+ </extension>
+
+
+ <extension
+ point="org.eclipse.wst.validation.validator"
+ id="jpaValidator"
+ name="%JPA_VALIDATOR">
+
+ <validator>
+ <enablement>
+ <and>
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa"/>
+ </and>
+ </enablement>
+
+ <filter
+ objectClass="org.eclipse.core.resources.IFile"
+ nameFilter="orm.xml"/>
+ <filter
+ objectClass="org.eclipse.core.resources.IFile"
+ nameFilter="persistence.xml"/>
+ <filter
+ objectClass="org.eclipse.core.resources.IFile"
+ nameFilter="*.java"/>
+
+ <run class="org.eclipse.jpt.core.internal.validation.JpaValidator"/>
+ <helper class="org.eclipse.jpt.core.internal.validation.JpaHelper"/>
+
+ <markerId markerIdValue="jpaProblemMarker"/>
+
+
+ <!-- don't know what this does
+ <dependentValidator depValValue="true"/>
+ -->
+
+ </validator>
+
+ </extension>
+
+
+</plugin>

Back to the top