Author: dennyxu
Date: 2009-05-06 04:32:42 -0400 (Wed, 06 May 2009)
New Revision: 15059
Added:
workspace/Denny/bpel/org.jboss.bpel.as.integration/.classpath
workspace/Denny/bpel/org.jboss.bpel.as.integration/.project
workspace/Denny/bpel/org.jboss.bpel.as.integration/.settings/
workspace/Denny/bpel/org.jboss.bpel.as.integration/.settings/org.eclipse.jdt.core.prefs
workspace/Denny/bpel/org.jboss.bpel.as.integration/META-INF/
workspace/Denny/bpel/org.jboss.bpel.as.integration/META-INF/MANIFEST.MF
workspace/Denny/bpel/org.jboss.bpel.as.integration/build.properties
workspace/Denny/bpel/org.jboss.bpel.as.integration/plugin.xml
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/Activator.java
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/JBossServerBPELPublisher.java
Log:
Initial import.
Added: workspace/Denny/bpel/org.jboss.bpel.as.integration/.classpath
===================================================================
--- workspace/Denny/bpel/org.jboss.bpel.as.integration/.classpath
(rev 0)
+++ workspace/Denny/bpel/org.jboss.bpel.as.integration/.classpath 2009-05-06 08:32:42 UTC
(rev 15059)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: workspace/Denny/bpel/org.jboss.bpel.as.integration/.project
===================================================================
--- workspace/Denny/bpel/org.jboss.bpel.as.integration/.project
(rev 0)
+++ workspace/Denny/bpel/org.jboss.bpel.as.integration/.project 2009-05-06 08:32:42 UTC
(rev 15059)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.bpel.as.integration</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
workspace/Denny/bpel/org.jboss.bpel.as.integration/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
workspace/Denny/bpel/org.jboss.bpel.as.integration/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
workspace/Denny/bpel/org.jboss.bpel.as.integration/.settings/org.eclipse.jdt.core.prefs 2009-05-06
08:32:42 UTC (rev 15059)
@@ -0,0 +1,8 @@
+#Wed May 06 15:59:44 CST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: workspace/Denny/bpel/org.jboss.bpel.as.integration/META-INF/MANIFEST.MF
===================================================================
--- workspace/Denny/bpel/org.jboss.bpel.as.integration/META-INF/MANIFEST.MF
(rev 0)
+++ workspace/Denny/bpel/org.jboss.bpel.as.integration/META-INF/MANIFEST.MF 2009-05-06
08:32:42 UTC (rev 15059)
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: BPEL JBoss AS Publisher
+Bundle-SymbolicName: org.jboss.bpel.as.integration;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.bpel.as.integration.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.ide.eclipse.as.core,
+ org.eclipse.wst.server.core;bundle-version="1.1.2",
+ org.eclipse.core.resources;bundle-version="3.5.0",
+ org.eclipse.wst.common.project.facet.core;bundle-version="1.4.0",
+ org.eclipse.bpel.runtimes;bundle-version="0.4.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Added: workspace/Denny/bpel/org.jboss.bpel.as.integration/build.properties
===================================================================
--- workspace/Denny/bpel/org.jboss.bpel.as.integration/build.properties
(rev 0)
+++ workspace/Denny/bpel/org.jboss.bpel.as.integration/build.properties 2009-05-06
08:32:42 UTC (rev 15059)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
Added: workspace/Denny/bpel/org.jboss.bpel.as.integration/plugin.xml
===================================================================
--- workspace/Denny/bpel/org.jboss.bpel.as.integration/plugin.xml
(rev 0)
+++ workspace/Denny/bpel/org.jboss.bpel.as.integration/plugin.xml 2009-05-06 08:32:42 UTC
(rev 15059)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.jboss.ide.eclipse.as.core.publishers">
+ <publisher
+ class="org.jboss.bpel.as.integration.JBossServerBPELPublisher"
+ priority="4">
+ </publisher>
+ </extension>
+
+</plugin>
Added:
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/Activator.java
===================================================================
---
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/Activator.java
(rev 0)
+++
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/Activator.java 2009-05-06
08:32:42 UTC (rev 15059)
@@ -0,0 +1,50 @@
+package org.jboss.bpel.as.integration;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.bpel.as.integration";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Added:
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/JBossServerBPELPublisher.java
===================================================================
---
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/JBossServerBPELPublisher.java
(rev 0)
+++
workspace/Denny/bpel/org.jboss.bpel.as.integration/src/org/jboss/bpel/as/integration/JBossServerBPELPublisher.java 2009-05-06
08:32:42 UTC (rev 15059)
@@ -0,0 +1,31 @@
+package org.jboss.bpel.as.integration;
+
+import org.eclipse.bpel.runtimes.IBPELModuleFacetConstants;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+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.ProjectFacetsManager;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IServer;
+import org.jboss.ide.eclipse.as.core.publishers.JstPublisher;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher;
+
+public class JBossServerBPELPublisher extends JstPublisher implements
+ IJBossServerPublisher {
+
+ public JBossServerBPELPublisher() {
+ }
+
+ public boolean accepts(IServer server, IModule[] module) {
+ IProject project = module[0].getProject();
+ try {
+ IFacetedProject fp = ProjectFacetsManager.create(project);
+ IProjectFacet pf =
ProjectFacetsManager.getProjectFacet(IBPELModuleFacetConstants.BPEL20_PROJECT_FACET);
+ return fp.hasProjectFacet(pf);
+ } catch (CoreException e) {
+ return false;
+ }
+
+ }
+}