geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r345145 - in /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core: icons/ icons/geronimo16x16.gif plugin.properties plugin.xml src/org/apache/geronimo/core/GeronimoFacetInstallDelegate.java
Date Wed, 16 Nov 2005 23:06:36 GMT
Author: sppatel
Date: Wed Nov 16 15:06:30 2005
New Revision: 345145

URL: http://svn.apache.org/viewcvs?rev=345145&view=rev
Log:
call deployment plan creation op from  facet install delegate

Added:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/icons/
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/icons/geronimo16x16.gif
  (with props)
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/GeronimoFacetInstallDelegate.java
Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.properties
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.xml

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/icons/geronimo16x16.gif
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/icons/geronimo16x16.gif?rev=345145&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/icons/geronimo16x16.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.properties
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.properties?rev=345145&r1=345144&r2=345145&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.properties
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.properties
Wed Nov 16 15:06:30 2005
@@ -14,4 +14,7 @@
 rmiport=RMI Naming Port:
 adminId=Ad&ministrator Id:
 adminPassword=Administrator Pa&ssword:
-classPath=&Classpath Variable:
\ No newline at end of file
+classPath=&Classpath Variable:
+
+geronimo-facet-label=Apache Geronimo
+geronimo-facet-description=Apache Geronimo
\ No newline at end of file

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.xml
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.xml?rev=345145&r1=345144&r2=345145&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.xml
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/plugin.xml
Wed Nov 16 15:06:30 2005
@@ -95,4 +95,39 @@
 		</operationExtension>		
    </extension>
    
+    <extension
+         point="org.eclipse.wst.common.project.facet.core.facets">
+         
+        <project-facet id="org.apache.geronimo.facet">
+            <label>%geronimo-facet-label</label>
+            <description>%geronimo-facet-description</description>
+            <icon>icons/geronimo16x16.gif</icon>
+        </project-facet>
+
+        <project-facet-version facet="org.apache.geronimo.facet" version="1.0">
+            <action type="install">
+                <delegate class="org.apache.geronimo.core.GeronimoFacetInstallDelegate"/>
+            </action>
+           	<constraint>
+                <or>
+                    <requires facet="jst.ear" version="1.2"/>
+                    <requires facet="jst.ear" version="1.3"/>
+                    <requires facet="jst.ear" version="1.4"/>
+                    <requires facet="jst.appclient" version="1.2"/>
+                    <requires facet="jst.appclient" version="1.3"/>
+                    <requires facet="jst.appclient" version="1.4"/>
+                    <requires facet="jst.connector" version="1.0"/>
+                    <requires facet="jst.connector" version="1.5"/>
+                    <requires facet="jst.ejb" version="1.1"/>
+                    <requires facet="jst.ejb" version="2.0"/>
+                    <requires facet="jst.ejb" version="2.1"/>
+                    <requires facet="jst.web" version="2.2"/>
+                    <requires facet="jst.web" version="2.3"/>
+                    <requires facet="jst.web" version="2.4"/>
+                </or>
+            </constraint>
+        </project-facet-version>
+   </extension>
+   
+   
 </plugin>

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/GeronimoFacetInstallDelegate.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/GeronimoFacetInstallDelegate.java?rev=345145&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/GeronimoFacetInstallDelegate.java
(added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/GeronimoFacetInstallDelegate.java
Wed Nov 16 15:06:30 2005
@@ -0,0 +1,70 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.core;
+
+import org.apache.geronimo.core.internal.GeronimoUtils;
+import org.apache.geronimo.core.operations.DeploymentPlanCreationOperation;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
+import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.common.project.facet.core.IDelegate;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+
+public class GeronimoFacetInstallDelegate implements IDelegate {
+
+	/**
+	 * 
+	 */
+	public GeronimoFacetInstallDelegate() {
+		super();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.eclipse.wst.common.project.facet.core.IDelegate#execute(org.eclipse.core.resources.IProject,
+	 *      org.eclipse.wst.common.project.facet.core.IProjectFacetVersion,
+	 *      java.lang.Object, org.eclipse.core.runtime.IProgressMonitor)
+	 */
+	public void execute(IProject project, IProjectFacetVersion fv,
+			Object config, IProgressMonitor monitor) throws CoreException {
+		
+		DeploymentPlanCreationOperation op = new DeploymentPlanCreationOperation();
+		
+		IVirtualComponent comp = ComponentCore.createComponent(project);
+
+		String type = J2EEProjectUtilities.getJ2EEProjectType(project);
+
+		if (IModuleConstants.JST_WEB_MODULE.equals(type)) {
+			op.createGeronimoWebDeploymentPlan(GeronimoUtils
+					.getWebDeploymentPlanFile(comp));
+		} else if (IModuleConstants.JST_EJB_MODULE.equals(type)) {
+			op.createOpenEjbDeploymentPlan(GeronimoUtils
+					.getOpenEjbDeploymentPlanFile(comp));
+		} else if (IModuleConstants.JST_EAR_MODULE.equals(type)) {
+			op.createGeronimoApplicationDeploymentPlan(GeronimoUtils
+					.getApplicationDeploymentPlanFile(comp));
+		} else if (IModuleConstants.JST_CONNECTOR_MODULE.equals(type)) {
+			op.createConnectorDeploymentPlan(GeronimoUtils
+					.getConnectorDeploymentPlanFile(comp));
+		}
+	}
+
+}



Mime
View raw message