Author: snjeza
Date: 2010-01-25 17:35:19 -0500 (Mon, 25 Jan 2010)
New Revision: 19920
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-4889 JBoss Tools server runtime responds as
capable of providing libraries for portlet facets although it doesn't provide them
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF 2010-01-25
21:27:42 UTC (rev 19919)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF/MANIFEST.MF 2010-01-25
22:35:19 UTC (rev 19920)
@@ -13,6 +13,7 @@
org.eclipse.emf.ecore,
org.eclipse.jdt.core,
org.eclipse.wst.common.project.facet.core,
+ org.eclipse.jst.common.project.facet.core,
org.eclipse.jpt.core;bundle-version="[2.2.0,2.2.2)",
org.eclipse.jpt.utility,
org.eclipse.jpt.db
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml 2010-01-25
21:27:42 UTC (rev 19919)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml 2010-01-25
22:35:19 UTC (rev 19920)
@@ -18,4 +18,25 @@
</listener>
</extension>
+ <extension
+ point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+
+ <provider id="hibernate-user-library-provider"
extends="wtp-user-library-provider">
+ <param name="validator"
value="org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator"/>
+ <param name="validator.param.0"
value="javax.persistence.Entity"/>
+ <param name="validator.param.1"
value="org.hibernate.SessionFactory"/>
+ <enablement>
+ <and>
+ <with variable="requestingProjectFacet">
+ <test
property="org.eclipse.wst.common.project.facet.core.projectFacet"
value="jpt.jpa" forcePluginActivation="true"/>
+ </with>
+ <with variable="jpaPlatform">
+ <equals value="hibernate"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+
+ </extension>
+
</plugin>