JBoss Tools SVN: r17510 - in trunk/maven/plugins/org.jboss.tools.maven.core: poms and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-09-09 20:28:19 -0400 (Wed, 09 Sep 2009)
New Revision: 17510
Added:
trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml
trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template10.xml
trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template20.xml
trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alpha.xml
trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alphadep.xml
Removed:
trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml
Modified:
trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/libprov/MavenLibraryProviderInstallOperationConfig.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4690 Add Maven Portlet library provider
Deleted: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-09-10 00:27:18 UTC (rev 17509)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-09-10 00:28:19 UTC (rev 17510)
@@ -1,122 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
-
- <extension point="org.eclipse.wst.common.project.facet.core.facets">
-
- <project-facet id="jboss.m2">
- <label>JBoss Maven Integration</label>
- <description>
- Adds support for Maven.
- </description>
- <default-version version="1.0"/>
- </project-facet>
-
- <project-facet-version facet="jboss.m2" version="1.0">
- <constraint>
- <or>
- <requires facet="jst.ear" version="[5.0"/>
- <requires facet="jst.ejb" version="[3.0"/>
- <requires facet="jst.web" version="[2.5"/>
- <requires facet="jst.utility" version="[1.0"/>
- <requires facet="jst.appclient" version="[1.2"/>
- <requires facet="jst.connector" version="[1.0"/>
- </or>
- </constraint>
- </project-facet-version>
-
- <action id="jboss.m2.install" facet="jboss.m2" type="INSTALL" version="1.0">
- <delegate class="org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDelegate"/>
- <config-factory class="org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDataModelProvider"/>
- </action>
-
- </extension>
-
- <extension point="org.eclipse.wst.common.project.facet.core.runtimes">
- <supported>
- <runtime-component any="true"/>
- <facet id="jboss.m2" version="1.0"/>
- </supported>
- </extension>
-
- <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
- <provider id="maven-library-provider" abstract="true">
- <label>Maven library provider</label>
- <priority>500</priority>
- <action type="INSTALL">
- <config class="org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperationConfig"/>
- <operation class="org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperation"/>
- </action>
-
- <action type="UNINSTALL">
- <operation class="org.jboss.tools.maven.core.libprov.MavenLibraryProviderUninstallOperation"/>
- </action>
-
- </provider>
- </extension>
-
- <extension point="org.eclipse.core.expressions.propertyTesters">
- <propertyTester
- namespace="org.jboss.tools.maven.core"
- properties="projectFacets"
- type="java.util.Collection"
- class="org.jboss.tools.maven.core.ProjectFacetsFactoryTester"
- id="org.jboss.tools.maven.core.ProjectFacetsFactoryTester">
- </propertyTester>
- </extension>
-
- <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
- <provider id="jsf12-maven-library-provider" extends="maven-library-provider">
- <label>Maven JSF 1.2 Libraries</label>
- <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/jsf-template12.xml"/>
- <enablement>
- <and>
- <with variable="projectFacets">
- <test property="org.jboss.tools.maven.core.projectFacets" value="jst.jsf,jboss.m2" forcePluginActivation="true"/>
- </with>
- <with variable="requestingProjectFacet">
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.2" forcePluginActivation="true"/>
- </with>
- </and>
- </enablement>
- </provider>
- </extension>
-
- <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
- <provider id="jsf11-maven-library-provider" extends="maven-library-provider">
- <label>Maven JSF 1.1 Libraries</label>
- <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/jsf-template11.xml"/>
- <enablement>
- <and>
- <with variable="projectFacets">
- <test property="org.jboss.tools.maven.core.projectFacets" value="jst.jsf,jboss.m2" forcePluginActivation="true"/>
- </with>
- <with variable="requestingProjectFacet">
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.1" forcePluginActivation="true"/>
- </with>
- </and>
- </enablement>
- </provider>
- </extension>
-
- <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
- <provider id="hibernate332-maven-library-provider" extends="maven-library-provider">
- <label>Hibernate 3.3.2 Libraries</label>
- <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/hibernate332-template.xml"/>
- <enablement>
- <and>
- <with variable="projectFacets">
- <test property="org.jboss.tools.maven.core.projectFacets" value="jpt.jpa,jboss.m2" forcePluginActivation="true"/>
- </with>
- <with variable="requestingProjectFacet">
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa:1.0" forcePluginActivation="true"/>
- </with>
- <with variable="jpaPlatform">
- <equals value="hibernate"/>
- </with>
- </and>
- </enablement>
- </provider>
- </extension>
-
-</plugin>
Added: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml (rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-09-10 00:28:19 UTC (rev 17510)
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+ <extension point="org.eclipse.wst.common.project.facet.core.facets">
+
+ <project-facet id="jboss.m2">
+ <label>JBoss Maven Integration</label>
+ <description>
+ Adds support for Maven.
+ </description>
+ <default-version version="1.0"/>
+ </project-facet>
+
+ <project-facet-version facet="jboss.m2" version="1.0">
+ <constraint>
+ <or>
+ <requires facet="jst.ear" version="[5.0"/>
+ <requires facet="jst.ejb" version="[3.0"/>
+ <requires facet="jst.web" version="[2.5"/>
+ <requires facet="jst.utility" version="[1.0"/>
+ <requires facet="jst.appclient" version="[1.2"/>
+ <requires facet="jst.connector" version="[1.0"/>
+ </or>
+ </constraint>
+ </project-facet-version>
+
+ <action id="jboss.m2.install" facet="jboss.m2" type="INSTALL" version="1.0">
+ <delegate class="org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDelegate"/>
+ <config-factory class="org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDataModelProvider"/>
+ </action>
+
+ </extension>
+
+ <extension point="org.eclipse.wst.common.project.facet.core.runtimes">
+ <supported>
+ <runtime-component any="true"/>
+ <facet id="jboss.m2" version="1.0"/>
+ </supported>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="maven-library-provider" abstract="true">
+ <label>Maven library provider</label>
+ <priority>500</priority>
+ <action type="INSTALL">
+ <config class="org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperationConfig"/>
+ <operation class="org.jboss.tools.maven.core.libprov.MavenLibraryProviderInstallOperation"/>
+ </action>
+
+ <action type="UNINSTALL">
+ <operation class="org.jboss.tools.maven.core.libprov.MavenLibraryProviderUninstallOperation"/>
+ </action>
+
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester
+ namespace="org.jboss.tools.maven.core"
+ properties="projectFacets"
+ type="java.util.Collection"
+ class="org.jboss.tools.maven.core.ProjectFacetsFactoryTester"
+ id="org.jboss.tools.maven.core.ProjectFacetsFactoryTester">
+ </propertyTester>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsf12-maven-library-provider" extends="maven-library-provider">
+ <label>Maven JSF 1.2 Libraries</label>
+ <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/jsf-template12.xml"/>
+ <enablement>
+ <and>
+ <with variable="projectFacets">
+ <test property="org.jboss.tools.maven.core.projectFacets" value="jst.jsf,jboss.m2" forcePluginActivation="true"/>
+ </with>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.2" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsf11-maven-library-provider" extends="maven-library-provider">
+ <label>Maven JSF 1.1 Libraries</label>
+ <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/jsf-template11.xml"/>
+ <enablement>
+ <and>
+ <with variable="projectFacets">
+ <test property="org.jboss.tools.maven.core.projectFacets" value="jst.jsf,jboss.m2" forcePluginActivation="true"/>
+ </with>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.jsf:1.1" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="hibernate332-maven-library-provider" extends="maven-library-provider">
+ <label>Hibernate 3.3.2 Libraries</label>
+ <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/hibernate332-template.xml"/>
+ <enablement>
+ <and>
+ <with variable="projectFacets">
+ <test property="org.jboss.tools.maven.core.projectFacets" value="jpt.jpa,jboss.m2" forcePluginActivation="true"/>
+ </with>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa:1.0" forcePluginActivation="true"/>
+ </with>
+ <with variable="jpaPlatform">
+ <equals value="hibernate"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="portlet10-maven-library-provider" extends="maven-library-provider">
+ <label>Maven Portlet 1.0 Libraries</label>
+ <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/portlet-template10.xml"/>
+ <enablement>
+ <and>
+ <with variable="projectFacets">
+ <test property="org.jboss.tools.maven.core.projectFacets" value="jboss.portlet,jboss.m2" forcePluginActivation="true"/>
+ </with>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.portlet:1.0" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="portlet20-maven-library-provider" extends="maven-library-provider">
+ <label>Maven Portlet 2.0 Libraries</label>
+ <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/portlet-template20.xml"/>
+ <enablement>
+ <and>
+ <with variable="projectFacets">
+ <test property="org.jboss.tools.maven.core.projectFacets" value="jboss.portlet,jboss.m2" forcePluginActivation="true"/>
+ </with>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.portlet:2.0" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="portletbridge200alpha-maven-library-provider" extends="maven-library-provider">
+ <label>Maven Portletbridge 2.0.0 ALPHA Libraries</label>
+ <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/portletbridge-template200alpha.xml"/>
+ <enablement>
+ <and>
+ <with variable="projectFacets">
+ <test property="org.jboss.tools.maven.core.projectFacets" value="jboss.jsfportlet,jboss.m2" forcePluginActivation="true"/>
+ </with>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.jsfportlet:1.0" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="portletbridge200alphadep-maven-library-provider" extends="maven-library-provider">
+ <label>Maven Portletbridge 2.0.0 ALPHA Libraries with Dependencies</label>
+ <param name="template" value="platform:/plugin/org.jboss.tools.maven.core/poms/portletbridge-template200alphadep.xml"/>
+ <enablement>
+ <and>
+ <with variable="projectFacets">
+ <test property="org.jboss.tools.maven.core.projectFacets" value="jboss.jsfportlet,jboss.m2" forcePluginActivation="true"/>
+ </with>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.jsfportlet:1.0" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+</plugin>
Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template10.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template10.xml (rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template10.xml 2009-09-10 00:28:19 UTC (rev 17510)
@@ -0,0 +1,19 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>template</groupId>
+ <artifactId>template</artifactId>
+ <packaging>pom</packaging>
+ <version>0.0.1-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template20.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template20.xml (rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template20.xml 2009-09-10 00:28:19 UTC (rev 17510)
@@ -0,0 +1,19 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>template</groupId>
+ <artifactId>template</artifactId>
+ <packaging>pom</packaging>
+ <version>0.0.1-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alpha.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alpha.xml (rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alpha.xml 2009-09-10 00:28:19 UTC (rev 17510)
@@ -0,0 +1,52 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>template</groupId>
+ <artifactId>template</artifactId>
+ <packaging>pom</packaging>
+ <version>0.0.1-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.portletbridge</groupId>
+ <artifactId>portletbridge-api</artifactId>
+ <version>2.0.0.ALPHA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portletbridge</groupId>
+ <artifactId>portletbridge-impl</artifactId>
+ <version>2.0.0.ALPHA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ </exclusion>
+
+ <exclusion>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ </dependencies>
+</project>
\ No newline at end of file
Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alphadep.xml
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alphadep.xml (rev 0)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-template200alphadep.xml 2009-09-10 00:28:19 UTC (rev 17510)
@@ -0,0 +1,117 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>template</groupId>
+ <artifactId>template</artifactId>
+ <packaging>pom</packaging>
+ <version>0.0.1-SNAPSHOT</version>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.jboss.portletbridge</groupId>
+ <artifactId>portletbridge-api</artifactId>
+ <version>2.0.0.ALPHA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portletbridge</groupId>
+ <artifactId>portletbridge-impl</artifactId>
+ <version>2.0.0.ALPHA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ </exclusion>
+
+ <exclusion>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.3.1.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.3.1.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.3.1.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+
+ <exclusion>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.15.B1</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Modified: trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/libprov/MavenLibraryProviderInstallOperationConfig.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/libprov/MavenLibraryProviderInstallOperationConfig.java 2009-09-10 00:27:18 UTC (rev 17509)
+++ trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/libprov/MavenLibraryProviderInstallOperationConfig.java 2009-09-10 00:28:19 UTC (rev 17510)
@@ -1,9 +1,7 @@
package org.jboss.tools.maven.core.libprov;
-import org.eclipse.emf.ecore.resource.URIConverter.WriteableOutputStream;
import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderInstallOperationConfig;
import org.maven.ide.components.pom.Model;
-import org.maven.ide.components.pom.util.PomResourceImpl;
public class MavenLibraryProviderInstallOperationConfig extends
LibraryProviderInstallOperationConfig {
15 years
JBoss Tools SVN: r17509 - in trunk/portlet/plugins: org.jboss.tools.portlet.core/META-INF and 10 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-09-09 20:27:18 -0400 (Wed, 09 Sep 2009)
New Revision: 17509
Added:
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletLibraryValidator.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletLibraryValidator.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperationConfig.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOperation.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOperation.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperationConfig.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperation.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF
trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties
trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDataModelProvider.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties
trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF
trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-4689 Integrate Portlet facet with WTP 3.1 Library Framework
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF 2009-09-10 00:27:18 UTC (rev 17509)
@@ -7,7 +7,7 @@
Bundle-Vendor: %BundleVendor
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.wst.common.project.facet.core,
- org.eclipse.jst.common.project.facet.core,
+ org.eclipse.jst.common.project.facet.core;visibility:=reexport,
org.eclipse.core.resources,
org.eclipse.wst.common.frameworks,
org.eclipse.jst.j2ee,
@@ -24,10 +24,13 @@
org.eclipse.wst.server.core;visibility:=reexport,
org.eclipse.jem.util,
org.jboss.ide.eclipse.as.core;visibility:=reexport,
- org.eclipse.core.commands
+ org.eclipse.core.commands,
+ org.eclipse.core.expressions
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.portlet.core,
org.jboss.tools.portlet.core.internal,
- org.jboss.tools.portlet.core.internal.project.facet
+ org.jboss.tools.portlet.core.internal.project.facet,
+ org.jboss.tools.portlet.core.libprov,
+ org.jboss.tools.portlet.core.preferences
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties 2009-09-10 00:27:18 UTC (rev 17509)
@@ -1,3 +1,12 @@
#Properties file for org.jboss.tools.portlet.core
BundleVendor = JBoss by Red Hat
-BundleName = Portlet Core Plug-in
\ No newline at end of file
+BundleName = Portlet Core Plug-in
+
+noOpLibraryProviderWarning = Library configuration is disabled. Further classpath changes may be required later.
+noOpLibraryProviderMessage = This facet requires Portlet implementation library to be present on project classpath. By disabling library configuration, user takes on responsibility of configuring classpath appropriately via alternate means.
+portletLibraryProviderLabel=Portlet Target Runtime Provider
+
+noOpLibraryJSFPortletProviderWarning = Library configuration is disabled. Further classpath changes may be required later.
+noOpLibraryJSFPortletProviderMessage = This facet requires JSF Portlet implementation library to be present on project classpath. By disabling library configuration, user takes on responsibility of configuring classpath appropriately via alternate means.
+jsfportletLibraryProviderLabel=JSF Portlet Target Runtime Provider
+jsfportletbridgeLibraryProviderLabel=JSF Portletbridge Runtime Provider
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml 2009-09-10 00:27:18 UTC (rev 17509)
@@ -309,5 +309,133 @@
point="org.eclipse.core.runtime.preferences">
<initializer class="org.jboss.tools.portlet.core.preferences.JBossPortletPreferencesInitializer"/>
</extension>
-
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="portlet-user-library-provider" extends="wtp-user-library-provider">
+ <param name="validator" value="org.jboss.tools.portlet.core.internal.project.facet.PortletLibraryValidator"/>
+ <param name="validator.param.0" value="javax.portlet.GenericPortlet"/>
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.portlet" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="portlet-no-op-library-provider" extends="no-op-library-provider">
+ <param name="message" value="%noOpLibraryProviderMessage"/>
+ <param name="warning" value="%noOpLibraryProviderWarning"/>
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.portlet" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="portlet-library-provider">
+ <label>%portletLibraryProviderLabel</label>
+ <priority>500</priority>
+ <action type="INSTALL">
+ <config class="org.jboss.tools.portlet.core.libprov.PortletServerRuntimeLibraryProviderInstallOperationConfig"/>
+ <operation class="org.jboss.tools.portlet.core.libprov.PortletServerRuntimeLibraryProviderInstallOperation"/>
+ </action>
+
+ <action type="UNINSTALL">
+ <operation class="org.jboss.tools.portlet.core.libprov.PortletServerRuntimeLibraryProviderUninstallOperation"/>
+ </action>
+ <enablement>
+ <and>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.portlet" forcePluginActivation="true"/>
+ </with>
+ <with variable="context">
+ <test property="org.jboss.tools.portlet.core.libprov.isPortletRuntime" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester
+ id="org.jboss.tools.portlet.core.libprov.isPortletRuntime"
+ type="org.eclipse.jst.common.project.facet.core.libprov.EnablementExpressionContext"
+ namespace="org.jboss.tools.portlet.core.libprov"
+ properties="isPortletRuntime,isJSFPortletRuntime"
+ class="org.jboss.tools.portlet.core.libprov.RuntimeLibraryProviderPropertyTester">
+ </propertyTester>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsfportlet-no-op-library-provider" extends="no-op-library-provider">
+ <param name="message" value="%noOpLibraryJSFPortletProviderMessage"/>
+ <param name="warning" value="%noOpLibraryJSFPortletProviderWarning"/>
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.jsfportlet" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsfportlet-user-library-provider" extends="wtp-user-library-provider">
+ <param name="validator" value="org.jboss.tools.portlet.core.internal.project.facet.JSFPortletLibraryValidator"/>
+ <param name="validator.param.0" value="javax.portlet.faces.GenericFacesPortlet"/>
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.jsfportlet" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsfportlet-library-provider">
+ <label>%jsfportletLibraryProviderLabel</label>
+ <priority>500</priority>
+ <action type="INSTALL">
+ <config class="org.jboss.tools.portlet.core.libprov.JSFPortletServerRuntimeLibraryProviderInstallOperationConfig"/>
+ <operation class="org.jboss.tools.portlet.core.libprov.JSFPortletServerRuntimeLibraryProviderInstallOperation"/>
+ </action>
+
+ <action type="UNINSTALL">
+ <operation class="org.jboss.tools.portlet.core.libprov.JSFPortletServerRuntimeLibraryProviderUninstallOperation"/>
+ </action>
+ <enablement>
+ <and>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.jsfportlet" forcePluginActivation="true"/>
+ </with>
+ <with variable="context">
+ <test property="org.jboss.tools.portlet.core.libprov.isJSFPortletRuntime" forcePluginActivation="true"/>
+ </with>
+ </and>
+ </enablement>
+ </provider>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.core.libraryProviders">
+ <provider id="jsfportletbridge-library-provider">
+ <label>%jsfportletbridgeLibraryProviderLabel</label>
+ <priority>500</priority>
+ <action type="INSTALL">
+ <config class="org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig"/>
+ <operation class="org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibraryProviderInstallOperation"/>
+ </action>
+
+ <action type="UNINSTALL">
+ <operation class="org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibraryProviderUninstallOperation"/>
+ </action>
+ <enablement>
+ <with variable="requestingProjectFacet">
+ <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jboss.jsfportlet" forcePluginActivation="true"/>
+ </with>
+ </enablement>
+ </provider>
+ </extension>
+
</plugin>
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -96,4 +96,14 @@
static final String PORTLET_SAR_LIB = "deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib"; //$NON-NLS-1$
static final String PORTLET_SAR_HA_LIB = "deploy/jboss-portal-ha.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib"; //$NON-NLS-1$
+
+ static final String PORTLET_LIBRARY_PROVIDER_DELEGATE = "PORTLET_LIBRARY_PROVIDER_DELEGATE"; //$NON-NLS-1$
+
+ static final String JSFPORTLET_LIBRARY_PROVIDER_DELEGATE = "JSFPORTLET_LIBRARY_PROVIDER_DELEGATE"; //$NON-NLS-1$
+
+ static final String PORTLETBRIDGE_HOME = "portletbridgeHome"; //$NON-NLS-1$
+
+ static final String PREFS_PORTLETBRIDGE_HOME = "jsfportlet.library.provider/portletbridge_home"; //$NON-NLS-1$
+
+ static final String PORTLET_BRIDGE_HOME = "portletBridgeHome"; //$NON-NLS-1$
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -4,7 +4,10 @@
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.jboss.tools.portlet.core.messages"; //$NON-NLS-1$
+ public static String JSFPortletLibraryValidator_MISSING_JSFPORTLET_IMPLEMENTATION_CLASSES;
+ public static String PortletLibraryValidator_MISSING_PORTLET_IMPLEMENTATION_CLASSES;
public static String PortletPostInstallListener_Invalid_Richfaces_Runtime;
+ public static String PortletPostInstallListener_Cannot_find_Richfaces_ibraries;
public static String PortletPostInstallListener_Cannot_find_Richfaces_Runtime;
public static String Libraries_provided_by_richfaces;
public static String Libraries_provided_by_portletbridge ;
@@ -38,6 +41,8 @@
public static String SeamPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Seam_Portlet_Facet;
public static String SeamPortletFacetInstallDelegate_Missing_configuration;
public static String SeamPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable;
+ public static String JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required;
+ public static String JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/PortletRuntimeComponentProvider.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -23,6 +23,8 @@
public class PortletRuntimeComponentProvider extends
RuntimeFacetComponentProviderDelegate {
+ private static final String IS_PORTLET_RUNTIME = "isPortletRuntime"; //$NON-NLS-1$
+
private static final IRuntimeComponentType PORTAL_TYPE = RuntimeManager
.getRuntimeComponentType("org.jboss.tools.portlet.core.runtime.component"); //$NON-NLS-1$
@@ -34,7 +36,7 @@
if (runtime != null && runtime.getLocation() != null) {
File location = runtime.getLocation().toFile();
- if (isPortalPresent(location, runtime)) {
+ if (isPortalPresentInternal(location, runtime)) {
final IRuntimeComponent portalComponent = RuntimeManager
.createRuntimeComponent(PORTAL_VERSION_1, null);
components.add(portalComponent);
@@ -44,12 +46,18 @@
}
- private static boolean isPortalPresent(final File location, IRuntime runtime) {
+ private static boolean isPortalPresentInternal(final File location, IRuntime runtime) {
boolean check = PortletCoreActivator.getDefault().getPluginPreferences().getBoolean(PortletCoreActivator.CHECK_RUNTIMES);
if (!check) {
return true;
}
+ return isPortalPresent(location, runtime, IS_PORTLET_RUNTIME);
+ }
+
+
+ public static boolean isPortalPresent(final File location,
+ IRuntime runtime, String property) {
IJBossServerRuntime jbossRuntime = (IJBossServerRuntime)runtime.loadAdapter(IJBossServerRuntime.class, new NullProgressMonitor());
if (jbossRuntime != null) {
// JBoss Portal server
@@ -71,8 +79,12 @@
IPortletConstants.SERVER_DEFAULT_DEPLOY_SIMPLE_PORTAL)) {
return true;
}
+ return false;
}
// Tomcat portletcontainer
+ if (!IS_PORTLET_RUNTIME.equals(property)) {
+ return false;
+ }
File tomcatLib = new File(location,IPortletConstants.TOMCAT_LIB);
if (tomcatLib.exists() && tomcatLib.isDirectory()) {
String[] files = tomcatLib.list(new FilenameFilter() {
@@ -88,7 +100,7 @@
return files.length > 0;
}
- return false;
+ return false;
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -12,9 +12,14 @@
import java.util.Set;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.jst.common.project.facet.core.libprov.IPropertyChangeListener;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate;
import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCopy;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
import org.jboss.tools.portlet.core.IPortletConstants;
-import org.jboss.tools.portlet.core.Messages;
/**
* @author snjeza
@@ -23,6 +28,27 @@
public class JSFPortletFacetInstallDataModelProvider extends
FacetInstallDataModelProvider implements IPortletConstants {
+ private LibraryInstallDelegate libraryInstallDelegate = null;
+
+ private void initLibraryInstallDelegate() {
+ final IFacetedProjectWorkingCopy fpjwc = (IFacetedProjectWorkingCopy) getProperty(FACETED_PROJECT_WORKING_COPY);
+ final IProjectFacetVersion fv = (IProjectFacetVersion) getProperty(FACET_VERSION);
+ if (libraryInstallDelegate == null && fpjwc != null && fv != null) {
+ libraryInstallDelegate = new LibraryInstallDelegate(fpjwc, fv);
+ libraryInstallDelegate.addListener(new IPropertyChangeListener() {
+
+ public void propertyChanged(final String property,
+ final Object oldValue, final Object newValue) {
+ final IDataModel dm = getDataModel();
+ if (dm != null) {
+ dm.notifyPropertyChange(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE,IDataModel.VALUE_CHG);
+ }
+ }
+
+ });
+ }
+ }
+
@Override
public Object getDefaultProperty(String propertyName) {
if(propertyName.equals(FACET_ID)){
@@ -52,6 +78,9 @@
if (propertyName.equals(IPortletConstants.USER_LIBRARY_NAME)) {
return ""; //$NON-NLS-1$
}
+ if (propertyName.equals(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE)) {
+ return libraryInstallDelegate;
+ }
return super.getDefaultProperty(propertyName);
}
@@ -66,6 +95,30 @@
propertyNames.add(IPortletConstants.RICHFACES_LIBRARIES_SELECTED);
propertyNames.add(IPortletConstants.RICHFACES_LIBRARIES_TYPE);
propertyNames.add(IPortletConstants.RICHFACES_CAPABILITIES);
+ propertyNames.add(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE);
+
return propertyNames;
}
+
+ @Override
+ public boolean propertySet(final String propertyName,
+ final Object propertyValue) {
+ if (propertyName.equals(FACETED_PROJECT_WORKING_COPY)
+ || propertyName.equals(FACET_VERSION)) {
+ initLibraryInstallDelegate();
+ if (this.libraryInstallDelegate != null && propertyName.equals(FACET_VERSION)) {
+ final IProjectFacetVersion fv = (IProjectFacetVersion) getProperty(FACET_VERSION);
+ this.libraryInstallDelegate.setProjectFacetVersion(fv);
+ }
+ }
+
+ return super.propertySet(propertyName, propertyValue);
+ }
+
+ public IStatus validate(String name) {
+ if (name.equals(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE)) {
+ return ((LibraryInstallDelegate) getProperty(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE)).validate();
+ }
+ return super.validate(name);
+ }
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -30,6 +30,7 @@
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate;
import org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil;
import org.eclipse.jst.j2ee.classpathdep.IClasspathDependencyConstants;
import org.eclipse.jst.j2ee.model.IModelProvider;
@@ -113,7 +114,11 @@
configureFacesConfig(project, monitor, config);
- configureClassPath(project, monitor, config);
+ //configureClassPath(project, monitor, config);
+
+ //Configure libraries
+ ( (LibraryInstallDelegate) config.getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE ) ).execute( new NullProgressMonitor() );
+
configureWebApp(project, monitor, config);
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletLibraryValidator.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletLibraryValidator.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletLibraryValidator.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,23 @@
+package org.jboss.tools.portlet.core.internal.project.facet;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator;
+import org.eclipse.jst.common.project.facet.core.libprov.user.UserLibraryProviderInstallOperationConfig;
+import org.jboss.tools.portlet.core.Messages;
+import org.jboss.tools.portlet.core.PortletCoreActivator;
+
+public class JSFPortletLibraryValidator extends KeyClassesValidator {
+
+ @Override
+ public IStatus validate(UserLibraryProviderInstallOperationConfig config) {
+ IStatus status = super.validate(config);
+ if (status.getSeverity() == IStatus.OK)
+ return status;
+
+ String message = Messages.JSFPortletLibraryValidator_MISSING_JSFPORTLET_IMPLEMENTATION_CLASSES;
+ return new Status( IStatus.ERROR, PortletCoreActivator.PLUGIN_ID, message );
+
+ }
+
+}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDataModelProvider.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDataModelProvider.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDataModelProvider.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -12,9 +12,14 @@
import java.util.Set;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.jst.common.project.facet.core.libprov.IPropertyChangeListener;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate;
import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCopy;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
import org.jboss.tools.portlet.core.IPortletConstants;
-import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
/**
@@ -24,6 +29,27 @@
public class PortletFacetInstallDataModelProvider extends
FacetInstallDataModelProvider implements IPortletConstants {
+ private LibraryInstallDelegate libraryInstallDelegate = null;
+
+ private void initLibraryInstallDelegate() {
+ final IFacetedProjectWorkingCopy fpjwc = (IFacetedProjectWorkingCopy) getProperty(FACETED_PROJECT_WORKING_COPY);
+ final IProjectFacetVersion fv = (IProjectFacetVersion) getProperty(FACET_VERSION);
+ if (libraryInstallDelegate == null && fpjwc != null && fv != null) {
+ libraryInstallDelegate = new LibraryInstallDelegate(fpjwc, fv);
+ libraryInstallDelegate.addListener(new IPropertyChangeListener() {
+
+ public void propertyChanged(final String property,
+ final Object oldValue, final Object newValue) {
+ final IDataModel dm = getDataModel();
+ if (dm != null) {
+ dm.notifyPropertyChange(PORTLET_LIBRARY_PROVIDER_DELEGATE,IDataModel.VALUE_CHG);
+ }
+ }
+
+ });
+ }
+ }
+
@Override
public Object getDefaultProperty(String propertyName) {
if(propertyName.equals(FACET_ID)){
@@ -49,6 +75,9 @@
}
//return IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS;
}
+ if (propertyName.equals(PORTLET_LIBRARY_PROVIDER_DELEGATE)) {
+ return libraryInstallDelegate;
+ }
return super.getDefaultProperty(propertyName);
}
@@ -59,8 +88,30 @@
propertyNames.add(IPortletConstants.ENABLE_IMPLEMENTATION_LIBRARY);
propertyNames.add(IPortletConstants.USER_LIBRARY_NAME);
propertyNames.add(IPortletConstants.IMPLEMENTATION_LIBRARY);
+ propertyNames.add(PORTLET_LIBRARY_PROVIDER_DELEGATE);
return propertyNames;
}
+
+ @Override
+ public boolean propertySet(final String propertyName,
+ final Object propertyValue) {
+ if (propertyName.equals(FACETED_PROJECT_WORKING_COPY)
+ || propertyName.equals(FACET_VERSION)) {
+ initLibraryInstallDelegate();
+ if (this.libraryInstallDelegate != null && propertyName.equals(FACET_VERSION)) {
+ final IProjectFacetVersion fv = (IProjectFacetVersion) getProperty(FACET_VERSION);
+ this.libraryInstallDelegate.setProjectFacetVersion(fv);
+ }
+ }
+ return super.propertySet(propertyName, propertyValue);
+ }
+
+ public IStatus validate(String name) {
+ if (name.equals(PORTLET_LIBRARY_PROVIDER_DELEGATE)) {
+ return ((LibraryInstallDelegate) getProperty(PORTLET_LIBRARY_PROVIDER_DELEGATE)).validate();
+ }
+ return super.validate(name);
+ }
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -16,11 +16,12 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate;
import org.eclipse.jst.j2ee.model.IModelProvider;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IDelegate;
@@ -76,12 +77,15 @@
}
}
- IJavaProject javaProject = JavaCore.create(project);
+ /*IJavaProject javaProject = JavaCore.create(project);
boolean enableImplementationLibrary = config.getBooleanProperty(IPortletConstants.ENABLE_IMPLEMENTATION_LIBRARY);
if (enableImplementationLibrary) {
setClasspath(monitor, javaProject, config);
- }
+ }*/
+ //Configure libraries
+ ( (LibraryInstallDelegate) config.getProperty( IPortletConstants.PORTLET_LIBRARY_PROVIDER_DELEGATE ) ).execute( new NullProgressMonitor() );
+
createPortletXml(project, fv, config, monitor);
if (monitor != null) {
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletLibraryValidator.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletLibraryValidator.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletLibraryValidator.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,23 @@
+package org.jboss.tools.portlet.core.internal.project.facet;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator;
+import org.eclipse.jst.common.project.facet.core.libprov.user.UserLibraryProviderInstallOperationConfig;
+import org.jboss.tools.portlet.core.Messages;
+import org.jboss.tools.portlet.core.PortletCoreActivator;
+
+public class PortletLibraryValidator extends KeyClassesValidator {
+
+ @Override
+ public IStatus validate(UserLibraryProviderInstallOperationConfig config) {
+ IStatus status = super.validate(config);
+ if (status.getSeverity() == IStatus.OK)
+ return status;
+
+ String message = Messages.PortletLibraryValidator_MISSING_PORTLET_IMPLEMENTATION_CLASSES;
+ return new Status( IStatus.ERROR, PortletCoreActivator.PLUGIN_ID, message );
+
+ }
+
+}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -21,6 +21,8 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
+import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate;
import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest;
import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifestImpl;
import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil;
@@ -36,16 +38,22 @@
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectEvent;
import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectListener;
import org.eclipse.wst.common.project.facet.core.events.IProjectFacetActionEvent;
+import org.eclipse.wst.server.core.IRuntime;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.tools.portlet.core.IPortletConstants;
import org.jboss.tools.portlet.core.Messages;
import org.jboss.tools.portlet.core.PortletCoreActivator;
+import org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig;
public class PortletPostInstallListener implements IFacetedProjectListener {
- private static final String SEAM_FACET_ID = "jst.seam"; //$NON-NLS-1$
+ private static final String JSFPORTLETBRIDGE_LIBRARY_PROVIDER = "jsfportletbridge-library-provider"; //$NON-NLS-1$
+ private static final IProjectFacet seamFacet = ProjectFacetsManager.getProjectFacet("jst.seam"); //$NON-NLS-1$
private static final IOverwriteQuery OVERWRITE_NONE_QUERY = new IOverwriteQuery()
{
public String queryOverwrite(String pathString)
@@ -54,11 +62,12 @@
}
};
private String portletbridgeRuntime;
- private boolean richfacesCapabilities;
- private boolean richfacesSelected;
- private String richfacesType;
+ //private boolean richfacesCapabilities;
+ //private boolean richfacesSelected;
+ //private String richfacesType;
private String richfacesRuntime;
+
public void handleEvent(IFacetedProjectEvent event) {
if (event instanceof IProjectFacetActionEvent) {
IProjectFacetActionEvent actionEvent = (IProjectFacetActionEvent) event;
@@ -72,17 +81,14 @@
Set<IProjectFacetVersion> projectFacets = facetedProject
.getProjectFacets();
boolean isJSFPortlet = false;
- boolean isSeamProject = false;
+ boolean richfacesFromServerRuntime = false;
+
for (IProjectFacetVersion projectFacetVersion : projectFacets) {
IProjectFacet projectFacet = projectFacetVersion.getProjectFacet();
if (IPortletConstants.JSFPORTLET_FACET_ID.equals(projectFacet
.getId())) {
isJSFPortlet = true;
}
- if (SEAM_FACET_ID.equals(projectFacet.getId())) {
- isSeamProject = true;
- }
-
}
if (!isJSFPortlet)
return;
@@ -91,26 +97,151 @@
IProjectFacetActionEvent actionEvent = (IProjectFacetActionEvent) event;
IDataModel dataModel = (IDataModel) actionEvent.getActionConfig();
try {
- portletbridgeRuntime = dataModel
- .getStringProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME);
- richfacesCapabilities = dataModel.getBooleanProperty(IPortletConstants.RICHFACES_CAPABILITIES);
- richfacesSelected = dataModel.getBooleanProperty(IPortletConstants.RICHFACES_LIBRARIES_SELECTED);
- richfacesType = dataModel.getStringProperty(IPortletConstants.RICHFACES_LIBRARIES_TYPE);
- richfacesRuntime = dataModel.getStringProperty(IPortletConstants.RICHFACES_RUNTIME);
+ LibraryInstallDelegate libraryDelegate = ( (LibraryInstallDelegate) dataModel.getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE ) );
+ ILibraryProvider libraryProvider = libraryDelegate.getLibraryProvider();
+ String providerId = libraryProvider.getId();
+ if (JSFPORTLETBRIDGE_LIBRARY_PROVIDER.equals(providerId)) {
+ JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig libraryConfig = (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig) libraryDelegate.getLibraryProviderOperationConfig(libraryProvider);
+ portletbridgeRuntime = libraryConfig.getPortletbridgeHome();
+ } else {
+ portletbridgeRuntime = null;
+ }
+ richfacesFromServerRuntime = "jsfportlet-library-provider".equals(providerId); //$NON-NLS-1$
+
+ //richfacesCapabilities = dataModel.getBooleanProperty(IPortletConstants.RICHFACES_CAPABILITIES);
+ //richfacesSelected = dataModel.getBooleanProperty(IPortletConstants.RICHFACES_LIBRARIES_SELECTED);
+ //richfacesType = dataModel.getStringProperty(IPortletConstants.RICHFACES_LIBRARIES_TYPE);
+ //richfacesRuntime = dataModel.getStringProperty(IPortletConstants.RICHFACES_RUNTIME);
} catch (Exception e) {
//PortletCoreActivator.log(e);
}
}
- if (!richfacesCapabilities || !richfacesSelected) {
+ //if (!richfacesCapabilities || !richfacesSelected) {
+ // return;
+ //}
+ if (isJSFPortlet) {
+ if (portletbridgeRuntime != null) {
+ addRichfacesFromPortletBridgeRuntime(facetedProject,portletbridgeRuntime);
+ }
+ else if (richfacesFromServerRuntime) {
+ addRichFacesFromServerRuntime(facetedProject);
+ }
+ //else {
+ // addRichfacesFromRichfacesRuntime(facetedProject,isSeamProject);
+ //}
+ }
+ }
+
+ private void addRichFacesFromServerRuntime(IFacetedProject facetedProject) {
+ final boolean isSeamProject = facetedProject.hasProjectFacet(seamFacet);
+ if (isSeamProject) {
return;
}
- if (isJSFPortlet) {
- if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(richfacesType)) {
- addRichfacesFromPortletBridgeRuntime(facetedProject,isSeamProject);
- } else {
- addRichfacesFromRichfacesRuntime(facetedProject,isSeamProject);
+ org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = facetedProject.getPrimaryRuntime();
+ if (facetRuntime == null) {
+ return;
+ }
+ IRuntime runtime = PortletCoreActivator.getRuntime(facetRuntime);
+ if (runtime == null) {
+ return;
+ }
+ IJBossServerRuntime jbossRuntime = (IJBossServerRuntime)runtime.loadAdapter(IJBossServerRuntime.class, new NullProgressMonitor());
+ if (jbossRuntime != null) {
+ IPath jbossLocation = runtime.getLocation();
+ IPath configPath = jbossLocation.append(IJBossServerConstants.SERVER).append(jbossRuntime.getJBossConfiguration());
+ IPath portletLib = configPath.append(IPortletConstants.PORTLET_SAR_LIB);
+ File libFile = portletLib.toFile();
+ if (!libFile.exists()) {
+ portletLib = configPath.append(IPortletConstants.PORTLET_SAR_HA_LIB);
+ libFile = portletLib.toFile();
}
+ File richfacesLib = libFile;
+ if (!richfacesLib.exists()) {
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_Richfaces_ibraries);
+ return;
+ }
+ if (!richfacesLib.isDirectory()) {
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_Richfaces_ibraries);
+ return;
+ }
+ try {
+ IProject project = facetedProject.getProject();
+ final IProject earProject = getEarProject(project, isSeamProject);
+ String[] fileList = richfacesLib.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("richfaces-ui") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ if (name.startsWith("richfaces-impl") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ if (earProject == null) {
+ if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ }
+ if (!isSeamProject) {
+ if (name.startsWith("portal")) { //$NON-NLS-1$
+ return false;
+ }
+ if (name.startsWith("portletbridge")) { //$NON-NLS-1$
+ return false;
+ }
+ return true;
+ }
+ return false;
+ }
+
+ });
+ List<File> filesToImport = new ArrayList<File>();
+ for (int i = 0; i < fileList.length; i++) {
+ filesToImport.add(new File(richfacesLib, fileList[i]));
+ }
+ IVirtualComponent component = ComponentCore.createComponent(project);
+ IVirtualFolder rootFolder = component.getRootFolder();
+ IContainer folder = rootFolder.getUnderlyingFolder();
+ IContainer webinf = folder.getFolder(new Path(IPortletConstants.WEB_INF_LIB));
+
+ deleteOldRichfacesLibs(earProject, webinf);
+
+ ImportOperation importOperation = new ImportOperation(webinf.getFullPath(), richfacesLib,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY, filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ importOperation.run(new NullProgressMonitor());
+ if (earProject != null) {
+ fileList = richfacesLib.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ return false;
+ }
+
+ });
+ filesToImport = new ArrayList<File>();
+ for (int i = 0; i < fileList.length; i++) {
+ filesToImport.add(new File(richfacesLib, fileList[i]));
+ }
+ component = ComponentCore.createComponent(earProject);
+ rootFolder = component.getRootFolder();
+ folder = rootFolder.getUnderlyingFolder();
+
+ deleteOldRichFacesApi(folder);
+
+ importOperation = new ImportOperation(folder.getFullPath(), richfacesLib,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY, filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ importOperation.run(new NullProgressMonitor());
+ updateEARLibraries(project,isSeamProject);
+ }
+ } catch (Exception e) {
+ PortletCoreActivator.log(e,Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
+ }
}
}
@@ -229,7 +360,7 @@
}
}
- private void addRichfacesFromPortletBridgeRuntime(IFacetedProject facetedProject, boolean isSeamProject) {
+ private void addRichfacesFromPortletBridgeRuntime(IFacetedProject facetedProject, String portletbridgeRuntime) {
File portletbridgeHome = new File(portletbridgeRuntime);
if (!portletbridgeHome.exists()) {
PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_Portletbridge_Runtime);
@@ -253,6 +384,7 @@
ZipFile zipFile = new ZipFile(richFacesPortletZip);
ZipFileStructureProvider structureProvider = new ZipFileStructureProvider(
zipFile );
+ boolean isSeamProject = facetedProject.hasProjectFacet(seamFacet);
List<ZipEntry> list = prepareList(zipFile, facetedProject, isSeamProject);
IProject project = facetedProject.getProject();
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,112 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import java.io.File;
+import java.io.FilenameFilter;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperation;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperationConfig;
+import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
+import org.eclipse.ui.wizards.datatransfer.ImportOperation;
+import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
+import org.eclipse.wst.server.core.IRuntime;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
+import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
+import org.jboss.tools.portlet.core.PortletCoreActivator;
+
+public class JSFPortletServerRuntimeLibraryProviderInstallOperation extends
+ LibraryProviderOperation {
+
+ @Override
+ public void execute(LibraryProviderOperationConfig config,
+ IProgressMonitor monitor) throws CoreException {
+ IFacetedProjectBase facetedProject = config.getFacetedProject();
+ IProjectFacet seamFacet = ProjectFacetsManager.getProjectFacet("jst.seam"); //$NON-NLS-1$
+ boolean hasSeamFacet = facetedProject.hasProjectFacet(seamFacet);
+ org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = facetedProject.getPrimaryRuntime();
+ IProject project = facetedProject.getProject();
+ IRuntime runtime = PortletCoreActivator.getRuntime(facetRuntime);
+ IJBossServerRuntime jbossRuntime = (IJBossServerRuntime)runtime.loadAdapter(IJBossServerRuntime.class, new NullProgressMonitor());
+ if (jbossRuntime != null) {
+ // JBoss Portal server
+ IPath jbossLocation = runtime.getLocation();
+ IPath configPath = jbossLocation.append(IJBossServerConstants.SERVER).append(jbossRuntime.getJBossConfiguration());
+ IPath portletLib = configPath.append(IPortletConstants.PORTLET_SAR_LIB);
+ File portletLibFile = portletLib.toFile();
+ String[] files = getPortletbridgeLibraries(portletLibFile, hasSeamFacet);
+ if (files == null) {
+ portletLib = configPath.append(IPortletConstants.PORTLET_SAR_HA_LIB);
+ portletLibFile = portletLib.toFile();
+ files = getPortletbridgeLibraries(portletLibFile, hasSeamFacet);
+
+ }
+ if (files != null) {
+ try {
+ List<File> filesToImport = new ArrayList<File>();
+
+ for (int i = 0; i < files.length; i++) {
+ filesToImport.add(new File(portletLibFile, files[i]));
+ }
+ IVirtualComponent component = ComponentCore
+ .createComponent(project);
+ IVirtualFile libVirtualFile = component.getRootFolder()
+ .getFile(IPortletConstants.WEB_INF_LIB);
+
+ IFile folder = libVirtualFile.getUnderlyingFile();
+
+ File sourceFolder = new File(portletLib.toOSString());
+ ImportOperation importOperation = new ImportOperation(
+ folder.getFullPath(), sourceFolder,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY,
+ filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ importOperation.run(monitor);
+ } catch (Exception e) {
+ PortletCoreActivator
+ .log(e, Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
+ }
+ }
+ }
+ }
+
+ private String[] getPortletbridgeLibraries(File file, final boolean hasSeamFacet) {
+ if (file != null && file.isDirectory()) {
+ String[] list = file.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if ("portletbridge-api.jar".equals(name) || //$NON-NLS-1$
+ "portletbridge-impl.jar".equals(name)) { //$NON-NLS-1$
+ return true;
+ }
+ if (!hasSeamFacet) {
+ if (name.startsWith("portal")) { //$NON-NLS-1$
+ return false;
+ } else {
+ return true;
+ }
+
+ }
+ return false;
+ }
+
+ });
+ return list;
+ }
+ return null;
+ }
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperationConfig.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperationConfig.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperationConfig.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,8 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderInstallOperationConfig;
+
+public class JSFPortletServerRuntimeLibraryProviderInstallOperationConfig extends
+ LibraryProviderInstallOperationConfig {
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOperation.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOperation.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOperation.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,16 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperation;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperationConfig;
+
+public class JSFPortletServerRuntimeLibraryProviderUninstallOperation extends LibraryProviderOperation {
+
+ @Override
+ public void execute(LibraryProviderOperationConfig config,
+ IProgressMonitor monitor) throws CoreException {
+
+ }
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,95 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import java.io.File;
+import java.io.FilenameFilter;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperation;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperationConfig;
+import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
+import org.eclipse.ui.wizards.datatransfer.ImportOperation;
+import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
+import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase;
+import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
+import org.jboss.tools.portlet.core.PortletCoreActivator;
+import org.osgi.service.prefs.BackingStoreException;
+import org.osgi.service.prefs.Preferences;
+
+public class JSFPortletbridgeRuntimeLibraryProviderInstallOperation extends
+ LibraryProviderOperation {
+
+ @Override
+ public void execute(LibraryProviderOperationConfig config,
+ IProgressMonitor monitor) throws CoreException {
+ IFacetedProjectBase facetedProject = config.getFacetedProject();
+ IProject project = facetedProject.getProject();
+ JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig portletbridgeConfig = (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig) config;
+ String pbRuntime = portletbridgeConfig.getPortletbridgeHome();
+ getPortletbridgeLibraries(monitor, project, pbRuntime);
+
+ try {
+ Preferences prefs = FacetedProjectFramework.getPreferences( config.getProjectFacet() );
+ prefs = prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME);
+ prefs.put(IPortletConstants.PREFS_PORTLETBRIDGE_HOME, pbRuntime);
+ prefs.flush();
+ } catch (BackingStoreException e) {
+ PortletCoreActivator.log(e);
+ }
+ }
+
+ private void getPortletbridgeLibraries(IProgressMonitor monitor,
+ IProject project, String pbRuntime) {
+ if (pbRuntime != null && pbRuntime.trim().length() > 0) {
+ pbRuntime = pbRuntime.trim();
+ File pbFolder = new File(pbRuntime);
+ if (pbFolder.exists() && pbFolder.isDirectory()) {
+ String[] fileList = pbFolder.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+
+ return false;
+ }
+
+ });
+
+ List<File> filesToImport = new ArrayList<File>();
+
+ for (int i = 0; i < fileList.length; i++) {
+ filesToImport.add(new File(pbRuntime, fileList[i]));
+ }
+ IVirtualComponent component = ComponentCore
+ .createComponent(project);
+ IVirtualFile libVirtualFile = component.getRootFolder()
+ .getFile(IPortletConstants.WEB_INF_LIB);
+
+ IFile folder = libVirtualFile.getUnderlyingFile();
+
+ ImportOperation importOperation = new ImportOperation(
+ folder.getFullPath(), pbFolder,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY,
+ filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ try {
+ importOperation.run(monitor);
+ } catch (Exception e) {
+ PortletCoreActivator.log(e, Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
+ }
+ }
+ }
+ }
+
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,108 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import java.io.File;
+import java.io.FilenameFilter;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderInstallOperationConfig;
+import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.Messages;
+import org.jboss.tools.portlet.core.PortletCoreActivator;
+import org.osgi.service.prefs.BackingStoreException;
+import org.osgi.service.prefs.Preferences;
+
+public class JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig extends
+ LibraryProviderInstallOperationConfig {
+
+ private String portletbridgeHome;
+
+ @Override
+ public synchronized IStatus validate() {
+ IStatus status = super.validate();
+ if (!status.isOK()) {
+ return status;
+ }
+ if (portletbridgeHome == null) {
+ return getInvalidPortletbridgeRuntime();
+ }
+ portletbridgeHome = portletbridgeHome.trim();
+ if (portletbridgeHome.length() <= 0) {
+ status = new Status( IStatus.ERROR, PortletCoreActivator.PLUGIN_ID, Messages.JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required );
+ return status;
+ }
+ File folder = new File(portletbridgeHome);
+ if (!folder.exists() || !folder.isDirectory()) {
+ return getInvalidPortletbridgeRuntime();
+ }
+ String[] fileList = folder.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ return false;
+ }
+
+ });
+ if (fileList.length < 2) {
+ return getInvalidPortletbridgeRuntime();
+ }
+ return Status.OK_STATUS;
+ }
+
+ private IStatus getInvalidPortletbridgeRuntime() {
+ IStatus status = new Status( IStatus.ERROR, PortletCoreActivator.PLUGIN_ID, Messages.JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory );
+ return status;
+ }
+
+ public String getPortletbridgeHome() {
+ return portletbridgeHome;
+ }
+
+ public void setPortletbridgeHome(String portletbridgeHome) {
+ String oldValue = this.portletbridgeHome;
+ this.portletbridgeHome = portletbridgeHome;
+ notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, portletbridgeHome);
+ updatePreferences();
+ }
+
+ @Override
+ public void init(IFacetedProjectBase fpj, IProjectFacetVersion fv,
+ ILibraryProvider provider) {
+ super.init(fpj, fv, provider);
+ reset();
+ }
+
+ @Override
+ public void reset() {
+ IProjectFacet f = getProjectFacet();
+ try {
+ Preferences prefs = FacetedProjectFramework.getPreferences( f );
+ prefs = prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME);
+ if( prefs.nodeExists( IPortletConstants.PREFS_PORTLETBRIDGE_HOME ) ) {
+ portletbridgeHome = prefs.get(IPortletConstants.PREFS_PORTLETBRIDGE_HOME, null);
+ }
+ } catch (BackingStoreException e) {
+ PortletCoreActivator.log(e);
+ }
+ }
+
+ private void updatePreferences() {
+ IProjectFacet f = getProjectFacet();
+ try {
+ Preferences prefs = FacetedProjectFramework.getPreferences( f );
+ prefs = prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME);
+ prefs.put(IPortletConstants.PREFS_PORTLETBRIDGE_HOME, portletbridgeHome);
+ } catch (BackingStoreException e) {
+ PortletCoreActivator.log(e);
+ }
+ }
+
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOperation.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOperation.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOperation.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,16 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperation;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperationConfig;
+
+public class JSFPortletbridgeRuntimeLibraryProviderUninstallOperation extends LibraryProviderOperation {
+
+ @Override
+ public void execute(LibraryProviderOperationConfig config,
+ IProgressMonitor monitor) throws CoreException {
+
+ }
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,41 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperation;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperationConfig;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase;
+import org.jboss.tools.portlet.core.IPortletConstants;
+
+public class PortletServerRuntimeLibraryProviderInstallOperation extends
+ LibraryProviderOperation {
+
+ @Override
+ public void execute(LibraryProviderOperationConfig config,
+ IProgressMonitor monitor) throws CoreException {
+ IFacetedProjectBase facetedProject = config.getFacetedProject();
+ IProject project = facetedProject.getProject();
+
+ IJavaProject javaProject = JavaCore.create(project);
+ IPath containerPath = new Path(IPortletConstants.PORTLET_RUNTIME_CONTAINER_ID);
+ setContainerPath(monitor, javaProject, containerPath);
+
+ }
+
+ private void setContainerPath(IProgressMonitor monitor, IJavaProject javaProject,IPath containerPath) throws CoreException {
+ IClasspathEntry entry = JavaCore.newContainerEntry(containerPath, true);
+ IClasspathEntry[] entries = javaProject.getRawClasspath();
+ IClasspathEntry[] newEntries = new IClasspathEntry[entries.length + 1];
+ System.arraycopy( entries, 0, newEntries, 0, entries.length );
+ newEntries[entries.length] = entry;
+ javaProject.setRawClasspath(newEntries, monitor);
+ }
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperationConfig.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperationConfig.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperationConfig.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,8 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderInstallOperationConfig;
+
+public class PortletServerRuntimeLibraryProviderInstallOperationConfig extends
+ LibraryProviderInstallOperationConfig {
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperation.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperation.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperation.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,46 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperation;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOperationConfig;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase;
+import org.jboss.tools.portlet.core.IPortletConstants;
+
+public class PortletServerRuntimeLibraryProviderUninstallOperation extends LibraryProviderOperation {
+
+ @Override
+ public void execute(LibraryProviderOperationConfig config,
+ IProgressMonitor monitor) throws CoreException {
+ IFacetedProjectBase facetedProject = config.getFacetedProject();
+ IProject project = facetedProject.getProject();
+
+ IJavaProject javaProject = JavaCore.create(project);
+ IPath containerPath = new Path(IPortletConstants.PORTLET_RUNTIME_CONTAINER_ID);
+ List<IClasspathEntry> list = new ArrayList<IClasspathEntry>();
+ IClasspathEntry[] entries = javaProject.getRawClasspath();
+ boolean changed = false;
+ for (int i = 0; i < entries.length; i++) {
+ IClasspathEntry entry = entries[i];
+ if (!entry.getPath().equals(containerPath)) {
+ list.add(entry);
+ } else {
+ changed = true;
+ }
+ }
+ if (changed) {
+ IClasspathEntry[] newEntries = list.toArray(new IClasspathEntry[0]);
+ javaProject.setRawClasspath(newEntries, monitor);
+ }
+ }
+
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,36 @@
+package org.jboss.tools.portlet.core.libprov;
+
+import java.io.File;
+
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jst.common.project.facet.core.libprov.EnablementExpressionContext;
+import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase;
+import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.internal.facets.FacetUtil;
+import org.jboss.tools.portlet.core.internal.PortletRuntimeComponentProvider;
+
+
+public final class RuntimeLibraryProviderPropertyTester extends PropertyTester {
+
+ public boolean test(final Object receiver, final String property,
+ final Object[] args, final Object value) {
+ if (receiver instanceof EnablementExpressionContext) {
+ EnablementExpressionContext context = (EnablementExpressionContext) receiver;
+ IFacetedProjectBase facetedProject = context.getFacetedProject();
+ org.eclipse.wst.common.project.facet.core.runtime.IRuntime primaryRuntime = facetedProject.getPrimaryRuntime();
+ if (primaryRuntime == null) {
+ return false;
+ }
+ IRuntime runtime = FacetUtil.getRuntime(primaryRuntime);
+ if (runtime != null) {
+ File location = runtime.getLocation().toFile();
+ return PortletRuntimeComponentProvider.isPortalPresent(location, runtime, property);
+ }
+ }
+ return false;
+ }
+
+}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties 2009-09-10 00:27:18 UTC (rev 17509)
@@ -21,6 +21,7 @@
PortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=The web.xml file is not updateable
PortletFacetInstallDelegate_User_library_name_is_invalid=User library name is invalid.
PortletPostInstallListener_Cannot_find_Portletbridge_Runtime=Cannot find Portletbridge Runtime.
+PortletPostInstallListener_Cannot_find_Richfaces_ibraries=Cannot find Richfaces libraries.
PortletPostInstallListener_Cannot_find_Richfaces_Runtime=Cannot find Richfaces Runtime.
PortletPostInstallListener_Cannot_find_the_examples_directory=Cannot find the examples directory.
PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file=Cannot find the RichFacesPortlet.war file.
@@ -31,4 +32,8 @@
SeamPortletFacetInstallDelegate_Missing_configuration=Internal Error creating JBoss Seam Portlet Facet. Missing configuration.
SeamPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=The web.xml file is not updateable
Libraries_provided_by_portletbridge=Libraries provided by portletbridge distribution
-Libraries_provided_by_richfaces=Libraries provided by richfaces distribution
\ No newline at end of file
+Libraries_provided_by_richfaces=Libraries provided by richfaces distribution
+PortletLibraryValidator_MISSING_PORTLET_IMPLEMENTATION_CLASSES=Selected libraries are missing key Portlet implementation classes (javax.portlet.faces.GenericFacesPortlet)
+JSFPortletLibraryValidator_MISSING_JSFPORTLET_IMPLEMENTATION_CLASSES=Selected libraries are missing key JSF Portlet implementation classes (javax.portlet.GenericPortlet)
+JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required=Portletbridge Runtime directory is required.
+JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory=Invalid Portletbridge Runtime directory.
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF 2009-09-10 00:27:18 UTC (rev 17509)
@@ -8,6 +8,7 @@
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.wst.common.project.facet.ui,
+ org.eclipse.jst.common.project.facet.ui,
org.eclipse.wst.common.frameworks.ui,
org.eclipse.core.resources,
org.eclipse.jst.servlet.ui,
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml 2009-09-10 00:27:18 UTC (rev 17509)
@@ -61,6 +61,24 @@
class="org.jboss.tools.portlet.ui.internal.preferences.JBossPortletPreferencePage"
id="org.jboss.tools.portlet.core.ui.JBossPortletPreferencePage"
name="%JBoss_Portlet"/>
- </extension>
-
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.ui.libraryProviderActionPanels">
+ <panel
+ provider="portlet-library-provider"
+ class="org.jboss.tools.portlet.ui.internal.libprov.PortletServerRuntimeProviderInstallPanel"/>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.ui.libraryProviderActionPanels">
+ <panel
+ provider="jsfportlet-library-provider"
+ class="org.jboss.tools.portlet.ui.internal.libprov.JSFPortletServerRuntimeProviderInstallPanel"/>
+ </extension>
+
+ <extension point="org.eclipse.jst.common.project.facet.ui.libraryProviderActionPanels">
+ <panel
+ provider="jsfportletbridge-library-provider"
+ class="org.jboss.tools.portlet.ui.internal.libprov.JSFPortletbridgeRuntimeProviderInstallPanel"/>
+ </extension>
+
</plugin>
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -4,6 +4,9 @@
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.jboss.tools.portlet.ui.messages"; //$NON-NLS-1$
+ public static String JSFPortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_portlet_library;
+ public static String JSFPortletFacetInstallPage_JSFPortletImplementationLibrariesFrame;
+ public static String PortletFacetInstallPage_PortletImplementationLibrariesFrame;
public static String JBossPortletPreferencePage_Check_Runtimes_for_Portlet_Components;
public static String AddPortletWizardPage_Edit;
public static String AddPortletWizardPage_Help;
@@ -55,10 +58,11 @@
public static String JSFPortletFacetInstallPage_Select_RichFaces_Runtime;
public static String PortletFacetInstallPage_Add;
public static String PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project;
- public static String PortletFacetInstallPage_Enable_implementation_library;
+ //public static String PortletFacetInstallPage_Enable_implementation_library;
public static String PortletFacetInstallPage_JBoss_Portlet_Capabilities;
public static String PortletFacetInstallPage_User_Library;
- public static String PortletFacetInstallPage_You_have_to_choose_an_user_library;
+ //public static String PortletFacetInstallPage_You_have_to_choose_an_user_library;
+ public static String PortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_portlet_library;
public static String PortletUIActivator_The_portlet_xml_file_doesnt_exist;
static {
// initialize resource bundle
Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,29 @@
+package org.jboss.tools.portlet.ui.internal.libprov;
+
+import static org.eclipse.wst.common.project.facet.ui.internal.util.GridLayoutUtil.gl;
+
+import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOperationPanel;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Link;
+import org.jboss.tools.portlet.ui.Messages;
+
+public class JSFPortletServerRuntimeProviderInstallPanel extends LibraryProviderOperationPanel {
+
+ @Override
+ public Control createControl( final Composite parent )
+ {
+ final Composite composite = new Composite( parent, SWT.NONE );
+ composite.setLayout( gl( 1, 0, 0 ) );
+
+ final Link link = new Link( composite, SWT.WRAP );
+ final GridData data = new GridData( SWT.FILL, SWT.BEGINNING, true, false );
+ data.widthHint = 300;
+ link.setLayoutData( data );
+ link.setText( Messages.JSFPortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_portlet_library );
+
+ return composite;
+ }
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,118 @@
+package org.jboss.tools.portlet.ui.internal.libprov;
+
+import java.io.File;
+import java.io.FilenameFilter;
+
+import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOperationPanel;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.DirectoryDialog;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Link;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
+import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig;
+import org.jboss.tools.portlet.ui.Messages;
+import org.jboss.tools.portlet.ui.PortletUIActivator;
+
+public class JSFPortletbridgeRuntimeProviderInstallPanel extends LibraryProviderOperationPanel {
+
+ @Override
+ public Control createControl( final Composite parent )
+ {
+ final Composite composite = new Composite( parent, SWT.NONE );
+ final GridLayout layout = new GridLayout( 1, false );
+
+ layout.marginWidth = 0;
+ layout.marginHeight = 0;
+ composite.setLayout( layout );
+ addPortletBridgeGroup(composite);
+// final Link link = new Link( composite, SWT.WRAP );
+// final GridData data = new GridData( SWT.FILL, SWT.BEGINNING, true, false );
+// data.widthHint = 300;
+// link.setLayoutData( data );
+// link.setText( Messages.JSFPortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_portlet_library );
+//
+ return composite;
+ }
+
+ private void addPortletBridgeGroup(Composite composite) {
+ GridData gd;
+ Group portletBridgeGroup = new Group(composite, SWT.NONE);
+ portletBridgeGroup.setText(Messages.JSFPortletFacetInstallPage_Portletbridge_Runtime);
+ portletBridgeGroup.setLayout(new GridLayout(2, false));
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ portletBridgeGroup.setLayoutData(gd);
+
+ final Text folderText = new Text(portletBridgeGroup, SWT.SINGLE | SWT.BORDER);
+ folderText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
+ final JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig config = (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig) getOperationConfig();
+
+ folderText.addModifyListener(new ModifyListener() {
+
+ public void modifyText(ModifyEvent e) {
+ config.setPortletbridgeHome(folderText.getText());
+ IDialogSettings section = getPortletBridgeSection();
+ section.put(IPortletConstants.PORTLET_BRIDGE_HOME, folderText.getText());
+ }
+ });
+ String portletbridgeRuntime = config.getPortletbridgeHome();
+ if (portletbridgeRuntime == null) {
+ IDialogSettings section = getPortletBridgeSection();
+ portletbridgeRuntime = section.get(IPortletConstants.PORTLET_BRIDGE_HOME);
+ if (portletbridgeRuntime == null){
+ portletbridgeRuntime = ""; //$NON-NLS-1$
+ }
+ config.setPortletbridgeHome(portletbridgeRuntime);
+ }
+ folderText.setText(portletbridgeRuntime);
+
+ Button folderButton = new Button(portletBridgeGroup, SWT.PUSH);
+ folderButton.setText(Messages.JSFPortletFacetInstallPage_Browse);
+ folderButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
+ folderButton.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ handleFolderButtonPressed(folderText);
+ }
+
+ });
+ }
+
+ private IDialogSettings getPortletBridgeSection() {
+ IDialogSettings dialogSettings = PortletUIActivator.getDefault().getDialogSettings();
+ IDialogSettings section = dialogSettings.getSection(IPortletConstants.PORTLET_BRIDGE_HOME);
+ if (section == null) {
+ section = dialogSettings.addNewSection(IPortletConstants.PORTLET_BRIDGE_HOME);
+ }
+ return section;
+ }
+
+ private void handleFolderButtonPressed(Text folderText) {
+ String lastPath = folderText.getText();
+ DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.MULTI);
+ dialog.setText(Messages.JSFPortletFacetInstallPage_Select_Portletbridge_Runtime);
+ dialog.setFilterPath(lastPath);
+ String res = dialog.open();
+ if (res == null) {
+ return;
+ }
+ String newPath = dialog.getFilterPath();
+ folderText.setText(newPath);
+ }
+
+ private Shell getShell() {
+ return Display.getCurrent().getActiveShell();
+ }
+}
Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java (rev 0)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -0,0 +1,29 @@
+package org.jboss.tools.portlet.ui.internal.libprov;
+
+import static org.eclipse.wst.common.project.facet.ui.internal.util.GridLayoutUtil.gl;
+
+import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOperationPanel;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Link;
+import org.jboss.tools.portlet.ui.Messages;
+
+public class PortletServerRuntimeProviderInstallPanel extends LibraryProviderOperationPanel {
+
+ @Override
+ public Control createControl( final Composite parent )
+ {
+ final Composite composite = new Composite( parent, SWT.NONE );
+ composite.setLayout( gl( 1, 0, 0 ) );
+
+ final Link link = new Link( composite, SWT.WRAP );
+ final GridData data = new GridData( SWT.FILL, SWT.BEGINNING, true, false );
+ data.widthHint = 300;
+ link.setLayoutData( data );
+ link.setText( Messages.PortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_portlet_library );
+
+ return composite;
+ }
+}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -8,6 +8,8 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate;
+import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderFrameworkUi;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -18,6 +20,7 @@
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Shell;
@@ -25,14 +28,19 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog;
import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
+import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelProvider;
+import org.eclipse.wst.common.frameworks.datamodel.DataModelEvent;
+import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModelListener;
import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelSynchHelper;
+import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizardPage;
import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCopy;
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
+import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage;
+import org.eclipse.wst.common.project.facet.ui.IWizardContext;
import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.ServerCore;
import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.tools.portlet.core.IPortletConstants;
@@ -43,15 +51,14 @@
/**
* @author snjeza
*/
-public class JSFPortletFacetInstallPage extends AbstractFacetWizardPage {
+public class JSFPortletFacetInstallPage extends DataModelWizardPage implements IFacetWizardPage {
+ private static final Object PORTLETBRIDGE_LIBRARY_PROVIDER = "jsfportletbridge-library-provider"; //$NON-NLS-1$
private IDialogSettings dialogSettings;
- private IDataModel model;
private IDialogSettings jsfSection;
private boolean deployJars;
private String portletbridgeRuntime;
private Text folderText;
- private DataModelSynchHelper synchHelper;
private Button folderButton;
private Button deployButton;
private Combo portletBridgeLibraryCombo;
@@ -59,7 +66,7 @@
private String userLibraryName;
private Button add;
private String implementationLibrary;
- private Button addRichFacesCapabilities;
+ //private Button addRichFacesCapabilities;
private boolean hasSeamFacet;
private Button addRichFacesLibraries;
private Combo richFacesLibraryCombo;
@@ -69,7 +76,8 @@
private boolean richFacesLibrariesSelected;
public JSFPortletFacetInstallPage() {
- super("JSFPortletProjectConfigurationWizardPage"); //$NON-NLS-1$
+ super(DataModelFactory.createDataModel(new AbstractDataModelProvider() {
+ }), "jboss.jsfportal.facet.install.page"); //$NON-NLS-1$
setTitle(Messages.JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilities);
setDescription(Messages.JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet_capabilities_to_this_Web_Project);
// ImageDescriptor imageDesc = getDefaultPageImageDescriptor( );
@@ -122,14 +130,21 @@
}
- public void createControl(Composite parent) {
+ protected Composite createTopLevelComposite(Composite parent) {
initializeDialogUnits(parent);
Composite composite = new Composite(parent, SWT.NONE);
composite.setLayout(new GridLayout(1, false));
+ // createButton(composite);
+ LibraryInstallDelegate librariesInstallDelegate= (LibraryInstallDelegate) getDataModel().getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE );
+ Control librariesComposite= LibraryProviderFrameworkUi.createInstallLibraryPanel( composite, librariesInstallDelegate,
+ Messages.JSFPortletFacetInstallPage_JSFPortletImplementationLibrariesFrame );
+ GridData gd = new GridData( GridData.FILL_HORIZONTAL );
+ librariesComposite.setLayoutData( gd );
+
synchHelper = new DataModelSynchHelper(model);
- addFolderGroup(composite);
- // createButton(composite);
- setControl(composite);
+ //addFolderGroup(composite);
+
+ return composite;
}
private void createButton(Composite composite) {
@@ -147,64 +162,61 @@
});
}
- public void setConfig(Object config) {
- this.model = (IDataModel) config;
- }
-
private void addFolderGroup(Composite composite) {
- portletBridgeLibraryCombo = new Combo(composite, SWT.READ_ONLY);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- portletBridgeLibraryCombo.setLayoutData(gd);
- portletBridgeLibraryCombo.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- boolean enabled = IPortletConstants.USER_LIBRARY
- .equals(portletBridgeLibraryCombo.getText());
- userLibraries.setEnabled(enabled);
- add.setEnabled(enabled);
-
- enabled = IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portletBridgeLibraryCombo.getText());
- folderText.setEnabled(enabled);
- folderButton.setEnabled(enabled);
- model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY,
- portletBridgeLibraryCombo.getText());
- model.setProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME,folderText.getText().trim());
- model.setProperty(IPortletConstants.USER_LIBRARY_NAME,userLibraries.getText());
- if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portletBridgeLibraryCombo.getText())) {
- richFacesLibraryCombo.removeAll();
- richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
- richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
- richFacesLibraryCombo.select(0);
- } else {
- richFacesLibraryCombo.removeAll();
- richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
- richFacesLibraryCombo.select(0);
- }
- validatePage();
- }
-
- });
+// portletBridgeLibraryCombo = new Combo(composite, SWT.READ_ONLY);
+// GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+// portletBridgeLibraryCombo.setLayoutData(gd);
+// portletBridgeLibraryCombo.addSelectionListener(new SelectionAdapter() {
+//
+// @Override
+// public void widgetSelected(SelectionEvent e) {
+// boolean enabled = IPortletConstants.USER_LIBRARY
+// .equals(portletBridgeLibraryCombo.getText());
+// userLibraries.setEnabled(enabled);
+// add.setEnabled(enabled);
+//
+// enabled = IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portletBridgeLibraryCombo.getText());
+// folderText.setEnabled(enabled);
+// folderButton.setEnabled(enabled);
+// model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY,
+// portletBridgeLibraryCombo.getText());
+// model.setProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME,folderText.getText().trim());
+// model.setProperty(IPortletConstants.USER_LIBRARY_NAME,userLibraries.getText());
+// if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portletBridgeLibraryCombo.getText())) {
+// richFacesLibraryCombo.removeAll();
+// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
+// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
+// richFacesLibraryCombo.select(0);
+// } else {
+// richFacesLibraryCombo.removeAll();
+// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
+// richFacesLibraryCombo.select(0);
+// }
+// validatePage();
+// }
+//
+// });
+//
+// if (portletBridgeLibrariesExistOnServer()) {
+// portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME);
+// }
+// portletBridgeLibraryCombo.add(IPortletConstants.USER_LIBRARY);
+//
+// addUserLibraryGroup(composite);
+//
+// portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
+//
+// addPortletBridgeGroup(composite);
+//
+// portletBridgeLibraryCombo.setText(implementationLibrary);
+//
+// synchHelper.synchCombo(portletBridgeLibraryCombo, IPortletConstants.IMPLEMENTATION_LIBRARY, null);
+//
- if (portletBridgeLibrariesExistOnServer()) {
- portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME);
- }
- portletBridgeLibraryCombo.add(IPortletConstants.USER_LIBRARY);
-
- addUserLibraryGroup(composite);
-
- portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
-
- addPortletBridgeGroup(composite);
-
- portletBridgeLibraryCombo.setText(implementationLibrary);
-
- synchHelper.synchCombo(portletBridgeLibraryCombo, IPortletConstants.IMPLEMENTATION_LIBRARY, null);
-
Group richfacesGroup = new Group(composite, SWT.NONE);
richfacesGroup.setLayout(new GridLayout(2, false));
richfacesGroup.setText(Messages.JSFPortletFacetInstallPage_Richfaces_Capabilities);
- gd = new GridData(GridData.FILL_HORIZONTAL);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
richfacesGroup.setLayoutData(gd);
/*
addRichFacesCapabilities= new Button(richfacesGroup,SWT.CHECK);
@@ -251,14 +263,41 @@
});
addRichFaces(richfacesGroup);
+ changeRichFaces();
+ getDataModel().addListener(new IDataModelListener() {
+
+ public void propertyChanged(DataModelEvent event) {
+ String propertyName = event.getPropertyName();
+ if (IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE.equals(propertyName)) {
+ changeRichFaces();
+ }
+ }
+ });
addRichFacesLibraries.setSelection(richFacesLibrariesSelected);
enableRichfacesLibraries();
richFacesLibraryCombo.select(0);
- validatePage();
+ //validatePage();
}
+ private void changeRichFaces() {
+ LibraryInstallDelegate librariesInstallDelegate= (LibraryInstallDelegate) getDataModel().getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE );
+ String providerId = librariesInstallDelegate.getLibraryProvider().getId();
+ if (providerId != null && providerId.equals(PORTLETBRIDGE_LIBRARY_PROVIDER)) {
+ richFacesLibraryCombo.removeAll();
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
+ richFacesLibraryCombo.select(0);
+ } else {
+ richFacesLibraryCombo.removeAll();
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
+ richFacesLibraryCombo.select(0);
+ }
+ boolean enabled =IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richFacesLibraryCombo.getText());
+ richfacesText.setEnabled(enabled);
+ richfacesButton.setEnabled(enabled);
+ }
private void addRichFaces(Composite parent) {
richfacesText = new Text(parent, SWT.SINGLE | SWT.BORDER);
richfacesText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
@@ -382,22 +421,33 @@
validatePage();
}
- private void validatePage() {
- if (!validatePortletBridge()) {
- return;
- }
- if (!validateRichFaces()) {
- return;
- }
- if (portletBridgeLibraryCombo.getText().equals(IPortletConstants.USER_LIBRARY) && userLibraries.getText().trim().length() <= 0) {
- setErrorMessage(Messages.PortletFacetInstallPage_You_have_to_choose_an_user_library);
- setPageComplete(false);
- } else {
- setErrorMessage(null);
- setPageComplete(true);
- }
+ @Override
+ protected String[] getValidationPropertyNames() {
+ return new String[] { IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE };
+ }
+ public void setConfig(Object config) {
+ model.removeListener(this);
+ synchHelper.dispose();
+
+ model = (IDataModel) config;
+ model.addListener(this);
+ synchHelper = initializeSynchHelper(model);
}
+
+ @Override
+ public void dispose() {
+ model.removeListener(this);
+ super.dispose();
+ }
+
+ public void setWizardContext(IWizardContext context) {
+
+ }
+
+ public void transferStateToConfig() {
+
+ }
private boolean portletBridgeLibrariesExistOnServer() {
IFacetedProjectWorkingCopy fpwc = (IFacetedProjectWorkingCopy) model.getProperty(IFacetDataModelProperties.FACETED_PROJECT_WORKING_COPY);
@@ -570,24 +620,6 @@
richfacesText.setText(newPath);
}
- @Override
- public void transferStateToConfig() {
- super.transferStateToConfig();
- if (deployButton != null) {
- jsfSection.put(IPortletConstants.DEPLOY_JARS, deployButton
- .getSelection());
- }
- jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME,
- portletbridgeRuntime);
- jsfSection.put(IPortletConstants.RICHFACES_RUNTIME,
- richfacesRuntime);
- jsfSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY,
- implementationLibrary);
- jsfSection.put(IPortletConstants.RICHFACES_LIBRARIES_SELECTED,
- richFacesLibrariesSelected);
-
- }
-
private void enableRichfacesLibraries() {
boolean enabled = addRichFacesLibraries.getSelection();
richFacesLibraryCombo.setEnabled(enabled);
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/PortletFacetInstallPage.java 2009-09-10 00:27:18 UTC (rev 17509)
@@ -2,6 +2,8 @@
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate;
+import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderFrameworkUi;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -10,6 +12,7 @@
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Shell;
@@ -103,7 +106,13 @@
composite.setLayout(new GridLayout(1, false));
GridData gd = new GridData(GridData.FILL_BOTH);
composite.setLayoutData(gd);
- enableImplementationLibrary = new Button(composite, SWT.CHECK);
+ LibraryInstallDelegate librariesInstallDelegate= (LibraryInstallDelegate) getDataModel().getProperty( IPortletConstants.PORTLET_LIBRARY_PROVIDER_DELEGATE );
+ Control librariesComposite= LibraryProviderFrameworkUi.createInstallLibraryPanel( composite, librariesInstallDelegate,
+ Messages.PortletFacetInstallPage_PortletImplementationLibrariesFrame );
+ gd = new GridData( GridData.FILL_HORIZONTAL );
+ librariesComposite.setLayoutData( gd );
+
+ /*enableImplementationLibrary = new Button(composite, SWT.CHECK);
enableImplementationLibrary.setText(Messages.PortletFacetInstallPage_Enable_implementation_library);
enableImplementationLibrary
.setSelection(enableImplementationLibraryValue);
@@ -215,7 +224,7 @@
model.setProperty(IPortletConstants.USER_LIBRARY_NAME,
userLibraries
.getText());
- /*deployButton = new Button(composite, SWT.CHECK);
+*/ /*deployButton = new Button(composite, SWT.CHECK);
deployButton.setText(Messages.JSFPortletFacetInstallPage_Deploy_jars);
deployButton.setSelection(deployPortletJars);
deployButton.addSelectionListener(new SelectionAdapter() {
@@ -227,7 +236,7 @@
}
}); */
- validatePage();
+ //validatePage();
return composite;
}
@@ -251,7 +260,7 @@
@Override
protected String[] getValidationPropertyNames() {
- return new String[0];
+ return new String[] { IPortletConstants.PORTLET_LIBRARY_PROVIDER_DELEGATE };
}
public void setConfig(Object config) {
@@ -304,20 +313,5 @@
});
super.storeDefaultSettings();
}
-
- @Override
- protected void validatePage() {
- //super.validatePage();
- if (enableImplementationLibrary == null) {
- return;
- }
- if (enableImplementationLibrary.getSelection() && implementationLibraryCombo.getText().equals(IPortletConstants.USER_LIBRARY) && userLibraries.getText().trim().length() <= 0) {
- setErrorMessage(Messages.PortletFacetInstallPage_You_have_to_choose_an_user_library);
- setPageComplete(false);
- } else {
- setErrorMessage(null);
- setPageComplete(true);
- }
- }
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties 2009-09-09 23:59:43 UTC (rev 17508)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties 2009-09-10 00:27:18 UTC (rev 17509)
@@ -39,10 +39,10 @@
JSFPortletFacetInstallPage_Select_RichFaces_Runtime=Select RichFaces Runtime
PortletFacetInstallPage_Add=Add...
PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project=Add JBoss Portlet capabilities to this Web Project
-PortletFacetInstallPage_Enable_implementation_library=Enable implementation library
+#PortletFacetInstallPage_Enable_implementation_library=Enable implementation library
PortletFacetInstallPage_JBoss_Portlet_Capabilities=JBoss Portlet Capabilities
PortletFacetInstallPage_User_Library=User Library
-PortletFacetInstallPage_You_have_to_choose_an_user_library=You have to choose an user library
+#PortletFacetInstallPage_You_have_to_choose_an_user_library=You have to choose an user library
PortletUIActivator_The_portlet_xml_file_doesnt_exist=The portlet.xml file doesn't exist
NewJSFPortletClassWizardPage_Choose_a_JSF_portlet_class=Choose a JSF portlet class:
NewJSFPortletClassWizardPage_Choose_a_Seam_portlet_class=Choose a Seam portlet class:
@@ -54,3 +54,7 @@
NewPortletWizard_Specify_modifiers_interfaces_to_implement_and_method_stubs_to_generate=Specify modifiers, interfaces to implement and method stubs to generate.
No_portlets_exist_to_add=No portlets exist to add
JBossPortletPreferencePage_Check_Runtimes_for_Portlet_Components=Check Runtimes for Portlet Components
+PortletFacetInstallPage_PortletImplementationLibrariesFrame=Portlet Implementation Library
+JSFPortletFacetInstallPage_JSFPortletImplementationLibrariesFrame=JSFPortlet Implementation Library
+PortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_portlet_library=The targeted runtime contains a portlet library. Selecting this option will configure the classpath container that includes the library.
+JSFPortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_portlet_library=The targeted runtime contains a JSF portlet library. Selecting this option will copy libraries from the Server Runtime.
15 years
JBoss Tools SVN: r17508 - trunk/tests/features/org.jboss.tools.all.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-09 19:59:43 -0400 (Wed, 09 Sep 2009)
New Revision: 17508
Modified:
trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml
Log:
remove kb.test plug-in from test feature
Modified: trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml
===================================================================
--- trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml 2009-09-09 23:12:39 UTC (rev 17507)
+++ trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml 2009-09-09 23:59:43 UTC (rev 17508)
@@ -20,14 +20,7 @@
source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
Raleigh NC 27606 USA.
</license>
-
- <plugin
- id="org.jboss.tools.common.kb.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
+ <plugin
id="org.jboss.tools.common.model.test"
download-size="0"
install-size="0"
15 years
JBoss Tools SVN: r17507 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-09 19:12:39 -0400 (Wed, 09 Sep 2009)
New Revision: 17507
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-4474
Plug-ins were cleaned up:
o.j.t.seam.ui.pages
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2009-09-09 19:43:30 UTC (rev 17506)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2009-09-09 23:12:39 UTC (rev 17507)
@@ -23,32 +23,18 @@
org.jboss.tools.seam.ui.pages.editor.edit
Bundle-SymbolicName: org.jboss.tools.seam.ui.pages;singleton:=true
Bundle-Localization: plugin
-Require-Bundle: org.eclipse.jface.text,
- org.eclipse.jdt.ui,
- org.eclipse.wst.sse.ui,
- org.eclipse.wst.xml.core,
- org.eclipse.wst.xml.ui,
- org.eclipse.wst.common.frameworks.ui,
- org.eclipse.wst.common.ui,
- org.eclipse.compare,
- org.eclipse.core.resources,
- org.eclipse.core.runtime,
- org.eclipse.jface,
- org.eclipse.ui,
- org.eclipse.draw2d,
+Require-Bundle: org.eclipse.ui,
org.eclipse.gef,
org.eclipse.ui.ide,
org.eclipse.ui.workbench.texteditor,
- org.eclipse.core.expressions,
org.eclipse.ui.views,
- org.jboss.tools.common.model,
org.jboss.tools.common.model.ui,
- org.jboss.tools.common.text.xml,
- org.jboss.tools.jst.web,
org.jboss.tools.jst.web.ui,
org.jboss.tools.seam.pages.xml,
- org.eclipse.emf;bundle-version="2.4.0",
org.eclipse.emf.ecore;bundle-version="2.4.0",
- org.eclipse.pde.ui;bundle-version="3.4.0"
+ org.eclipse.pde.ui;bundle-version="3.4.0",
+ org.jboss.tools.common.gef;bundle-version="2.0.0",
+ org.eclipse.jface.text;bundle-version="3.5.0",
+ org.eclipse.core.expressions;bundle-version="3.4.100"
Bundle-Version: 2.0.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
15 years
JBoss Tools SVN: r17506 - in trunk/maven/features: org.jboss.tools.maven.feature/sourceTemplateFeature and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-09-09 15:43:30 -0400 (Wed, 09 Sep 2009)
New Revision: 17506
Added:
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties
trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties
trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties
Log:
add maven.source and maven.seam.source feature/plugin templates
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,15 @@
+###############################################################################
+# Copyright (c) 2009 Red Hat and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Red Hat - initial API and implementation
+###############################################################################
+
+bin.includes = feature.*,\
+ license.html
+
+
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,26 @@
+featureName=JBoss Maven Integration Source
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=JBoss Maven Integration Source
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
+
\ No newline at end of file
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,29 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+#featureImage=eclipse32.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+# optional
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,6 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+0=@build@
\ No newline at end of file
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,7 @@
+blurb=JBoss Maven Integration Source\n\
+\n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+(c) Copyright Red Hat contributors and others, 2009. All rights reserved.\n\
+Visit http://www.jboss.org/tools
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,5 @@
+bin.includes = plugin.*,\
+ about.*,\
+ src/,\
+ META-INF/
+sourcePlugin = true
Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,3 @@
+pluginName = JBoss Maven Integration Source
+providerName = JBoss by Red Hat
+
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,15 @@
+###############################################################################
+# Copyright (c) 2009 Red Hat and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Red Hat - initial API and implementation
+###############################################################################
+
+bin.includes = feature.*,\
+ license.html
+
+
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,26 @@
+featureName=JBoss Maven Seam Integration Source
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=JBoss Maven Seam Integration Source
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
+
\ No newline at end of file
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,29 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+#featureImage=eclipse32.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+# optional
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,6 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+0=@build@
\ No newline at end of file
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,7 @@
+blurb=JBoss Maven Seam Integration Source\n\
+\n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+(c) Copyright Red Hat contributors and others, 2009. All rights reserved.\n\
+Visit http://www.jboss.org/tools
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,5 @@
+bin.includes = plugin.*,\
+ about.*,\
+ src/,\
+ META-INF/
+sourcePlugin = true
Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties (rev 0)
+++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties 2009-09-09 19:43:30 UTC (rev 17506)
@@ -0,0 +1,3 @@
+pluginName = JBoss Maven Seam Integration Source
+providerName = JBoss by Red Hat
+
15 years
JBoss Tools SVN: r17505 - in trunk: jsf/plugins/org.jboss.tools.jsf.ui/META-INF and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-09 15:37:28 -0400 (Wed, 09 Sep 2009)
New Revision: 17505
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-4474
Plug-ins were cleaned up:
o.j.t.common.model.ui
o.j.t.jsf.ui
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.MF 2009-09-09 19:34:11 UTC (rev 17504)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.MF 2009-09-09 19:37:28 UTC (rev 17505)
@@ -87,32 +87,18 @@
Require-Bundle: org.jboss.tools.common.model;visibility:=reexport,
org.jboss.tools.common.text.ext;visibility:=reexport,
org.jboss.tools.common.text.xml;visibility:=reexport,
- org.jboss.tools.common.gef;visibility:=reexport,
org.eclipse.ui,
org.eclipse.ui.ide,
org.eclipse.ui.views,
- org.eclipse.ui.editors,
- org.eclipse.jface,
org.eclipse.jface.text,
- org.eclipse.ui.workbench,
org.eclipse.ui.workbench.texteditor,
org.eclipse.ui.forms,
- org.eclipse.ui.navigator,
- org.eclipse.jdt.core,
org.eclipse.jdt.ui,
- org.eclipse.core.resources,
- org.eclipse.core.runtime,
org.eclipse.compare,
- org.eclipse.ui.editors,
- org.eclipse.wst.sse.ui,
org.eclipse.wst.xml.ui,
- org.eclipse.wst.xml.core,
- org.eclipse.wst.sse.core,
org.eclipse.jdt.launching,
- org.eclipse.ant.ui,
- org.eclipse.core.expressions,
- org.eclipse.core.filesystem,
org.eclipse.wst.html.core,
- org.eclipse.pde.ui
+ org.eclipse.pde.ui,
+ org.eclipse.core.expressions;bundle-version="3.4.100"
Bundle-Version: 2.0.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-09 19:34:11 UTC (rev 17504)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-09 19:37:28 UTC (rev 17505)
@@ -45,7 +45,8 @@
org.eclipse.ui.ide,
org.eclipse.gef,
org.eclipse.ui.workbench.texteditor,
- org.eclipse.core.expressions
+ org.eclipse.core.expressions,
+ org.jboss.tools.common.gef;bundle-version="2.0.0"
Bundle-Version: 2.0.0
Eclipse-LazyStart: true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
15 years
JBoss Tools SVN: r17504 - in branches/jbosstools-3.1.0.M3/maven/features: org.jboss.tools.maven.feature/sourceTemplateFeature and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-09-09 15:34:11 -0400 (Wed, 09 Sep 2009)
New Revision: 17504
Added:
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties
branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties
Log:
add maven.source and maven.seam.source feature/plugin templates
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/build.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,15 @@
+###############################################################################
+# Copyright (c) 2009 Red Hat and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Red Hat - initial API and implementation
+###############################################################################
+
+bin.includes = feature.*,\
+ license.html
+
+
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/feature.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,26 @@
+featureName=JBoss Maven Integration Source
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=JBoss Maven Integration Source
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
+
\ No newline at end of file
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/license.html 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.ini 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,29 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+#featureImage=eclipse32.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+# optional
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.mappings 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,6 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+0=@build@
\ No newline at end of file
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/about.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,7 @@
+blurb=JBoss Maven Integration Source\n\
+\n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+(c) Copyright Red Hat contributors and others, 2009. All rights reserved.\n\
+Visit http://www.jboss.org/tools
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/build.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,5 @@
+bin.includes = plugin.*,\
+ about.*,\
+ src/,\
+ META-INF/
+sourcePlugin = true
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/plugin.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,3 @@
+pluginName = JBoss Maven Integration Source
+providerName = JBoss by Red Hat
+
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/build.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,15 @@
+###############################################################################
+# Copyright (c) 2009 Red Hat and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Red Hat - initial API and implementation
+###############################################################################
+
+bin.includes = feature.*,\
+ license.html
+
+
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/feature.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,26 @@
+featureName=JBoss Maven Seam Integration Source
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=JBoss Maven Seam Integration Source
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
+
\ No newline at end of file
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFeature/license.html 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.ini 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,29 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+#featureImage=eclipse32.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+# optional
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.mappings 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,6 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+0=@build@
\ No newline at end of file
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/about.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,7 @@
+blurb=JBoss Maven Seam Integration Source\n\
+\n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+(c) Copyright Red Hat contributors and others, 2009. All rights reserved.\n\
+Visit http://www.jboss.org/tools
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/build.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,5 @@
+bin.includes = plugin.*,\
+ about.*,\
+ src/,\
+ META-INF/
+sourcePlugin = true
Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties
===================================================================
--- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties (rev 0)
+++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePlugin/plugin.properties 2009-09-09 19:34:11 UTC (rev 17504)
@@ -0,0 +1,3 @@
+pluginName = JBoss Maven Seam Integration Source
+providerName = JBoss by Red Hat
+
15 years
JBoss Tools SVN: r17503 - trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-09 15:32:19 -0400 (Wed, 09 Sep 2009)
New Revision: 17503
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-4474
Plug-ins were cleaned up:
o.j.t.vpe.ui.palette
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2009-09-09 19:30:46 UTC (rev 17502)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2009-09-09 19:32:19 UTC (rev 17503)
@@ -7,19 +7,9 @@
Bundle-Localization: plugin
Provide-Package: org.jboss.tools.vpe.ui.palette,org.jboss.tools.vpe.ui.palette.model
Require-Bundle: org.eclipse.ui.ide,
- org.eclipse.ui.views,
org.eclipse.jface.text,
- org.eclipse.ui.workbench.texteditor,
- org.eclipse.ui.editors,
- org.eclipse.swt,
org.eclipse.ui,
- org.eclipse.draw2d,
org.eclipse.gef,
- org.eclipse.jdt.ui,
- org.jboss.tools.common,
- org.jboss.tools.common.model,
- org.jboss.tools.common.model.ui,
- org.eclipse.core.resources,
- org.eclipse.core.runtime
+ org.jboss.tools.common.model.ui
Bundle-Version: 2.1.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
15 years
JBoss Tools SVN: r17502 - trunk/jsf/plugins/org.jboss.tools.jsf/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-09 15:30:46 -0400 (Wed, 09 Sep 2009)
New Revision: 17502
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-4474
Plug-ins were cleaned up:
o.j.t.jsf
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-09 19:20:46 UTC (rev 17501)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-09 19:30:46 UTC (rev 17502)
@@ -40,7 +40,6 @@
org.eclipse.wst.common.frameworks,
org.eclipse.wst.common.modulecore,
org.eclipse.wst.validation,
- org.hibernate.eclipse.jdt.ui,
org.eclipse.jdt.core.manipulation;bundle-version="1.3.0"
Bundle-Version: 2.0.0
Eclipse-LazyStart: true
15 years
JBoss Tools SVN: r17501 - in trunk/jst/plugins: org.jboss.tools.jst.web/META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-09 15:20:46 -0400 (Wed, 09 Sep 2009)
New Revision: 17501
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-4474
Plug-ins were cleaned up:
o.j.t.jst.jsp
o.j.t.jst.web
o.j.t.jst.web.ui
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-09 19:15:53 UTC (rev 17500)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-09 19:20:46 UTC (rev 17501)
@@ -20,47 +20,27 @@
org.jboss.tools.jst.jsp.support.kb,
org.jboss.tools.jst.jsp.text,
org.jboss.tools.jst.jsp.ui.action
-Require-Bundle: org.jboss.tools.common,
- org.jboss.tools.common.model,
- org.jboss.tools.common.el.core,
- org.jboss.tools.common.text.xml,
+Require-Bundle: org.jboss.tools.common.el.core,
org.jboss.tools.common.model.ui,
org.jboss.tools.jst.web,
- org.eclipse.jface,
org.eclipse.jface.text,
- org.eclipse.swt,
- org.eclipse.ui.editors,
- org.eclipse.ui,
org.eclipse.ui.workbench.texteditor,
org.eclipse.ui.ide,
org.eclipse.jdt.ui,
- org.eclipse.jdt.core,
org.eclipse.wst.common.ui,
- org.eclipse.wst.sse.ui,
- org.eclipse.wst.sse.core,
- org.eclipse.wst.xml.core,
org.eclipse.wst.html.core,
org.eclipse.wst.html.ui,
org.eclipse.wst.xml.ui,
- org.eclipse.jst.jsp.core,
org.eclipse.jst.jsp.ui,
org.eclipse.wst.css.core,
org.eclipse.wst.css.ui,
- org.eclipse.help,
org.eclipse.help.ui,
- org.eclipse.help.appserver,
- org.eclipse.help.base,
- org.eclipse.help.webapp,
org.eclipse.jem,
- org.eclipse.wst.common.snippets,
- org.eclipse.wst.common.uriresolver,
- org.eclipse.core.resources,
- org.eclipse.core.runtime,
org.eclipse.ui.views,
org.eclipse.core.databinding,
org.eclipse.jface.databinding,
- org.eclipse.core.databinding.property,
- org.jboss.tools.jst.web.kb
+ org.jboss.tools.jst.web.kb,
+ org.eclipse.core.databinding.property;bundle-version="1.2.0"
Bundle-Version: 2.0.0
Export-Package: org.jboss.tools.jst.jsp.outline.cssdialog.common,
org.jboss.tools.jst.jsp.outline.cssdialog.parsers,
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2009-09-09 19:15:53 UTC (rev 17500)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2009-09-09 19:20:46 UTC (rev 17501)
@@ -10,31 +10,17 @@
Bundle-Localization: plugin
Require-Bundle: org.jboss.tools.common.model;visibility:=reexport,
org.jboss.tools.common.projecttemplates;visibility:=reexport,
- org.eclipse.jdt.core,
org.eclipse.ui,
- org.eclipse.debug.core,
org.eclipse.jdt.launching,
- org.eclipse.jdt.ui,
org.eclipse.debug.ui,
org.eclipse.jdt.debug,
org.eclipse.wst.server.core,
org.eclipse.wst.sse.core,
- org.eclipse.wst.web,
- org.eclipse.jst.j2ee.web,
org.eclipse.jst.j2ee,
- org.eclipse.wst.common.frameworks,
- org.eclipse.jst.server.tomcat.core,
org.eclipse.ltk.core.refactoring,
- org.eclipse.ltk.ui.refactoring,
org.eclipse.jst.jsp.core,
- org.eclipse.wst.xml.core,
- org.eclipse.core.resources,
- org.eclipse.pde.ui,
- org.eclipse.core.runtime,
- org.eclipse.ant.ui,
- org.eclipse.ui.externaltools,
- org.eclipse.wst.common.project.facet.core,
- org.jboss.tools.common.el.core;bundle-version="2.0.0"
+ org.eclipse.jst.j2ee.core;bundle-version="1.1.300",
+ org.eclipse.wst.common.project.facet.core;bundle-version="1.4.0"
Bundle-Version: 2.0.0
Export-Package:
org.jboss.tools.jst.web,
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-09-09 19:15:53 UTC (rev 17500)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-09-09 19:20:46 UTC (rev 17501)
@@ -29,61 +29,22 @@
org.jboss.tools.jst.web.ui.wizards.process,
org.jboss.tools.jst.web.ui.wizards.project,
org.jboss.tools.vpe
-Require-Bundle: org.jboss.tools.common,
- org.eclipse.ui.ide,
- org.eclipse.ui.views,
- org.eclipse.jface.text,
- org.eclipse.ui.workbench.texteditor,
- org.eclipse.ui.editors,
- org.jboss.tools.common.model,
+Require-Bundle: org.eclipse.ui.ide,
org.jboss.tools.common.model.ui,
org.jboss.tools.jst.web,
- org.eclipse.jface,
- org.eclipse.ui,
org.eclipse.ui.navigator,
- org.eclipse.ui.navigator.resources,
- org.eclipse.jst.j2ee.navigator.ui,
- org.eclipse.help,
- org.eclipse.jdt.launching,
org.eclipse.jdt.ui,
- org.eclipse.debug.core,
- org.eclipse.jdt.core,
- org.eclipse.swt,
- org.eclipse.emf.ecore,
- org.eclipse.jst.jsp.ui,
org.eclipse.wst.common.frameworks,
org.eclipse.wst.server.core,
org.eclipse.wst.server.ui,
- org.eclipse.wst.sse.ui,
- org.eclipse.wst.sse.core,
org.eclipse.jst.j2ee.web,
- org.eclipse.wst.web,
org.eclipse.jst.j2ee,
- org.eclipse.wst.common.emfworkbench.integration,
- org.eclipse.jem,
- org.jboss.tools.common.projecttemplates,
org.eclipse.jem.util,
org.eclipse.wst.common.frameworks,
- org.eclipse.jst.common.frameworks,
- org.eclipse.jst.j2ee.core,
- org.eclipse.ui.browser,
- org.eclipse.jst.server.core,
- org.eclipse.jst.server.generic.core,
- org.eclipse.jst.server.generic.ui,
- org.eclipse.jst.server.tomcat.core,
- org.eclipse.jst.server.tomcat.ui,
- org.eclipse.jst.server.ui,
- org.eclipse.jst.server.websphere.core,
- org.eclipse.jst.j2ee.ejb,
- org.eclipse.wst.web.ui,
- org.eclipse.jst.ejb.ui,
- org.eclipse.wst.common.project.facet.core,
- org.eclipse.jst.servlet.ui,
org.eclipse.wst.common.project.facet.ui,
- org.eclipse.core.resources,
- org.eclipse.core.runtime,
org.eclipse.debug.ui,
- org.jboss.tools.jsf.vpe.jsf,
- org.jboss.tools.jst.jsp;bundle-version="2.0.0"
+ org.jboss.tools.jst.jsp;bundle-version="2.0.0",
+ org.eclipse.jface.text;bundle-version="3.5.0",
+ org.eclipse.wst.common.emfworkbench.integration;bundle-version="1.1.300"
Bundle-Version: 2.0.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
15 years