JBoss Tools SVN: r34421 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/include.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-08-30 18:36:56 -0400 (Tue, 30 Aug 2011)
New Revision: 34421
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/include/IncludeContextBuilder.java
Log:
https://issues.jboss.org/browse/JBIDE-9590 ConcurrentModificationException in KB PageContextFactory
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/include/IncludeContextBuilder.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/include/IncludeContextBuilder.java 2011-08-30 19:46:40 UTC (rev 34420)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/include/IncludeContextBuilder.java 2011-08-30 22:36:56 UTC (rev 34421)
@@ -27,9 +27,9 @@
*
*/
public class IncludeContextBuilder extends RegistryReader {
-
+
public static final String[] EMPTY = new String[0];
-
+
// extension point ID
public static final String PL_INCLUDE = "KbIncludeContext"; //$NON-NLS-1$
@@ -40,27 +40,28 @@
public static final String TAG_CONTENTTYPE = "contenttype"; //$NON-NLS-1$
public static final String TAG_CSSHOLDER = "cssholder"; //$NON-NLS-1$
public static final String TAG_JSF2CSSHOLDER = "jsf2cssholder"; //$NON-NLS-1$
-
+
public static final String ATT_ID = "id"; //$NON-NLS-1$
public static final String ATT_URI = "uri"; //$NON-NLS-1$
public static final String ATT_NAME = "name"; //$NON-NLS-1$
- protected String fTargetContributionElement;
+ private final List<IncludeContextDefinition> fIncludeContextDefs = new ArrayList<IncludeContextDefinition>();;
+ private IncludeContextDefinition fCurrentIncludeDefinition;
- private static IncludeContextBuilder fInstance;
+ private static final IncludeContextBuilder fInstance = new IncludeContextBuilder();
- private List<IncludeContextDefinition> fIncludeContextDefs = null;
- private IncludeContextDefinition fCurrentIncludeDefinition = null;
+ private IncludeContextBuilder() {
+ // Reads the contributions defined in the extension point
+ IExtensionRegistry registry = Platform.getExtensionRegistry();
+ readRegistry(registry, WebKbPlugin.PLUGIN_ID, PL_INCLUDE);
+ }
/**
* returns singleton instance of IncludeContextBuilder
*
* @return {@link IncludeContextBuilder}
*/
- public synchronized static IncludeContextBuilder getInstance() {
- if (fInstance == null) {
- fInstance = new IncludeContextBuilder();
- }
+ public static IncludeContextBuilder getInstance() {
return fInstance;
}
@@ -72,8 +73,7 @@
* @return String
*/
public static String getId(IConfigurationElement element) {
- String value = element.getAttribute(ATT_ID);
- return value;
+ return element.getAttribute(ATT_ID);
}
/**
@@ -83,9 +83,8 @@
* @param element
* @return String
*/
- public static String getUri(IConfigurationElement element) {
- String value = element.getAttribute(ATT_URI);
- return value;
+ private static String getUri(IConfigurationElement element) {
+ return element.getAttribute(ATT_URI);
}
/**
@@ -96,8 +95,7 @@
* @return String
*/
public static String getName(IConfigurationElement element) {
- String value = element.getAttribute(ATT_NAME);
- return value;
+ return element.getAttribute(ATT_NAME);
}
/**
@@ -111,12 +109,7 @@
String theUri = getUri(element);
theUri = theUri == null ? "" : theUri; //$NON-NLS-1$
-
- // create a new list of open on definitions if it hasn't been created yet
- if (fIncludeContextDefs == null) {
- fIncludeContextDefs = new ArrayList<IncludeContextDefinition>();
- }
-
+
fCurrentIncludeDefinition = getIncludeContextDefinition(theUri);
if (fCurrentIncludeDefinition == null) {
// start building new IncludeDefinition
@@ -241,31 +234,12 @@
return true;
}
- private void initCache() {
- if (fIncludeContextDefs == null) {
- readContributions(TAG_INCLUDE, PL_INCLUDE);
- }
- }
-
/**
- * Reads the contributions defined in the extension point
+ * Returns all the definitions
*
- * @param element
- * @param extensionPoint
- */
- protected void readContributions(String element, String extensionPoint) {
- fTargetContributionElement = element;
- IExtensionRegistry registry = Platform.getExtensionRegistry();
- readRegistry(registry, WebKbPlugin.PLUGIN_ID, extensionPoint);
- }
-
- /**
- * Returns all the open on definition objects
- *
* @return
*/
- public List<IncludeContextDefinition> getIncludeContextDefinitions() {
- initCache();
+ private List<IncludeContextDefinition> getIncludeContextDefinitions() {
return fIncludeContextDefs;
}
@@ -277,29 +251,27 @@
* @return
*/
public static String[] getIncludeAttributes(String uri, String tagName) {
- List<IncludeContextDefinition> defs = IncludeContextBuilder.getInstance().getIncludeContextDefinitions();
+ List<IncludeContextDefinition> defs = getInstance().getIncludeContextDefinitions();
String[] result = EMPTY;
if(!defs.isEmpty()) {
List<String> attrs = new ArrayList<String>();
-
+
for (IncludeContextDefinition def : defs) {
if (uri.equals(def.getUri())) {
String[] defAttrs = def.getIncludeTagAttributes(tagName);
- if (defAttrs != null) {
- for (String attr : defAttrs) {
- attrs.add(attr);
- }
+ for (String attr : defAttrs) {
+ attrs.add(attr);
}
}
}
-
+
if(!attrs.isEmpty()) {
result = attrs.toArray(new String[attrs.size()]);
}
}
return result;
}
-
+
/**
* Returns the context type for the specified Content Type
*
@@ -308,11 +280,12 @@
*/
public static String getContextType(String contentType) {
if (contentType != null) {
- List<IncludeContextDefinition> defs = IncludeContextBuilder.getInstance().getIncludeContextDefinitions();
+ List<IncludeContextDefinition> defs = getInstance().getIncludeContextDefinitions();
for (IncludeContextDefinition def : defs) {
String contextType = def.getContextType(contentType);
- if (contextType != null)
+ if (contextType != null) {
return contextType;
+ }
}
}
@@ -328,21 +301,19 @@
*/
public static boolean isCSSStyleSheetContainer(String uri, String tagName) {
boolean isHolder = false;
- if (uri != null) {
- List<IncludeContextDefinition> defs = IncludeContextBuilder.getInstance().getIncludeContextDefinitions();
-
- for (IncludeContextDefinition def : defs) {
- if (uri.equals(def.getUri())) {
- String[] defTags = def.getCSSTags();
- for (String tag : defTags) {
- if (tagName.equals(tag) || ("".equals(uri) && tagName.equalsIgnoreCase(tag))) { //$NON-NLS-1$
- isHolder = true;
- // Check that the tag have no attributes defined
- // If so - the tag itself is used to define the CSS
- // But if the tag has at least one attribute defined - it's not the holder
- String[] attrs = def.getCSSTagAttributes(tagName);
- isHolder ^= (attrs != null && attrs.length > 0);
- }
+ List<IncludeContextDefinition> defs = getInstance().getIncludeContextDefinitions();
+
+ for (IncludeContextDefinition def : defs) {
+ if (uri.equals(def.getUri())) {
+ String[] defTags = def.getCSSTags();
+ for (String tag : defTags) {
+ if (tagName.equals(tag) || (uri.length()==0 && tagName.equalsIgnoreCase(tag))) {
+ isHolder = true;
+ // Check that the tag have no attributes defined
+ // If so - the tag itself is used to define the CSS
+ // But if the tag has at least one attribute defined - it's not the holder
+ String[] attrs = def.getCSSTagAttributes(tagName);
+ isHolder ^= (attrs != null && attrs.length > 0);
}
}
}
@@ -359,21 +330,19 @@
*/
public static boolean isJSF2CSSStyleSheetContainer(String uri, String tagName) {
boolean isHolder = false;
- if (uri != null) {
- List<IncludeContextDefinition> defs = IncludeContextBuilder.getInstance().getIncludeContextDefinitions();
-
- for (IncludeContextDefinition def : defs) {
- if (uri.equals(def.getUri())) {
- String[] defTags = def.getJSF2CSSTags();
- for (String tag : defTags) {
- if (tagName.equals(tag) || ("".equals(uri) && tagName.equalsIgnoreCase(tag))) { //$NON-NLS-1$
- isHolder = true;
- // Check that the tag have no attributes defined
- // If so - the tag itself is used to define the CSS
- // But if the tag has at least one attribute defined - it's not the holder
- String[] attrs = def.getJSF2CSSTagAttributes(tagName);
- isHolder ^= (attrs != null && attrs.length > 0);
- }
+ List<IncludeContextDefinition> defs = getInstance().getIncludeContextDefinitions();
+
+ for (IncludeContextDefinition def : defs) {
+ if (uri.equals(def.getUri())) {
+ String[] defTags = def.getJSF2CSSTags();
+ for (String tag : defTags) {
+ if (tagName.equals(tag) || (uri.length()==0 && tagName.equalsIgnoreCase(tag))) {
+ isHolder = true;
+ // Check that the tag have no attributes defined
+ // If so - the tag itself is used to define the CSS
+ // But if the tag has at least one attribute defined - it's not the holder
+ String[] attrs = def.getJSF2CSSTagAttributes(tagName);
+ isHolder ^= (attrs != null && attrs.length > 0);
}
}
}
@@ -390,7 +359,7 @@
*/
public static String[] getCSSStyleSheetAttributes(String uri, String tagName) {
String[] result = EMPTY;
- List<IncludeContextDefinition> defs = IncludeContextBuilder.getInstance().getIncludeContextDefinitions();
+ List<IncludeContextDefinition> defs = getInstance().getIncludeContextDefinitions();
if(!defs.isEmpty()) {
List<String> attrs = new ArrayList<String>();
for (IncludeContextDefinition def : defs) {
@@ -418,7 +387,7 @@
public static String[] getJSF2CSSStyleSheetAttributes(String uri, String tagName) {
String[] result = EMPTY;
if (uri != null) {
- List<IncludeContextDefinition> defs = IncludeContextBuilder.getInstance().getIncludeContextDefinitions();
+ List<IncludeContextDefinition> defs = getInstance().getIncludeContextDefinitions();
List<String> attrs = new ArrayList<String>();
for (IncludeContextDefinition def : defs) {
if (uri.equals(def.getUri())) {
@@ -432,4 +401,4 @@
}
return result;
}
-}
+}
\ No newline at end of file
12 years, 8 months
JBoss Tools SVN: r34420 - trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-08-30 15:46:40 -0400 (Tue, 30 Aug 2011)
New Revision: 34420
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java
Log:
https://issues.jboss.org/browse/JBIDE-9155
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java 2011-08-30 19:32:07 UTC (rev 34419)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java 2011-08-30 19:46:40 UTC (rev 34420)
@@ -10,6 +10,8 @@
******************************************************************************/
package org.jboss.tools.cdi.seam.solder.core.generic;
+import org.jboss.tools.cdi.core.IBean;
+
/**
*
* Common interface for generic beans
@@ -17,6 +19,6 @@
* @author daniel
*
*/
-public interface IGenericBean {
+public interface IGenericBean extends IBean {
}
\ No newline at end of file
12 years, 8 months
JBoss Tools SVN: r34419 - in trunk/cdi/plugins: org.jboss.tools.cdi.seam.config.ui/META-INF and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2011-08-30 15:32:07 -0400 (Tue, 30 Aug 2011)
New Revision: 34419
Added:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/META-INF/MANIFEST.MF
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/plugin.xml
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/marker/CDIMarkerResolutionGeneratorExtension.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerField.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerMethod.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericClassBean.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/schema/quickFixExtension.exsd
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIQuickFixExtensionManager.java
Log:
Disabled quick fixes for case of generic beans
Quick fix for "Multiple beans are eligible for injection point" problem markers works wrong in case of working with generic beans. https://issues.jboss.org/browse/JBIDE-9115
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/META-INF/MANIFEST.MF 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/META-INF/MANIFEST.MF 2011-08-30 19:32:07 UTC (rev 34419)
@@ -21,6 +21,7 @@
org.jboss.tools.cdi.seam.solder.core,
org.jboss.tools.jst.web.kb,
org.jboss.tools.jst.web,
- org.eclipse.ui.ide;bundle-version="3.7.0"
+ org.eclipse.ui.ide;bundle-version="3.7.0",
+ org.jboss.tools.common.el.core
Bundle-Version: 1.2.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/plugin.xml
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/plugin.xml 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/plugin.xml 2011-08-30 19:32:07 UTC (rev 34419)
@@ -34,9 +34,9 @@
</extension>
<extension
point="org.jboss.tools.cdi.ui.quickFixExtension">
- <resolution_generator_extension
- generator-extension-class="org.jboss.tools.cdi.seam.config.ui.marker.CDIMarkerResolutionGeneratorExtension"
- id="org.jboss.tools.cdi.seam.config.ui.resolution_generator_extension">
- </resolution_generator_extension>
+ <resolution-generator
+ class="org.jboss.tools.cdi.seam.config.ui.marker.CDIMarkerResolutionGeneratorExtension"
+ id="org.jboss.tools.cdi.seam.config.ui.resolution-generator">
+ </resolution-generator>
</extension>
</plugin>
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/marker/CDIMarkerResolutionGeneratorExtension.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/marker/CDIMarkerResolutionGeneratorExtension.java 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.ui/src/org/jboss/tools/cdi/seam/config/ui/marker/CDIMarkerResolutionGeneratorExtension.java 2011-08-30 19:32:07 UTC (rev 34419)
@@ -16,24 +16,16 @@
import org.eclipse.ui.IMarkerResolution;
import org.jboss.tools.cdi.core.IBean;
import org.jboss.tools.cdi.internal.core.validation.CDIValidationErrorManager;
-import org.jboss.tools.cdi.seam.solder.core.generic.GenericBeanProducerField;
-import org.jboss.tools.cdi.seam.solder.core.generic.GenericBeanProducerMethod;
-import org.jboss.tools.cdi.seam.solder.core.generic.GenericClassBean;
+import org.jboss.tools.cdi.seam.solder.core.generic.IGenericBean;
import org.jboss.tools.cdi.ui.marker.ICDIMarkerResolutionGeneratorExtension;
public class CDIMarkerResolutionGeneratorExtension implements
ICDIMarkerResolutionGeneratorExtension {
- private boolean isBeanGeneric(IBean bean){
- return (bean instanceof GenericClassBean ||
- bean instanceof GenericBeanProducerField ||
- bean instanceof GenericBeanProducerMethod);
- }
-
@Override
public boolean shouldBeExtended(int id, IBean bean) {
return (id == CDIValidationErrorManager.AMBIGUOUS_INJECTION_POINTS_ID || id == CDIValidationErrorManager.UNSATISFIED_INJECTION_POINTS_ID) &&
- isBeanGeneric(bean);
+ bean instanceof IGenericBean;
}
@Override
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerField.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerField.java 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerField.java 2011-08-30 19:32:07 UTC (rev 34419)
@@ -20,7 +20,7 @@
* @author Viacheslav Kabanovich
*
*/
-public class GenericBeanProducerField extends ProducerField {
+public class GenericBeanProducerField extends ProducerField implements IGenericBean {
public GenericBeanProducerField() {}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerMethod.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerMethod.java 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericBeanProducerMethod.java 2011-08-30 19:32:07 UTC (rev 34419)
@@ -20,7 +20,7 @@
* @author Viacheslav Kabanovich
*
*/
-public class GenericBeanProducerMethod extends ProducerMethod {
+public class GenericBeanProducerMethod extends ProducerMethod implements IGenericBean {
public GenericBeanProducerMethod() {}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericClassBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericClassBean.java 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/GenericClassBean.java 2011-08-30 19:32:07 UTC (rev 34419)
@@ -27,7 +27,7 @@
* @author Viacheslav Kabanovich
*
*/
-public class GenericClassBean extends ClassBean {
+public class GenericClassBean extends ClassBean implements IGenericBean {
protected AbstractMemberDefinition genericProducerBean;
public GenericClassBean() {}
Added: trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java (rev 0)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java 2011-08-30 19:32:07 UTC (rev 34419)
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.seam.solder.core.generic;
+
+/**
+ *
+ * Common interface for generic beans
+ *
+ * @author daniel
+ *
+ */
+public interface IGenericBean {
+
+}
\ No newline at end of file
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/generic/IGenericBean.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/schema/quickFixExtension.exsd
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/schema/quickFixExtension.exsd 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/schema/quickFixExtension.exsd 2011-08-30 19:32:07 UTC (rev 34419)
@@ -18,7 +18,7 @@
</annotation>
<complexType>
<sequence>
- <element ref="resolution_generator_extension" minOccurs="1" maxOccurs="unbounded"/>
+ <element ref="resolution-generator" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
@@ -47,7 +47,7 @@
</complexType>
</element>
- <element name="resolution_generator_extension">
+ <element name="resolution-generator">
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
@@ -59,7 +59,7 @@
</appInfo>
</annotation>
</attribute>
- <attribute name="generator-extension-class" type="string" use="required">
+ <attribute name="class" type="string" use="required">
<annotation>
<documentation>
@@ -86,13 +86,13 @@
<meta.section type="examples"/>
</appInfo>
<documentation>
- <extension point="org.jboss.tools.cdi.ui.quickFixExtension">
- <resolution_generator_extension
- generator-extension-class = "org.jboss.tools.cdi.seam.config.ui.marker.CDIMarkerResolutionGeneratorExtension"
- id="org.jboss.tools.cdi.seam.config.ui.resolution_generator_extension">
- </resolution_generator_extension>
+ <extension
+ point="org.jboss.tools.cdi.ui.quickFixExtension">
+ <resolution-generator
+ class="org.jboss.tools.cdi.seam.config.ui.marker.CDIMarkerResolutionGeneratorExtension"
+ id="org.jboss.tools.cdi.seam.config.ui.resolution-generator">
+ </resolution-generator>
</extension>
-
</documentation>
</annotation>
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIQuickFixExtensionManager.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIQuickFixExtensionManager.java 2011-08-30 19:29:15 UTC (rev 34418)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIQuickFixExtensionManager.java 2011-08-30 19:32:07 UTC (rev 34419)
@@ -42,7 +42,7 @@
CDIQuickFixExtensionManager n = new CDIQuickFixExtensionManager();
n.id = e.getAttribute("id"); //$NON-NLS-1$
try{
- n.extension = (ICDIMarkerResolutionGeneratorExtension)e.createExecutableExtension("generator-extension-class"); //$NON-NLS-1$
+ n.extension = (ICDIMarkerResolutionGeneratorExtension)e.createExecutableExtension("class"); //$NON-NLS-1$
list.add(n.extension);
}catch(CoreException ex){
ELCorePlugin.getDefault().logError(ex);
12 years, 8 months
JBoss Tools SVN: r34418 - workspace/bbrodt/org.jboss.tools.bpel.runtimes.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2011-08-30 15:29:15 -0400 (Tue, 30 Aug 2011)
New Revision: 34418
Added:
workspace/bbrodt/org.jboss.tools.bpel.runtimes/.cvsignore
Removed:
workspace/bbrodt/org.jboss.tools.bpel.runtimes/bin/
Log:
ignore bin
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/.cvsignore
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/.cvsignore (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/.cvsignore 2011-08-30 19:29:15 UTC (rev 34418)
@@ -0,0 +1 @@
+bin
12 years, 8 months
JBoss Tools SVN: r34417 - in workspace/bbrodt/org.jboss.tools.bpel.runtimes: .settings and 18 other directories.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2011-08-30 15:26:54 -0400 (Tue, 30 Aug 2011)
New Revision: 34417
Added:
workspace/bbrodt/org.jboss.tools.bpel.runtimes/.classpath
workspace/bbrodt/org.jboss.tools.bpel.runtimes/.project
workspace/bbrodt/org.jboss.tools.bpel.runtimes/.settings/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/.settings/org.eclipse.jdt.core.prefs
workspace/bbrodt/org.jboss.tools.bpel.runtimes/META-INF/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/META-INF/MANIFEST.MF
workspace/bbrodt/org.jboss.tools.bpel.runtimes/bin/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/build.properties
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/ctool16/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/ctool16/new_bpelprj.gif
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/obj16/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/obj16/bpelfacet.gif
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/obj16/prj_bpel.gif
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/wizban/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/wizban/newprj_bpel_wiz_banner.gif
workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.properties
workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.xml
workspace/bbrodt/org.jboss.tools.bpel.runtimes/pom.xml
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IBPELModuleFacetConstants.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IRuntimesUIConstants.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/RuntimesPlugin.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetUninstallDelegate.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELFacetInstallDataModelProvider.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELVirtualComponent.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/JBT_BPELFacetInstallDataModelProvider.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployable.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactAdapterFactory.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactUtil.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleArtifact.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleDelegate.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/Messages.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/messages.properties
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleActionProvider.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleContentProvider.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleLabelProvider.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetInstallPage.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetProjectCreationDataModelProvider.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/Messages.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizard.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/messages.properties
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/utils/
workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/utils/BPELModelUtils.java
Log:
Modified to work with BPEL at eclipse.org
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/.classpath
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/.classpath (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/.classpath 2011-08-30 19:26:54 UTC (rev 34417)
@@ -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 exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/.project
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/.project (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/.project 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.bpel.runtimes</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>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+ </natures>
+</projectDescription>
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/.settings/org.eclipse.jdt.core.prefs 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,8 @@
+#Wed Mar 09 09:40:23 CST 2011
+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/bbrodt/org.jboss.tools.bpel.runtimes/META-INF/MANIFEST.MF
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/META-INF/MANIFEST.MF (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/META-INF/MANIFEST.MF 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,40 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.jboss.tools.bpel.runtimes;singleton:=true
+Bundle-Version: 0.5.0.qualifier
+Bundle-Activator: org.jboss.tools.bpel.runtimes.RuntimesPlugin
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.wst.server.core,
+ org.eclipse.wst.web.ui,
+ org.eclipse.wst.common.project.facet.ui,
+ org.eclipse.wst.common.modulecore,
+ org.eclipse.wst.common.frameworks,
+ org.eclipse.wst.common.project.facet.core,
+ org.eclipse.wst.common.frameworks.ui,
+ org.eclipse.jst.server.generic.core,
+ org.eclipse.jem.util,
+ org.eclipse.debug.ui,
+ org.eclipse.bpel.model,
+ org.eclipse.emf.ecore,
+ org.eclipse.wst.wsdl,
+ javax.wsdl,
+ org.eclipse.jst.common.frameworks,
+ org.jboss.ide.eclipse.as.wtp.core,
+ org.eclipse.wst.web,
+ org.jboss.ide.eclipse.as.core;resolution:=optional,
+ org.jboss.ide.eclipse.archives.webtools;resolution:=optional,
+ org.jboss.tools.jmx.core;resolution:=optional,
+ org.eclipse.wst.server.ui;resolution:=optional,
+ org.eclipse.ui.navigator
+Eclipse-LazyStart: true
+Export-Package: org.jboss.tools.bpel.runtimes,
+ org.jboss.tools.bpel.runtimes.facets,
+ org.jboss.tools.bpel.runtimes.module,
+ org.jboss.tools.bpel.runtimes.ui.wizards
+Bundle-ClassPath: .
+Bundle-Vendor: %providerName
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/build.properties
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/build.properties (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/build.properties 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.*,\
+ icons/
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/ctool16/new_bpelprj.gif
===================================================================
(Binary files differ)
Property changes on: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/ctool16/new_bpelprj.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/obj16/bpelfacet.gif
===================================================================
(Binary files differ)
Property changes on: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/obj16/bpelfacet.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/obj16/prj_bpel.gif
===================================================================
(Binary files differ)
Property changes on: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/obj16/prj_bpel.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/wizban/newprj_bpel_wiz_banner.gif
===================================================================
(Binary files differ)
Property changes on: workspace/bbrodt/org.jboss.tools.bpel.runtimes/icons/wizban/newprj_bpel_wiz_banner.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.properties
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.properties (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.properties 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,31 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# University College London - initial API and implementation
+# JBoss by Red Hat - subsequent contributions and maintenance
+###############################################################################
+pluginName = Eclipse BPEL Designer Runtimes
+providerName = JBoss by Red Hat
+
+OLD_MODULE_TYPE_NAME=JBoss BPEL 2.0 Process (SOA-P v5.1 and earlier)
+OLD_MODULE_TYPE_DESCRIPTION=Module representing a JBoss BPEL process for SOA-Platform version 5.1 and earlier.
+NEW_MODULE_TYPE_NAME=BPEL 2.0 Process
+NEW_MODULE_TYPE_DESCRIPTION=Module representing a BPEL process
+
+BPEL_CORE_FACET_LABEL=BPEL 2.0 Facet
+BPEL_CORE_FACET_DESCRIPTION=Enables modeling and deployment of BPEL processes.
+BPEL_FACET_CATEGORY_LABEL=BPEL 2.0
+BPEL_FACET_TEMPLATE_LABEL=BPEL 2.0 Project
+NEW_BPEL_CATEGORY=BPEL 2.0
+NEW_BPEL_PROJECT=BPEL Project (SOA-P v5.1 and earlier)
+NEW_BPEL_PROJECT_DESCRIPTION=Create a new BPEL project (SOA-P v5.1 and earlier).
+
+# This is provided for backward compatibility with the deprecated jbt.bpel.facet.core
+OLD_BPEL_CORE_FACET_LABEL=JBoss BPEL 2.0 Facet (SOA-P v5.1 and earlier)
+OLD_BPEL_CORE_FACET_DESCRIPTION=Enables modeling and deployment of BPEL processes to JBoss SOA-Platform version 5.1 and earlier.
+OLD_BPEL_FACET_TEMPLATE_LABEL=JBoss BPEL 2.0 Project (SOA-P v5.1 and earlier)
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.xml
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.xml (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/plugin.xml 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,415 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+
+<!--=========================================================================-->
+<!-- BPEL Designer Runtime Extension Point -->
+<!-- -->
+<!-- Copyright (c) 2006 University College London. -->
+<!-- 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 -->
+<!-- -->
+<!--=========================================================================-->
+
+<plugin>
+
+<!--=========================================================================-->
+<!-- New BPEL Project Wizard -->
+<!--=========================================================================-->
+
+ <extension
+ point="org.eclipse.ui.newWizards">
+ <wizard
+ name="%NEW_BPEL_PROJECT"
+ icon="icons/ctool16/new_bpelprj.gif"
+ category="org.eclipse.bpel.wizards"
+ project="true"
+ class="org.jboss.tools.bpel.runtimes.ui.wizards.NewBPELProjectWizard"
+ finalPerspective="org.eclipse.bpel.ui.perspective"
+ preferredPerspectives="org.eclipse.bpel.ui.perspective"
+ id="org.jboss.tools.bpel.runtimes.wizards.newBPELProject">
+ <description>%NEW_BPEL_PROJECT_DESCRIPTION</description>
+ </wizard>
+ </extension>
+ <!--
+ <extension point="org.eclipse.wst.common.project.facet.ui.wizardPages">
+ <wizard-pages action="bpel.facet.core.install">
+ <page class="org.jboss.tools.bpel.runtimes.ui.wizards.BPELFacetInstallPage"/>
+ </wizard-pages>
+ </extension>
+ -->
+
+
+<!--=========================================================================-->
+<!-- BPEL ModuleType -->
+<!--=========================================================================-->
+
+ <extension point="org.eclipse.wst.server.core.moduleTypes">
+ <moduleType
+ id="jbt.bpel.module"
+ name="%OLD_MODULE_TYPE_NAME"
+ description="%OLD_MODULE_TYPE_DESCRIPTION">
+ </moduleType>
+ </extension>
+
+<!-- The following is needed to make icons for deployable modules occur in -->
+<!-- the Add and Remove Projects wizard -->
+
+ <extension point="org.eclipse.wst.server.ui.serverImages">
+ <image
+ id="org.jboss.tools.bpel.runtimes.jbt.bpel.module"
+ typeIds="jbt.bpel.module,bpel.module"
+ icon="icons/obj16/bpelfacet.gif"/>
+ </extension>
+
+
+ <extension point="org.eclipse.wst.server.core.moduleTypes">
+ <moduleType
+ id="bpel.module"
+ name="%NEW_MODULE_TYPE_NAME"
+ description="%NEW_MODULE_TYPE_DESCRIPTION">
+ </moduleType>
+ </extension>
+
+<!-- The following is needed to make icons for deployable modules occur in -->
+<!-- the Add and Remove Projects wizard -->
+
+ <extension point="org.eclipse.wst.server.ui.serverImages">
+ <image
+ id="org.jboss.tools.bpel.runtimes.bpel.module"
+ typeIds="bpel.module"
+ icon="icons/obj16/bpelfacet.gif"/>
+ </extension>
+
+<!--=========================================================================-->
+<!-- BPEL Facet -->
+<!--=========================================================================-->
+
+ <!--
+ This facet is now the same as the one defined by the eclipse.org BPEL editor.
+ An uninstall action was added to allow the facet to be swapped out with the
+ deprecated jbt.bpel.facet.core facet, or to be removed altogether
+ -->
+ <extension point="org.eclipse.wst.common.project.facet.core.facets">
+
+ <project-facet id="bpel.facet.core">
+ <label>%BPEL_CORE_FACET_LABEL</label>
+ <description>%BPEL_CORE_FACET_DESCRIPTION</description>
+ </project-facet>
+
+ <project-facet-version facet="bpel.facet.core" version="2.0">
+ <group-member
+ id="modules">
+ </group-member>
+ <constraint>
+ <and>
+ <conflicts group="modules"/>
+ </and>
+ </constraint>
+ </project-facet-version>
+
+<!--
+ <action facet="bpel.facet.core" version="2.0" type="INSTALL" id="bpel.facet.core.install">
+ <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetInstallDelegate"/>
+ <config-factory class="org.jboss.tools.bpel.runtimes.facets.BPELFacetInstallDataModelProvider"/>
+ </action>
+
+ <action facet="bpel.facet.core" version="2.0" type="UNINSTALL" id="bpel.facet.core.uninstall">
+ <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetUninstallDelegate"/>
+ </action>
+-->
+
+ <category id="bpel.category">
+ <label>%BPEL_FACET_CATEGORY_LABEL</label>
+ <description>%BPEL_CORE_FACET_DESCRIPTION</description>
+ </category>
+
+ <template id="jbt.template.bpel.core">
+ <label>%BPEL_FACET_TEMPLATE_LABEL</label>
+ <fixed facet="bpel.facet.core"/>
+ </template>
+
+ </extension>
+
+ <!--
+ This facet is has been deprecated, but retained for backward compatibility
+ with JBoss 5.1.0 and SOA-P 5.1 and earlier
+ -->
+ <extension point="org.eclipse.wst.common.project.facet.core.facets">
+
+ <project-facet id="jbt.bpel.facet.core">
+ <label>%OLD_BPEL_CORE_FACET_LABEL</label>
+ <description>%OLD_BPEL_CORE_FACET_DESCRIPTION</description>
+ </project-facet>
+
+ <project-facet-version facet="jbt.bpel.facet.core" version="2.0">
+ <group-member
+ id="modules">
+ </group-member>
+ <constraint>
+ <and>
+ <conflicts group="modules"/>
+ </and>
+ </constraint>
+ </project-facet-version>
+
+ <category id="bpel.category">
+ <label>%OLD_BPEL_FACET_CATEGORY_LABEL</label>
+ <description>%OLD_BPEL_CORE_FACET_DESCRIPTION</description>
+ </category>
+
+ <action facet="jbt.bpel.facet.core" version="2.0" type="INSTALL" id="jbt.bpel.facet.core.install">
+ <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetInstallDelegate"/>
+ <config-factory class="org.jboss.tools.bpel.runtimes.facets.JBT_BPELFacetInstallDataModelProvider"/>
+ </action>
+
+ <action facet="jbt.bpel.facet.core" version="2.0" type="UNINSTALL" id="jbt.bpel.facet.core.uninstall">
+ <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetUninstallDelegate"/>
+ </action>
+
+ <template id="jbt.template.bpel.core">
+ <label>%OLD_BPEL_FACET_TEMPLATE_LABEL</label>
+ <fixed facet="jbt.bpel.facet.core"/>
+ </template>
+
+ </extension>
+
+<!--=========================================================================-->
+<!-- BPEL Virtual Component -->
+<!--=========================================================================-->
+
+ <extension
+ point="org.eclipse.wst.common.modulecore.componentimpl">
+ <componentimpl
+ typeID="bpel.facet.core"
+ class="org.jboss.tools.bpel.runtimes.facets.BPELVirtualComponent">
+ </componentimpl>
+ </extension>
+
+
+<!--=========================================================================-->
+<!-- BPEL Facet Image -->
+<!--=========================================================================-->
+
+ <extension point="org.eclipse.wst.common.project.facet.ui.images">
+ <image facet="bpel.facet.core" path="icons/obj16/bpelfacet.gif"/>
+ </extension>
+
+<!--=========================================================================-->
+<!-- BPEL Module Factory -->
+<!--=========================================================================-->
+
+ <extension
+ point="org.eclipse.wst.server.core.moduleFactories">
+ <moduleFactory
+ projects="true"
+ class="org.jboss.tools.bpel.runtimes.module.BPELModuleFactoryDelegate"
+ id="org.jboss.tools.bpel.runtimes.module.moduleFactory">
+ <moduleType
+ versions="1.1, 2.0"
+ types="jbt.bpel.module,bpel.module">
+ </moduleType>
+ </moduleFactory>
+ </extension>
+
+<!--=========================================================================-->
+<!-- BPEL Module ArtifactAdapters -->
+<!--=========================================================================-->
+
+ <extension point="org.eclipse.wst.server.core.moduleArtifactAdapters">
+ <moduleArtifactAdapter
+ id="org.jboss.tools.bpel.runtimes.module.artifactAdapter1"
+ class="org.jboss.tools.bpel.runtimes.module.BPELDeployableArtifactAdapterFactory">
+ <enablement>
+ <with variable="selection">
+ <adapt type="org.eclipse.core.resources.IProject"/>
+ </with>
+ </enablement>
+ </moduleArtifactAdapter>
+ <moduleArtifactAdapter
+ id="org.jboss.tools.bpel.runtimes.module.artifactAdapter2"
+ class="org.jboss.tools.bpel.runtimes.module.BPELDeployableArtifactAdapterFactory">
+ <enablement>
+ <with variable="selection">
+ <adapt type="org.eclipse.core.resources.IFile"/>
+ </with>
+ </enablement>
+ </moduleArtifactAdapter>
+ </extension>
+
+<!--=========================================================================-->
+<!-- BPEL Runtime Adapters -->
+<!--=========================================================================-->
+
+ <extension point="org.eclipse.core.runtime.adapters">
+ <factory
+ class="org.jboss.tools.bpel.runtimes.module.BPELDeployableArtifactAdapterFactory"
+ adaptableType="org.eclipse.core.resources.IProject">
+ <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
+ </factory>
+ <factory
+ class="org.jboss.tools.bpel.runtimes.module.BPELDeployableArtifactAdapterFactory"
+ adaptableType="org.eclipse.core.resources.IFile">
+ <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
+ </factory>
+ </extension>
+ <extension
+ point="org.jboss.ide.eclipse.as.core.publishers">
+ <publisher
+ class="org.jboss.tools.bpel.runtimes.module.JBTBPELPublisher"
+ priority="10"
+ zipDelegate="false">
+ </publisher>
+ </extension>
+
+<!--=========================================================================-->
+<!-- TO MAKE PROCESSES ACTUALLY LAUNCHABLE VIA RUN ON SERVER -->
+<!-- -->
+<!-- Implement org.eclipse.wst.server.core.clients in order to specify the -->
+<!-- the client app to be used for launching. -->
+<!-- -->
+<!-- Implement org.eclipse.wst.server.core.launchableAdapters. Might have to -->
+<!-- do this in server-specific way or maybe can resuse some generic server -->
+<!-- framework stuff or maybe can come up with some interface that would -->
+<!-- allow us to implement in runtimes plug-in. -->
+<!-- -->
+<!-- N.B. Launching here means launching a Web service. Hence, can do this -->
+<!-- via the corresponding WTP feature with no code at all from our end. -->
+<!-- -->
+<!-- -->
+<!-- -->
+<!--=========================================================================-->
+
+ <extension
+ point="org.eclipse.ui.navigator.navigatorContent">
+ <navigatorContent
+ id="org.jboss.tools.bpel.runtimes.ui.view.server.content"
+ activeByDefault="true"
+ contentProvider="org.jboss.tools.bpel.runtimes.ui.view.server.BPELModuleContentProvider"
+ icon="icons/obj16/bpelfacet.gif"
+ labelProvider="org.jboss.tools.bpel.runtimes.ui.view.server.BPELModuleLabelProvider"
+ name="BPEL Modules"
+ priority="highest">
+ <triggerPoints>
+ <instanceof
+ value="java.lang.Object">
+ </instanceof>
+ </triggerPoints>
+ <possibleChildren>
+ <instanceof
+ value="java.lang.Object">
+ </instanceof>
+ </possibleChildren>
+ <actionProvider
+ class="org.jboss.tools.bpel.runtimes.ui.view.server.BPELModuleActionProvider"
+ id="org.jboss.tools.bpel.runtimes.ui.view.server.BPELModuleActionProvider"
+ priority="highest">
+ <enablement>
+ <or>
+ <instanceof
+ value="org.eclipse.wst.server.core.IServer">
+ </instanceof>
+ <instanceof
+ value="org.eclipse.wst.server.ui.internal.view.servers.ModuleServer">
+ </instanceof>
+ <instanceof
+ value="org.eclipse.core.resources.IWorkspaceRoot">
+ </instanceof>
+ <adapt type="java.util.Collection">
+ <count value="0"/>
+ </adapt>
+ <instanceof
+ value="org.jboss.tools.bpel.runtimes.ui.view.server.BPELModuleContentProvider$BPELVersionDeployment">
+ </instanceof>
+ </or>
+ </enablement>
+ </actionProvider>
+ </navigatorContent>
+ </extension>
+ <extension
+ point="org.eclipse.ui.navigator.viewer">
+ <viewerContentBinding
+ viewerId="org.eclipse.wst.server.ui.ServersView">
+ <includes>
+ <contentExtension
+ isRoot="true"
+ pattern="org.jboss.tools.bpel.runtimes.ui.view.server.content">
+ </contentExtension>
+ </includes>
+ </viewerContentBinding>
+ </extension>
+
+
+
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.runtimes">
+ <runtime-component-type id="org.jboss.ide.eclipse.as.runtime.stripped.component"/>
+ <runtime-component-version
+ type="org.jboss.ide.eclipse.as.runtime.stripped.component"
+ version="1.0"/>
+ <supported>
+ <runtime-component
+ id="org.jboss.ide.eclipse.as.runtime.stripped.component"
+ version="1.0"/>
+ <facet id="bpel.facet.core" version="1.2,2.0"/>
+ </supported>
+ </extension>
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.runtimes">
+ <runtime-component-type id="org.jboss.ide.eclipse.eap.runtime.component"/>
+ <runtime-component-version
+ type="org.jboss.ide.eclipse.eap.runtime.component"
+ version="5.0"/>
+ <supported>
+ <runtime-component
+ id="org.jboss.ide.eclipse.eap.runtime.component"
+ version="5.0"/>
+ <facet id="bpel.facet.core" version="1.2,2.0"/>
+ </supported>
+ </extension>
+
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.runtimes">
+ <runtime-component-type id="org.jboss.ide.eclipse.as.runtime.component"/>
+ <runtime-component-version
+ type="org.jboss.ide.eclipse.as.runtime.component"
+ version="5.1"/>
+ <runtime-component-version
+ type="org.jboss.ide.eclipse.as.runtime.component"
+ version="6.0"/>
+ <runtime-component-version
+ type="org.jboss.ide.eclipse.as.runtime.component"
+ version="7.0"/>
+
+ <supported>
+ <runtime-component version="5.1"
+ id="org.jboss.ide.eclipse.as.runtime.component"/>
+ <facet id="bpel.facet.core" version="1.2,2.0"/>
+ </supported>
+
+ <supported>
+ <runtime-component version="5.1"
+ id="org.jboss.ide.eclipse.as.runtime.component"/>
+ <facet id="jbt.bpel.facet.core" version="1.2,2.0"/>
+ </supported>
+
+ <supported>
+ <runtime-component version="6.0"
+ id="org.jboss.ide.eclipse.as.runtime.component"/>
+ <facet id="bpel.facet.core" version="1.2,2.0"/>
+ </supported>
+
+ <supported>
+ <runtime-component version="7.0"
+ id="org.jboss.ide.eclipse.as.runtime.component"/>
+ <facet id="bpel.facet.core" version="1.2,2.0"/>
+ </supported>
+
+ </extension>
+
+
+
+</plugin>
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/pom.xml
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/pom.xml (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/pom.xml 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools.bpel</groupId>
+ <artifactId>plugins</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.bpel.plugins</groupId>
+ <artifactId>org.jboss.tools.bpel.runtimes</artifactId>
+ <version>0.5.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IBPELModuleFacetConstants.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IBPELModuleFacetConstants.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IBPELModuleFacetConstants.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes;
+
+/**
+ *
+ *
+ * @author Bruno Wassermann, written Jun 29, 2006
+ */
+public interface IBPELModuleFacetConstants {
+
+ public final static String BPEL_CONTENT_FOLDER = "BPELFacetInstallDataModelProvider.contentRoot";
+ public final static String BPEL_CONTENT_DEFAULT_FOLDER = "bpelContent";
+
+
+ // module types
+ public final static String BPEL_MODULE_TYPE = "jbt.bpel.module"; //$NON-NLS-1$
+
+ // module type versions
+ public final static String BPEL11_VERSION = "1.1"; // $NON-NLS-1$
+ public final static String BPEL20_VERSION = "2.0"; // $NON-NLS-1$
+
+ // facet template
+ public final static String BPEL20_FACET_TEMPLATE = "jbt.template.bpel.core"; //$NON-NLS-1$
+
+ // facet
+ // this facet has been deprecated
+ public final static String JBT_BPEL_PROJECT_FACET = "jbt.bpel.facet.core"; //$NON-NLS-1$
+ public final static String BPEL_PROJECT_FACET = "bpel.facet.core"; //$NON-NLS-1$
+
+ // bpel file extension
+ public final static String BPEL_FILE_EXTENSION = "bpel"; //$NON-NLS-1$
+ public final static String DOT_BPEL_FILE_EXTENSION = "." + BPEL_FILE_EXTENSION; //$NON-NLS-1$
+
+ // default content folder
+ public final static String BPEL_CONTENT = "bpelContent"; //$NON-NLS-1$
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IRuntimesUIConstants.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IRuntimesUIConstants.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/IRuntimesUIConstants.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes;
+
+/**
+ * A bunch of constants for use by the UI elements of the runtimes plug-in.
+ *
+ * @author Bruno Wassermann, written Jun 30, 2006
+ */
+public interface IRuntimesUIConstants {
+
+ /*
+ * Icons
+ */
+
+ // Icons path
+ public final String ICON_PATH = "icons/"; //$NON-NLS-1$
+
+ // Wizard banner
+ public final String ICON_NEWPRJ_WIZARD_BANNER = "wizban/newprj_bpel_wiz_banner.gif"; //$NON-NLS-1$
+
+ // Facet icons
+ public final String ICON_BPEL_FACET = "obj/bpelfacet.gif"; //$NON-NLS-1$
+
+ // Workbench icons
+ public final String ICON_BPEL_PRJ = "obj16/prj_bpel.gif"; //$NON-NLS-1$
+
+ // New icons
+ public final String ICON_BPEL_NEW_PRJ = "ctool16/new_bpelprj.gif"; //$NON-NLS-1$
+
+ /*
+ * End of icons
+ */
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/RuntimesPlugin.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/RuntimesPlugin.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/RuntimesPlugin.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,141 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class RuntimesPlugin extends AbstractUIPlugin {
+
+ public static final String PLUGIN_ID = "org.jboss.tools.bpel.runtimes"; //$NON-NLS-1$
+
+ //The shared instance.
+ private static RuntimesPlugin plugin;
+
+ private boolean imagesInitialized = false;
+
+ /**
+ * The constructor.
+ */
+ public RuntimesPlugin() {
+ super();
+ plugin = this;
+ }
+
+ /**
+ * This method is called upon plug-in activation
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /**
+ * This method is called when the plug-in is stopped
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+ plugin = null;
+ }
+
+ /**
+ * Returns the shared instance.
+ *
+ * @return the shared instance.
+ */
+ public static RuntimesPlugin getPlugin() {
+ return plugin;
+ }
+
+ @Override
+ public ImageRegistry getImageRegistry() {
+ ImageRegistry result = super.getImageRegistry();
+ initialize();
+ return result;
+ }
+
+ /**
+ * Returns the image descriptor for the given image ID.
+ * Returns null if there is no such image.
+ */
+ public ImageDescriptor getImageDescriptor(String id) {
+ return getImageRegistry().getDescriptor(id);
+ }
+
+ public Image getImage(String id) {
+ return getImageRegistry().get(id);
+ }
+
+ /**
+ * Creates an image descriptor and places it in the image registry.
+ */
+ private void createImageDescriptor(String id, URL baseURL) {
+ URL url = null;
+ try {
+ url = new URL(baseURL, IRuntimesUIConstants.ICON_PATH + id);
+ } catch (MalformedURLException e) {
+ RuntimesPlugin.log(e);
+ }
+ ImageDescriptor desc = ImageDescriptor.createFromURL(url);
+ getImageRegistry().put(id, desc);
+ }
+
+ protected void initialize() {
+ if (!imagesInitialized) {
+ imagesInitialized = true;
+ initializeImages();
+ }
+ }
+
+ /**
+ * Initializes the table of images used in this plugin.
+ */
+ private void initializeImages() {
+ URL baseURL = getBundle().getEntry("/"); //$NON-NLS-1$
+
+ // TODO make sure you initialize all required icons here
+ createImageDescriptor(IRuntimesUIConstants.ICON_NEWPRJ_WIZARD_BANNER, baseURL);
+ createImageDescriptor(IRuntimesUIConstants.ICON_BPEL_NEW_PRJ, baseURL);
+ createImageDescriptor(IRuntimesUIConstants.ICON_BPEL_PRJ, baseURL);
+ }
+
+ /**
+ * Utility methods for logging exceptions.
+ */
+ public static void log(Exception e, int severity) {
+ IStatus status = null;
+ if (e instanceof CoreException) {
+ status = ((CoreException)e).getStatus();
+ } else {
+ String m = e.getMessage();
+ status = new Status(severity, PLUGIN_ID, 0, m==null? "<no message>" : m, e); //$NON-NLS-1$
+ }
+ System.out.println(e.getClass().getName()+": "+status); //$NON-NLS-1$
+ RuntimesPlugin.getPlugin().getLog().log(status);
+ }
+
+ public static void log(Exception e) {
+ log(e, IStatus.ERROR);
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,137 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.facets;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.core.resources.ICommand;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.jst.common.project.facet.WtpUtils;
+import org.eclipse.wst.common.componentcore.internal.util.IComponentImplFactory;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IDelegate;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.jboss.ide.eclipse.as.wtp.core.util.VCFUtil;
+import org.jboss.ide.eclipse.as.wtp.core.vcf.OutputFoldersVirtualComponent;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+
+/**
+ * BPEL Facet implementation of <code>IDelegate</code>.
+ * <p>
+ * Note: Must not call IFacetedProject.modify() to install facet as this is a
+ * prohibited operation from a delegate and will throw
+ * <code>CoreException</code>.
+ *
+ * @author Bruno Wassermann, written Jun 7, 2006
+ */
+public class BPELCoreFacetInstallDelegate implements IDelegate {
+
+ /**
+ * At the moment, there does not appear to be any opportunity to do some
+ * common setup of stuff here (e.g., set up a WEB-INF folder, etc.). Maybe
+ * some common requirements will become apparent at some later stage.
+ */
+
+ /**
+ * (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)
+ */
+ @SuppressWarnings("nls")
+ public void execute(IProject proj, IProjectFacetVersion ver, Object obj,
+ IProgressMonitor progMon) throws CoreException {
+
+ progMon.beginTask("Configuring ...", 300); //$NON-NLS-1$
+ IDataModel model = (IDataModel)obj;
+ String contentRoot = (String)model.getProperty(IBPELModuleFacetConstants.BPEL_CONTENT_FOLDER);
+ contentRoot = (contentRoot == null || "".equals(contentRoot)) ? IBPELModuleFacetConstants.BPEL_CONTENT_DEFAULT_FOLDER : contentRoot;
+
+ // add natures
+ WtpUtils.addNatures(proj);
+
+ // Create the content folder if it doesn't already exist
+ // https://issues.jboss.org/browse/JBIDE-8508
+ IFolder bpelContent = proj.getFolder(contentRoot);
+ if (!bpelContent.exists())
+ bpelContent.create(true,true, null);
+
+ // create the virtual component
+ IComponentImplFactory factory = new BPELVirtualComponent();
+ IVirtualComponent newComponent = factory.createComponent(proj);
+ newComponent.create(0, null);
+ progMon.worked(100);
+
+ // Add the resource mapping to bpelContent
+ newComponent.getRootFolder().createLink(new Path("/" + contentRoot), 0, null);
+ progMon.worked(100);
+ // Add builder
+ addBuilder(proj, new SubProgressMonitor(progMon, 100));
+ progMon.done();
+ }
+
+ protected void addBuilder(IProject proj, IProgressMonitor monitor) throws CoreException {
+ // Add the builder to the project description
+ IProjectDescription description = proj.getDescription();
+
+ // Our builder name
+ String builderName = "org.eclipse.bpel.validator.builder"; //$NON-NLS-1$
+
+ // Install the builder (validator)
+
+ ICommand buildCommand = description.newCommand();
+
+ // We only support 1 argument now, its "debug"
+ Map<String, String> args = new HashMap<String, String>();
+ args.put("debug", "false");
+ buildCommand.setArguments(args);
+
+ buildCommand.setBuilderName(builderName);
+
+ ICommand[] commands = description.getBuildSpec();
+
+ if (commands == null) {
+ description.setBuildSpec(new ICommand[] { buildCommand });
+ proj.setDescription(description, IResource.KEEP_HISTORY, monitor);
+
+ } else {
+
+ boolean bFound = false;
+ for (ICommand c : commands) {
+ if (builderName.equals(c.getBuilderName())) {
+ bFound = true;
+ break;
+ }
+ }
+
+ // not found
+ if (bFound == false) {
+ int i = commands.length;
+ ICommand[] newCommands = new ICommand[i + 1];
+ System.arraycopy(commands, 0, newCommands, 0, i);
+ newCommands[i] = buildCommand;
+ description.setBuildSpec(newCommands);
+ proj.setDescription(description, IResource.KEEP_HISTORY, monitor);
+ }
+ }
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetUninstallDelegate.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetUninstallDelegate.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetUninstallDelegate.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,22 @@
+package org.jboss.tools.bpel.runtimes.facets;
+
+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.WtpUtils;
+import org.eclipse.wst.common.project.facet.core.IDelegate;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+
+/*
+ * Added to support deprecated jbt.bpel.facet.core
+ * https://issues.jboss.org/browse/JBIDE-8533
+ */
+public class BPELCoreFacetUninstallDelegate implements IDelegate {
+
+ @Override
+ public void execute(IProject project, IProjectFacetVersion fv, Object config, IProgressMonitor monitor)
+ throws CoreException {
+ WtpUtils.removeNatures(project);
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELFacetInstallDataModelProvider.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELFacetInstallDataModelProvider.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELFacetInstallDataModelProvider.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,29 @@
+package org.jboss.tools.bpel.runtimes.facets;
+
+import java.util.Set;
+
+import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
+import org.eclipse.wst.common.project.facet.core.IActionConfigFactory;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+
+public class BPELFacetInstallDataModelProvider extends
+ FacetInstallDataModelProvider implements IActionConfigFactory, IFacetDataModelProperties, IBPELModuleFacetConstants {
+
+ @Override
+ public Set getPropertyNames() {
+ Set names = super.getPropertyNames();
+ names.add(FACET_PROJECT_NAME);
+ names.add(FACET_ID);
+ names.add(BPEL_CONTENT_FOLDER);
+ return names;
+ }
+
+ @Override
+ public Object getDefaultProperty(String propertyName) {
+ if (propertyName.equals(FACET_ID)) {
+ return IBPELModuleFacetConstants.BPEL_PROJECT_FACET;
+ }
+ return super.getDefaultProperty(propertyName);
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELVirtualComponent.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELVirtualComponent.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELVirtualComponent.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,7 @@
+package org.jboss.tools.bpel.runtimes.facets;
+
+import org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent;
+
+public class BPELVirtualComponent extends JBTVirtualComponent {
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/JBT_BPELFacetInstallDataModelProvider.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/JBT_BPELFacetInstallDataModelProvider.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/JBT_BPELFacetInstallDataModelProvider.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,34 @@
+package org.jboss.tools.bpel.runtimes.facets;
+
+import java.util.Set;
+
+import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
+import org.eclipse.wst.common.project.facet.core.IActionConfigFactory;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+
+/*
+ * Added to support deprecated jbt.bpel.facet.core
+ * https://issues.jboss.org/browse/JBIDE-8533
+ */
+public class JBT_BPELFacetInstallDataModelProvider extends
+ FacetInstallDataModelProvider implements IActionConfigFactory, IFacetDataModelProperties, IBPELModuleFacetConstants {
+
+ @Override
+ public Set getPropertyNames() {
+ Set names = super.getPropertyNames();
+ names.add(FACET_PROJECT_NAME);
+ names.add(FACET_ID);
+ names.add(BPEL_CONTENT_FOLDER);
+ return names;
+ }
+
+ @Override
+ public Object getDefaultProperty(String propertyName) {
+ if (propertyName.equals(FACET_ID)) {
+ return IBPELModuleFacetConstants.JBT_BPEL_PROJECT_FACET;
+ }
+ return super.getDefaultProperty(propertyName);
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployable.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployable.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployable.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,37 @@
+package org.jboss.tools.bpel.runtimes.module;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.wst.common.componentcore.internal.flat.IFlattenParticipant;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.web.internal.deployables.FlatComponentDeployable;
+
+public class BPELDeployable extends FlatComponentDeployable {
+
+ public BPELDeployable(IProject project) {
+ super(project);
+ }
+
+ public BPELDeployable(IProject project, IVirtualComponent aComponent) {
+ super(project, aComponent);
+ }
+
+ @Override
+ public boolean shouldCache() {
+ return true;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.bpel.runtimes.module.FlatComponentDeployable#getParticipants()
+ */
+ protected IFlattenParticipant[] getParticipants() {
+ /*
+ * No work really needs to be done here. The BPEL project
+ * doesn't need to map source in instead, it doesn't need to
+ * update a manifest file, it doesn't need to add in classpath dependencies, etc etc
+ *
+ * Just standard traversals as of now.
+ */
+ return super.getParticipants();
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactAdapterFactory.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactAdapterFactory.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactAdapterFactory.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.module;
+
+import org.eclipse.core.runtime.IAdapterFactory;
+import org.eclipse.debug.ui.actions.ILaunchable;
+import org.eclipse.wst.server.core.IModuleArtifact;
+import org.eclipse.wst.server.core.model.ModuleArtifactAdapterDelegate;
+
+/**
+ * Preliminary implementation of <code>ModuleArtifactAdapterDelegate</code>
+ * and <code>I</code>for BPEL modules.
+ *
+ * @author Bruno Wassermann, written Aug 14, 2006
+ */
+public class BPELDeployableArtifactAdapterFactory extends
+ ModuleArtifactAdapterDelegate implements IAdapterFactory
+{
+
+ /**
+ *
+ */
+ public BPELDeployableArtifactAdapterFactory() {
+ super();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.server.core.model.ModuleArtifactAdapterDelegate#getModuleArtifact(java.lang.Object)
+ */
+ @Override
+ public IModuleArtifact getModuleArtifact(Object obj) {
+ return null; // TODO FIX THIS
+ //return BPELDeployableArtifactUtil.getModuleObject(obj);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
+ */
+ public Object getAdapter(Object adaptableObject, Class adapterType) {
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
+ */
+ public Class[] getAdapterList() {
+
+ // TODO replace ILaunchable with interface of BPEL module artifacts once available
+ return new Class[]{ILaunchable.class};
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactUtil.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactUtil.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELDeployableArtifactUtil.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,111 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.module;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jem.util.logger.proxy.Logger;
+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.IModuleArtifact;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+
+/**
+ * Utility to adapt an object (in this case an <code>IProject</code< or an
+ * <code>IFile</code>) toa <code>BPELModuleArtifact</code>.
+ *
+ * @author Bruno Wassermann, written Aug 14, 2006
+ */
+public class BPELDeployableArtifactUtil {
+
+ public BPELDeployableArtifactUtil() {
+ super();
+ }
+
+ /**
+ * Adapt an object to an <code>IModuleArtifact</code>
+ *
+ * @param obj
+ * @return <code>IModuleArtifact</code>
+ */
+ public static IModuleArtifact getModuleObject(Object obj) {
+ if (obj instanceof IProject) {
+ return getModuleObject((IProject) obj);
+ }
+
+ if (obj instanceof IFile) {
+ return getModuleObject((IFile) obj);
+ }
+
+ return null;
+ }
+
+ protected static IModuleArtifact getModuleObject(IProject project) {
+ return null;
+ }
+
+ protected static IModuleArtifact getModuleObject(IFile file) {
+ // TODO implement; last impl was totally wrong
+// BPELModuleDelegate moduleDelegate = new BPELModuleDelegate(file.getProject(), file);
+// IStatus fileStatus = moduleDelegate.validate();
+//
+// if (IStatus.OK != fileStatus.getCode()) return null; // not a valid BPEL file
+//
+// IModule[] modules = ServerUtil.getModules(IBPELModuleFacetConstants.BPEL_MODULE_TYPE);
+//
+// for (int i=0; i<modules.length; i++) {
+//
+// if (modules[i].getProject().equals(file.getProject())
+// && modules[i].getName().equals(file.getName()))
+// {
+// return new BPELModuleArtifact(modules[i], file);
+// }
+// }
+ return null;
+ }
+
+ /*
+ * TODO in case fixed BPEL facet is not set anymore, may be able to set
+ * the facet programmatically as a fix for the time being
+ *
+ * TODO figure out new plugin.xml syntax for fixed facet from dynamic web
+ * project
+ *
+ * TODO this is a duplicate method (BPELModuleFactory.getVersion()).
+ * Replace this with a utility method somewhere.
+ */
+ private static String getVersion(IProject project) {
+ IFacetedProject facetedProject = null;
+ try {
+ facetedProject = ProjectFacetsManager.create(project);
+ if (facetedProject != null
+ && ProjectFacetsManager.isProjectFacetDefined(IBPELModuleFacetConstants.BPEL_PROJECT_FACET))
+ {
+ IProjectFacet projectFacet = ProjectFacetsManager.getProjectFacet(IBPELModuleFacetConstants.BPEL_PROJECT_FACET);
+
+ return facetedProject.getInstalledVersion(projectFacet).getVersionString();
+ }
+ // https://issues.jboss.org/browse/JBIDE-8533
+ // Added to support deprecated jbt.bpel.facet.core
+ if (facetedProject != null
+ && ProjectFacetsManager.isProjectFacetDefined(IBPELModuleFacetConstants.JBT_BPEL_PROJECT_FACET))
+ {
+ IProjectFacet projectFacet = ProjectFacetsManager.getProjectFacet(IBPELModuleFacetConstants.JBT_BPEL_PROJECT_FACET);
+
+ return facetedProject.getInstalledVersion(projectFacet).getVersionString();
+ }
+ } catch (Exception e) {
+ Logger.getLogger().write(e);
+ }
+ return IBPELModuleFacetConstants.BPEL20_VERSION;
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleArtifact.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleArtifact.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleArtifact.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.module;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IModuleArtifact;
+
+/**
+ * Representing a simple BPEL module as an <code>IModuleArtifact</code>. Not
+ * sure at this stage what is needed to actually launch deployed BPEL process,
+ * so this implementation is going to change considerably in the near future.
+ *
+ * @author Bruno Wassermann, written Aug 14, 2006
+ */
+public class BPELModuleArtifact implements IModuleArtifact {
+
+ private IModule module;
+ private IFile file;
+
+ /**
+ * Constructor accepting module and corresponding bpel file.
+ *
+ * @param module <code>IModule</code>
+ * @param file <code>IFile</code> the corresponding bpel file
+ */
+ public BPELModuleArtifact(IModule module, IFile file) {
+ super();
+ this.module = module;
+ this.file = file;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.server.core.IModuleArtifact#getModule()
+ */
+ public IModule getModule() {
+ return module;
+ }
+
+ public IFile getFile() {
+ return file;
+ }
+
+ /**
+ * @see Object#toString()
+ */
+ @Override
+ public String toString() {
+ return "BPELModuleArtifact [module=" + module + "]";
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleDelegate.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleDelegate.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleDelegate.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.bpel.runtimes.module;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.internal.resources.Folder;
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceVisitor;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.model.IModuleFile;
+import org.eclipse.wst.server.core.model.IModuleFolder;
+import org.eclipse.wst.server.core.model.IModuleResource;
+import org.eclipse.wst.server.core.model.ModuleDelegate;
+import org.eclipse.wst.server.core.util.ModuleFile;
+import org.eclipse.wst.server.core.util.ModuleFolder;
+import org.eclipse.wst.server.core.util.ProjectModule;
+import org.jboss.ide.eclipse.as.wtp.core.modules.JBTProjectModuleDelegate;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+import org.jboss.tools.bpel.runtimes.RuntimesPlugin;
+
+public class BPELModuleDelegate extends JBTProjectModuleDelegate {
+
+ public BPELModuleDelegate(IProject project) {
+ super(project);
+ }
+
+ @Override
+ protected String getFactoryId() {
+ return BPELModuleFactoryDelegate.FACTORY_ID;
+ }
+
+ public IModule[] getModules() {
+ return new IModule[]{};
+ }
+
+ public boolean isBinary() {
+ return false;
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,176 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.bpel.runtimes.module;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResourceChangeEvent;
+import org.eclipse.core.resources.IResourceChangeListener;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.internal.StructureEdit;
+import org.eclipse.wst.common.componentcore.internal.util.FacetedProjectUtilities;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.internal.ModuleFactory;
+import org.eclipse.wst.server.core.internal.ServerPlugin;
+import org.eclipse.wst.server.core.model.ModuleDelegate;
+import org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate;
+import org.eclipse.wst.web.internal.deployables.FlatComponentDeployable;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+
+public class BPELModuleFactoryDelegate extends ProjectModuleFactoryDelegate implements IResourceChangeListener {
+ protected Map <IModule, FlatComponentDeployable> moduleDelegates = new HashMap<IModule, FlatComponentDeployable>(5);
+
+ public static final String FACTORY_ID = "org.jboss.tools.bpel.runtimes.module.moduleFactory";
+ public static final String MODULE_TYPE = IBPELModuleFacetConstants.BPEL_MODULE_TYPE;
+ public static BPELModuleFactoryDelegate FACTORY;
+ public static BPELModuleFactoryDelegate factoryInstance() {
+ if( FACTORY == null ) {
+ ensureFactoryLoaded(FACTORY_ID);
+ }
+ return FACTORY;
+ }
+ public static void ensureFactoryLoaded(String factoryId) {
+ ModuleFactory[] factories = ServerPlugin.getModuleFactories();
+ for( int i = 0; i < factories.length; i++ ) {
+ if( factories[i].getId().equals(factoryId)) {
+ factories[i].getDelegate(new NullProgressMonitor());
+ }
+ }
+ }
+
+ public BPELModuleFactoryDelegate() {
+ super();
+ }
+ @Override
+ public void initialize() {
+ super.initialize();
+ if( getId().equals(FACTORY))
+ FACTORY = this;
+ ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
+ }
+
+ @Override
+ protected IModule[] createModules(IProject project) {
+ IVirtualComponent component = ComponentCore.createComponent(project);
+ if(component != null)
+ return createModuleDelegates(component);
+ return null;
+ }
+
+
+ @Override
+ public ModuleDelegate getModuleDelegate(IModule module) {
+ if (module == null)
+ return null;
+
+ ModuleDelegate md = moduleDelegates.get(module);
+// if( md == null && ((Module)module).getInternalId().startsWith(BINARY_PREFIX))
+// return createDelegate(module);
+
+ if (md == null) {
+ createModules(module.getProject());
+ md = moduleDelegates.get(module);
+ }
+ return md;
+ }
+
+ protected boolean canHandleProject(IProject p) {
+ // https://issues.jboss.org/browse/JBIDE-8533
+ // Added support for deprecated jbt.bpel.facet.core
+ return //FacetedProjectUtilities.isProjectOfType(p, IBPELModuleFacetConstants.BPEL_PROJECT_FACET) ||
+ FacetedProjectUtilities.isProjectOfType(p, IBPELModuleFacetConstants.JBT_BPEL_PROJECT_FACET);
+ }
+
+ protected IModule[] createModuleDelegates(IVirtualComponent component) {
+ if(component == null){
+ return null;
+ }
+
+ List<IModule> projectModules = new ArrayList<IModule>();
+ try {
+ if (canHandleProject(component.getProject())) {
+ String type = IBPELModuleFacetConstants.BPEL_MODULE_TYPE;
+ String version = IBPELModuleFacetConstants.BPEL20_VERSION;
+ IModule module = createModule(component.getName(), component.getName(), type, version, component.getProject());
+ FlatComponentDeployable moduleDelegate = createModuleDelegate(component.getProject(), component);
+ moduleDelegates.put(module, moduleDelegate);
+ projectModules.add(module);
+ } else {
+ return null;
+ }
+ } catch (Exception e) {
+// e.printStackTrace();
+// J2EEPlugin.logError(e);
+ }
+ return projectModules.toArray(new IModule[projectModules.size()]);
+ }
+
+ protected FlatComponentDeployable createModuleDelegate(IProject project, IVirtualComponent component) {
+ return new BPELDeployable(project, component);
+ }
+
+ /**
+ * Returns the list of resources that the module should listen to for state
+ * changes. The paths should be project relative paths. Subclasses can
+ * override this method to provide the paths.
+ *
+ * @return a possibly empty array of paths
+ */
+ @Override
+ protected IPath[] getListenerPaths() {
+ return new IPath[] { new Path(".project"), // nature //$NON-NLS-1$
+ new Path(StructureEdit.MODULE_META_FILE_NAME), // component
+ new Path(".settings/org.eclipse.wst.common.project.facet.core.xml") // facets //$NON-NLS-1$
+ };
+ }
+
+ @Override
+ protected void clearCache(IProject project) {
+ super.clearCache(project);
+ List<IModule> modulesToRemove = null;
+ for (Iterator<IModule> iterator = moduleDelegates.keySet().iterator(); iterator.hasNext();) {
+ IModule module = iterator.next();
+ if (module.getProject().equals(project)) {
+ if (modulesToRemove == null) {
+ modulesToRemove = new ArrayList<IModule>();
+ }
+ modulesToRemove.add(module);
+ }
+ }
+ if (modulesToRemove != null) {
+ for (IModule module : modulesToRemove) {
+ moduleDelegates.remove(module);
+ }
+ }
+ }
+
+ public void resourceChanged(IResourceChangeEvent event) {
+ cleanAllDelegates();
+ }
+
+ protected void cleanAllDelegates() {
+ Iterator<FlatComponentDeployable> i = moduleDelegates.values().iterator();
+ while(i.hasNext()) {
+ i.next().clearCache();
+ }
+ modulesChanged();
+ }
+}
\ No newline at end of file
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,351 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.bpel.runtimes.module;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Iterator;
+
+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.IStatus;
+import org.eclipse.core.runtime.MultiStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.model.IModuleResource;
+import org.eclipse.wst.server.core.model.IModuleResourceDelta;
+import org.jboss.ide.eclipse.archives.webtools.modules.LocalZippedPublisherUtil;
+import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
+import org.jboss.ide.eclipse.as.core.extensions.events.IEventCodes;
+import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
+import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
+import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethod;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher;
+import org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil;
+import org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil.LocalCopyCallback;
+import org.jboss.ide.eclipse.as.core.util.FileUtil;
+import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
+import org.jboss.ide.eclipse.as.core.util.IWTPConstants;
+import org.jboss.ide.eclipse.as.core.util.ServerConverter;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+import org.jboss.tools.jmx.core.IMemento;
+import org.jboss.tools.jmx.core.util.XMLMemento;
+
+/**
+ * This class allows you to publish a BPEL module specifically
+ * to a JBossTools server entity.
+ * @author rob.stryker(a)jboss.com
+ *
+ */
+public class JBTBPELPublisher implements IJBossServerPublisher {
+ private IServer server;
+ private int publishState = IServer.PUBLISH_STATE_INCREMENTAL;
+ public JBTBPELPublisher() {
+ }
+
+ public int getPublishState() {
+ return publishState;
+ }
+
+ public boolean accepts(String method, IServer server, IModule[] module) {
+ if( LocalPublishMethod.LOCAL_PUBLISH_METHOD.equals(method)
+ && module != null && module.length > 0
+ && module[module.length-1] != null
+ && (
+ module[module.length-1].getModuleType().getId().equals(IBPELModuleFacetConstants.BPEL_MODULE_TYPE) ||
+ module[module.length-1].getModuleType().getId().equals("bpel.module"))
+ )
+ return true;
+ return false;
+ }
+
+ public IStatus publishModule(
+ IJBossServerPublishMethod method,
+ IServer server, IModule[] module,
+ int publishType, IModuleResourceDelta[] delta,
+ IProgressMonitor monitor) throws CoreException {
+
+ this.server = server;
+ IModule last = module[module.length-1];
+ IStatus status = null;
+ if(publishType == REMOVE_PUBLISH){
+ // https://jira.jboss.org/browse/JBIDE-7620
+ if (last.getProject()!=null)
+ removeAll(server, last.getProject());
+ } else if( publishType == FULL_PUBLISH ){
+ // Publish a new version forced
+ status = publish(module, delta, publishType, monitor);
+ publishState = IServer.PUBLISH_STATE_NONE;
+ } else if( publishType == INCREMENTAL_PUBLISH ) {
+ // Do nothing. This is intentional
+ publishState = IServer.PUBLISH_STATE_INCREMENTAL;
+ }
+ // https://issues.jboss.org/browse/JBDS-1573
+ // hack: display a warning dialog.
+ // Deployment validation should really be handled as a WizardFragment invoked from
+ // org.eclipse.wst.server.ui.internal.wizard.ModifyModulesWizard
+ // but there is no WizardFragment extension point for this class...
+ //
+ if (status!=null && !status.isOK()) {
+ final IStatus s = status;
+ Display.getDefault().syncExec(new Runnable() {
+ public void run() {
+ MessageDialog.openWarning(Display.getDefault()
+ .getActiveShell(), Messages.DeployError, s
+ .getMessage());
+ }
+ });
+ }
+ return status == null ? Status.OK_STATUS : status;
+ }
+
+
+ protected IStatus publish(IModule[] moduleTree,
+ IModuleResourceDelta[] delta, int publishType, IProgressMonitor monitor) throws CoreException {
+ ArrayList<IStatus> resultList = new ArrayList<IStatus>();
+ IDeployableServer ds = ServerConverter.getDeployableServer(server);
+ IModule last = moduleTree[moduleTree.length -1];
+ IPath deployPath = getDeployPath(moduleTree, ds);
+ IPath tempDeployPath = PublishUtil.getTempDeployFolder(moduleTree, ds);
+ IModuleResource[] members = PublishUtil.getResources(last);
+ // https://issues.jboss.org/browse/JBDS-1573
+ // make sure the project has a deploy.xml (bpel-deploy.xml for backward compatibility).
+ boolean hasDeployXML = false;
+ for (int i=0; i<members.length; ++i) {
+ IModuleResource res = members[i];
+ String name = res.getName();
+ if ("deploy.xml".equals(name) || "bpel-deploy.xml".equals(name)) {
+ hasDeployXML = true;
+ break;
+ }
+ }
+ if (!hasDeployXML) {
+ Status ms = new Status(IStatus.ERROR,JBossServerCorePlugin.PLUGIN_ID, IEventCodes.JST_PUB_FULL_FAIL,
+ NLS.bind(Messages.MissingDeployXML, last.getName()), null);
+ return ms;
+ }
+ if( shouldZip() ) {
+ String deployRoot = PublishUtil.getDeployRootFolder(
+ moduleTree, ds, ds.getDeployFolder(),
+ IJBossToolingConstants.LOCAL_DEPLOYMENT_LOC);
+ BPELZippedPublisherUtil util = new BPELZippedPublisherUtil(deployPath);
+ IStatus ret = util.publishModule(server, deployRoot, moduleTree, publishType, delta, monitor);
+ resultList.add(ret);
+ } else {
+ LocalCopyCallback handler = new LocalCopyCallback(server, deployPath, tempDeployPath);
+ PublishCopyUtil util = new PublishCopyUtil(handler);
+ resultList.addAll(Arrays.asList(util.initFullPublish(members, monitor)));
+ }
+ addDeployedPathToDescriptor(server, last.getProject(), deployPath); // persist it
+ pruneList(resultList);
+ if( resultList.size() > 0 ) {
+ MultiStatus ms = new MultiStatus(JBossServerCorePlugin.PLUGIN_ID, IEventCodes.JST_PUB_FULL_FAIL,
+ NLS.bind(org.jboss.ide.eclipse.as.core.Messages.FullPublishFail, last.getName()), null);
+ for( int i = 0; i < resultList.size(); i++ )
+ ms.add(resultList.get(i));
+ return ms;
+ }
+ return Status.OK_STATUS;
+ }
+
+ // Prune out ok status
+ protected void pruneList(ArrayList<IStatus> list) {
+ Iterator<IStatus> i = list.iterator();
+ while(i.hasNext()) {
+ if( i.next().isOK())
+ i.remove();
+ }
+ }
+
+ protected boolean shouldZip() {
+ IDeployableServer ds = ServerConverter.getDeployableServer(server);
+ return ds == null || ds.zipsWTPDeployments();
+ }
+
+ public static IPath getDeployPath(IModule[] moduleTree, IDeployableServer server) {
+ IPath path = PublishUtil.getDeployPath(moduleTree, server);
+ path = path.removeLastSegments(1).append(getNewLastSegment(moduleTree));
+ return path;
+ }
+
+ public static String getNewLastSegment(IModule[] moduleTree) {
+ IModule last = moduleTree[moduleTree.length-1];
+ Calendar cal = Calendar.getInstance();
+ StringBuffer lastSeg = new StringBuffer(formatString(cal.get(Calendar.YEAR)));
+ lastSeg.append(formatString(cal.get(Calendar.MONTH) + 1));
+ lastSeg.append(formatString(cal.get(Calendar.DAY_OF_MONTH)));
+ lastSeg.append(formatString(cal.get(Calendar.HOUR_OF_DAY)));
+ lastSeg.append(formatString(cal.get(Calendar.MINUTE)));
+ lastSeg.append(formatString(cal.get(Calendar.SECOND)));
+
+
+ return last.getName() + "-" + lastSeg.toString() + IWTPConstants.EXT_JAR;
+ }
+
+ private static String formatString(int dateUnit){
+ if(String.valueOf(dateUnit).length() < 2){
+ return "0" + dateUnit;
+ }
+
+ return String.valueOf(dateUnit);
+ }
+
+ private static final String DEPLOYMENTS = "deployments";
+ private static final String PROJECT = "project";
+ private static final String NAME = "name";
+ private static final String VERSION = "version";
+
+ protected static void save(IServer server, XMLMemento memento) {
+ try {
+ memento.save(new FileOutputStream(getDeployDetailsFile(server)));
+ } catch( IOException ioe) {
+ // TODO LOG
+ }
+ }
+
+ public static void removeAll(IServer server, IProject project) {
+ String[] paths = getDeployedPathsFromDescriptor(server, project);
+ for( int i = 0; i < paths.length; i++ ) {
+ // remove them all, with full force!!! >=[
+ FileUtil.safeDelete(new File(paths[i]));
+ }
+ removeProjectFromDescriptor(server, project);
+ }
+
+ public static void removeVersion(IServer server, IProject project, String path) {
+ // delete file
+ FileUtil.safeDelete(new File(path));
+ // remove from descriptor
+ removeVersionFromDescriptor(server, project, path);
+ }
+
+ public static void removeVersionFromDescriptor(IServer server, IProject project, String path) {
+ File f = getDeployDetailsFile(server);
+ XMLMemento memento = null;
+ try {
+ memento = XMLMemento.createReadRoot(new FileInputStream(f));
+ IMemento[] projects = memento.getChildren(PROJECT);//$NON-NLS-1$
+ for( int i = 0; i < projects.length; i++ ) {
+ if( project.getName().equals(projects[i].getString(NAME)) ) {
+ IMemento[] versions = projects[i].getChildren(VERSION);
+ for( int j = 0; j < versions.length; j++ ) {
+ if( ((XMLMemento)versions[j]).getTextData().equals(path)) {
+ ((XMLMemento)projects[i]).removeChild((XMLMemento)versions[j]);
+ }
+ }
+ }
+ }
+ save(server, memento);
+ } catch( FileNotFoundException fnfe) {}
+ }
+
+ public static void removeProjectFromDescriptor(IServer server, IProject project) {
+ File f = getDeployDetailsFile(server);
+ XMLMemento memento = null;
+ try {
+ memento = XMLMemento.createReadRoot(new FileInputStream(f));
+ IMemento[] projects = memento.getChildren(PROJECT);//$NON-NLS-1$
+ for( int i = 0; i < projects.length; i++ ) {
+ if( project.getName().equals(projects[i].getString(NAME)) ) {
+ memento.removeChild((XMLMemento)projects[i]);
+ }
+ }
+ save(server, memento);
+ } catch( FileNotFoundException fnfe) {}
+ }
+
+ public static void addDeployedPathToDescriptor(IServer server, IProject project, IPath path) {
+ File f = getDeployDetailsFile(server);
+ XMLMemento memento = null;
+ try {
+ memento = XMLMemento.createReadRoot(new FileInputStream(f));
+ } catch( FileNotFoundException fnfe) {}
+
+ if( memento == null )
+ memento = XMLMemento.createWriteRoot(DEPLOYMENTS);
+
+ IMemento[] projects = memento.getChildren(PROJECT);//$NON-NLS-1$
+ boolean projectFound = false;
+ for( int i = 0; i < projects.length; i++ ) {
+ if( project.getName().equals(projects[i].getString(NAME))) {
+ projectFound = true;
+ XMLMemento child = (XMLMemento)projects[i].createChild(VERSION);
+ child.putTextData(path.toOSString());
+ }
+ }
+ if( !projectFound ) {
+ XMLMemento proj = (XMLMemento)memento.createChild(PROJECT);
+ proj.putString(NAME, project.getName());
+ XMLMemento child = (XMLMemento)proj.createChild(VERSION);
+ child.putTextData(path.toOSString());
+ }
+ save(server, memento);
+ }
+
+ public static String[] getDeployedPathsFromDescriptor(IServer server, IProject project) {
+ File f = getDeployDetailsFile(server);
+ ArrayList<String> list = new ArrayList<String>();
+ if( f.exists() ) {
+ try {
+ XMLMemento memento = XMLMemento.createReadRoot(new FileInputStream(f));
+ IMemento[] projects = memento.getChildren(PROJECT);//$NON-NLS-1$
+ for( int i = 0; i < projects.length; i++ ) {
+ if( project.getName().equals(projects[i].getString(NAME))) {
+ IMemento[] deployments = projects[i].getChildren(VERSION);
+ for( int j = 0; j < deployments.length; j++ ) {
+ String s = ((XMLMemento)deployments[j]).getTextData();
+ if( s != null && !s.equals(""))
+ list.add(s);
+ }
+ break;
+ }
+ }
+ } catch( FileNotFoundException fnfe) {}
+ }
+ return (String[]) list.toArray(new String[list.size()]);
+ }
+
+ public static File getDeployDetailsFile(IServer server) {
+ return JBossServerCorePlugin.getServerStateLocation(server)
+ .append("bpel.deployment.versions").toFile();
+ }
+
+ public static class BPELZippedPublisherUtil extends LocalZippedPublisherUtil {
+ private IPath deployPath;
+ public BPELZippedPublisherUtil(IPath deployPath) {
+ this.deployPath = deployPath;
+ }
+
+ @Override
+ // https://issues.jboss.org/browse/JBIDE-6617
+ // This was probably a typo - the actual override should have an IModule[] arg
+ public IPath getOutputFilePath(IModule[] module) {
+ return getOutputFilePath();
+ }
+
+ public IPath getOutputFilePath() {
+ return deployPath;
+ }
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/Messages.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/Messages.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/Messages.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.module;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * Module-related messages.
+ *
+ * @author Bruno Wassermann, written 17 Jul 2006
+ */
+public class Messages extends NLS {
+
+ private static final String BUNDLE_NAME = "org.jboss.tools.bpel.runtimes.module.messages"; //$NON-NLS-1$
+
+ private Messages() {
+ }
+
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ // module validation
+ public static String InvalidFileExtension;
+ // https://issues.jboss.org/browse/JBDS-1573
+ // added for error dialog
+ public static String MissingDeployXML;
+ public static String DeployError;
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/messages.properties
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/messages.properties (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/messages.properties 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,3 @@
+InvalidFileExtension=BPEL module file resource must end with bpel file extension.
+MissingDeployXML=The project {0} does not have a BPEL deployment descriptor file (deploy.xml)"
+DeployError=Deployment Error
\ No newline at end of file
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleActionProvider.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleActionProvider.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleActionProvider.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,103 @@
+package org.jboss.tools.bpel.runtimes.ui.view.server;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.ui.navigator.CommonActionProvider;
+import org.eclipse.ui.navigator.CommonViewer;
+import org.eclipse.ui.navigator.ICommonActionExtensionSite;
+import org.eclipse.ui.navigator.ICommonViewerSite;
+import org.eclipse.ui.navigator.ICommonViewerWorkbenchSite;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.ui.internal.view.servers.ModuleServer;
+import org.jboss.tools.bpel.runtimes.module.JBTBPELPublisher;
+import org.jboss.tools.bpel.runtimes.ui.view.server.BPELModuleContentProvider.BPELVersionDeployment;
+
+public class BPELModuleActionProvider extends CommonActionProvider {
+
+ private ICommonActionExtensionSite actionSite;
+ private Action undeployVersionAction;
+ private IStructuredSelection lastSelection;
+ public BPELModuleActionProvider() {
+ super();
+ }
+
+ public void dispose() {
+ super.dispose();
+ }
+
+ public void init(ICommonActionExtensionSite aSite) {
+ super.init(aSite);
+ this.actionSite = aSite;
+ createActions(aSite);
+ }
+
+ protected void createActions(ICommonActionExtensionSite aSite) {
+ ICommonViewerSite site = aSite.getViewSite();
+ if( site instanceof ICommonViewerWorkbenchSite ) {
+ StructuredViewer v = aSite.getStructuredViewer();
+ if( v instanceof CommonViewer ) {
+ CommonViewer cv = (CommonViewer)v;
+ ICommonViewerWorkbenchSite wsSite = (ICommonViewerWorkbenchSite)site;
+ undeployVersionAction = new Action() {
+ public void run() {
+ runUndeployVersion();
+ refreshViewer(getLastServer());
+ }
+ };
+ undeployVersionAction.setText("Undeploy Version");
+ undeployVersionAction.setDescription("Undeploy this version of the module");
+ //undeployVersionAction.setImageDescriptor(JBossServerUISharedImages.getImageDescriptor(JBossServerUISharedImages.PUBLISH_IMAGE));
+ }
+ }
+ }
+
+ protected void runUndeployVersion() {
+ Object firstSel = lastSelection.getFirstElement();
+ if( firstSel instanceof BPELVersionDeployment ) {
+ BPELVersionDeployment deployment = (BPELVersionDeployment)firstSel;
+ JBTBPELPublisher.removeVersion(deployment.getModuleServer().server,
+ deployment.getProject(), deployment.getPath());
+ }
+ }
+
+ protected IServer getLastServer() {
+ Object firstSel = lastSelection.getFirstElement();
+ if( firstSel instanceof IServer )
+ return (IServer)firstSel;
+ if( firstSel instanceof ModuleServer )
+ return ((ModuleServer)firstSel).getServer();
+ if( firstSel instanceof BPELVersionDeployment )
+ return ((BPELVersionDeployment)firstSel).getModuleServer().getServer();
+ return null;
+ }
+
+ protected void refreshViewer(Object o) {
+ actionSite.getStructuredViewer().refresh(o);
+ }
+
+
+ public void fillContextMenu(IMenuManager menu) {
+ lastSelection = getSelection();
+ if( lastSelection.size() == 1 ) {
+ Object sel = lastSelection.getFirstElement();
+ if( sel instanceof BPELVersionDeployment )
+ menu.add(undeployVersionAction);
+ }
+ }
+
+ public IStructuredSelection getSelection() {
+ ICommonViewerSite site = actionSite.getViewSite();
+ IStructuredSelection selection = null;
+ if (site instanceof ICommonViewerWorkbenchSite) {
+ ICommonViewerWorkbenchSite wsSite = (ICommonViewerWorkbenchSite) site;
+ selection = (IStructuredSelection) wsSite.getSelectionProvider()
+ .getSelection();
+ return selection;
+ }
+ return new StructuredSelection();
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleContentProvider.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleContentProvider.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleContentProvider.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,77 @@
+package org.jboss.tools.bpel.runtimes.ui.view.server;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.ui.internal.view.servers.ModuleServer;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+import org.jboss.tools.bpel.runtimes.module.JBTBPELPublisher;
+
+public class BPELModuleContentProvider implements ITreeContentProvider {
+ public BPELModuleContentProvider() {
+ }
+ public Object[] getChildren(Object parentElement) {
+ if( parentElement instanceof ModuleServer ) {
+ IServer s = ((ModuleServer)parentElement).server;
+ IModule[] module = ((ModuleServer)parentElement).module;
+ IModule mod = module.length > 0 ? module[module.length-1] : null;
+ String typeId = mod.getModuleType().getId();
+ // https://jira.jboss.org/browse/JBIDE-7486
+ // if project was closed or deleted, mod.getProject() is null - ignore
+ if( mod != null && mod.getProject() != null && typeId.equals(IBPELModuleFacetConstants.BPEL_MODULE_TYPE)) {
+ // we have a bpel module deployed to a server. List the children
+ String[] versions = JBTBPELPublisher.getDeployedPathsFromDescriptor(s, mod.getProject());
+ return wrap((ModuleServer)parentElement, versions);
+ }
+ }
+ return new Object[]{};
+ }
+
+ protected BPELVersionDeployment[] wrap(ModuleServer ms, String[] vals) {
+ BPELVersionDeployment[] versions = new BPELVersionDeployment[vals.length];
+ for( int i = 0; i < vals.length; i++ ) {
+ versions[i] = new BPELVersionDeployment(ms, vals[i]);
+ }
+ return versions;
+ }
+
+ public static class BPELVersionDeployment {
+ private String path;
+ private ModuleServer ms;
+ public BPELVersionDeployment(ModuleServer ms, String path) {
+ this.path = path;
+ this.ms = ms;
+ }
+ public String getPath() { return path; }
+ public ModuleServer getModuleServer() { return ms; }
+ public IProject getProject() {
+ if( ms.module != null && ms.module.length > 0 )
+ return ms.module[ms.module.length-1].getProject();
+ return null;
+ }
+ }
+
+ public Object getParent(Object element) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public boolean hasChildren(Object element) {
+ return getChildren(element).length > 0;
+ }
+
+ public Object[] getElements(Object inputElement) {
+ return getChildren(inputElement);
+ }
+
+ public void dispose() {
+ }
+
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleLabelProvider.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleLabelProvider.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleLabelProvider.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,22 @@
+package org.jboss.tools.bpel.runtimes.ui.view.server;
+
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.swt.graphics.Image;
+import org.jboss.tools.bpel.runtimes.IRuntimesUIConstants;
+import org.jboss.tools.bpel.runtimes.RuntimesPlugin;
+import org.jboss.tools.bpel.runtimes.ui.view.server.BPELModuleContentProvider.BPELVersionDeployment;
+
+public class BPELModuleLabelProvider extends LabelProvider {
+ public Image getImage(Object element) {
+
+ return RuntimesPlugin.getPlugin().getImage(IRuntimesUIConstants.ICON_BPEL_FACET);
+ }
+
+ public String getText(Object element) {
+ if( element instanceof BPELVersionDeployment ) {
+ return new Path(((BPELVersionDeployment)element).getPath()).lastSegment();
+ }
+ return null;
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetInstallPage.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetInstallPage.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetInstallPage.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,46 @@
+package org.jboss.tools.bpel.runtimes.ui.wizards;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage;
+import org.eclipse.wst.web.ui.internal.wizards.DataModelFacetInstallPage;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+
+public class BPELFacetInstallPage extends DataModelFacetInstallPage implements
+ IFacetWizardPage {
+
+ private Label contentDirLabel;
+ private Text contentDir;
+ public BPELFacetInstallPage() {
+ super("Test BPEL");
+ setTitle("BPEL Title");
+ setDescription("BPEL Description");
+ }
+
+ @Override
+ protected String[] getValidationPropertyNames() {
+ return new String[]{IBPELModuleFacetConstants.BPEL_CONTENT_FOLDER};
+ }
+
+ @Override
+ protected Composite createTopLevelComposite(Composite parent) {
+ final Composite composite = new Composite(parent, SWT.NONE);
+ composite.setLayout(new GridLayout(2, false));
+ this.contentDirLabel = new Label(composite, SWT.NONE);
+ this.contentDirLabel.setText("Content Folder");
+ this.contentDirLabel.setLayoutData(new GridData());
+
+ this.contentDir = new Text(composite, SWT.BORDER);
+ this.contentDir.setLayoutData(gdhfill());
+ this.contentDir.setData("label", this.contentDirLabel); //$NON-NLS-1$
+ this.synchHelper.synchText(contentDir, IBPELModuleFacetConstants.BPEL_CONTENT_FOLDER, null);
+ this.contentDir.setText(IBPELModuleFacetConstants.BPEL_CONTENT_DEFAULT_FOLDER);
+ new Label(composite, SWT.NONE); // pad
+ return composite;
+ }
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetProjectCreationDataModelProvider.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetProjectCreationDataModelProvider.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/BPELFacetProjectCreationDataModelProvider.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,30 @@
+package org.jboss.tools.bpel.runtimes.ui.wizards;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties;
+import org.eclipse.jst.common.project.facet.JavaFacetUtils;
+import org.eclipse.wst.common.componentcore.datamodel.FacetProjectCreationDataModelProvider;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
+
+public class BPELFacetProjectCreationDataModelProvider extends
+ FacetProjectCreationDataModelProvider {
+
+ @Override
+ public void init() {
+ super.init();
+
+ Collection<IProjectFacet> requiredFacets = new ArrayList<IProjectFacet>();
+ requiredFacets.add(JavaFacetUtils.JAVA_FACET);
+// requiredFacets.add(IJ2EEFacetConstants.UTILITY_FACET);
+ setProperty(REQUIRED_FACETS_COLLECTION, requiredFacets);
+
+ FacetDataModelMap map = (FacetDataModelMap) getProperty(FACET_DM_MAP);
+ IDataModel javaFacet = map.getFacetDataModel(JavaFacetUtils.JAVA_FACET.getId());
+ javaFacet.setStringProperty(IJavaFacetInstallDataModelProperties.SOURCE_FOLDER_NAME, "bpel");
+ }
+
+
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/Messages.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/Messages.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/Messages.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.ui.wizards;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * Internationalization, internationalisation...
+ *
+ *
+ * @author Bruno Wassermann, written Jun 30, 2006
+ */
+public final class Messages extends NLS {
+
+ private static final String BUNDLE_NAME = "org.jboss.tools.bpel.runtimes.ui.wizards.messages"; //$NON-NLS-1$
+
+ private Messages() {
+ }
+
+ // new project wizard
+ public static String NewProjectWizard_1;
+ public static String NewProjectWizardPage1_1;
+
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizard.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizard.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizard.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,110 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.ui.wizards;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectTemplate;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
+import org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+import org.jboss.tools.bpel.runtimes.IRuntimesUIConstants;
+import org.jboss.tools.bpel.runtimes.RuntimesPlugin;
+
+/**
+ * <code>INewWizard</code> implementation for new BPEL project wizard
+ * installing the BPEL facet by default.
+ *
+ * @author Bruno Wassermann, written Jun 28, 2006
+ */
+public class NewBPELProjectWizard extends NewProjectDataModelFacetWizard
+ implements INewWizard
+{
+
+ /**
+ * Default constructor.
+ */
+ public NewBPELProjectWizard() {
+ super();
+ setWindowTitle(Messages.NewProjectWizard_1);
+ }
+
+ /**
+ * Constructor settings this wizard's <code>IDataModel</code>.
+ *
+ * @see <code>IDataModel</code>
+ * @param model <code>IDataModel</code>
+ */
+ public NewBPELProjectWizard(IDataModel model) {
+ super(model);
+ setWindowTitle(Messages.NewProjectWizard_1);
+ }
+
+ /**
+ * Creates an instance of the <code>FacetProjectCreationDataModelProvider</code>
+ * for BPEL projects. Used to associate common facet information such as
+ * runtimes with particular a project.
+ *
+ * @see <code>FacetProjectCreationDataModelProvider</code>
+ * @return <code>IDataModel</code>
+ */
+ @Override
+ protected IDataModel createDataModel() {
+
+ /*
+ * There does not seem to be a need for any custom implementation for
+ * BPEL projects at this stage. May have to reconsider at some point and
+ * build a BPELFacetProjectCreationDataModelProvider.
+ */
+ return DataModelFactory.createDataModel(new BPELFacetProjectCreationDataModelProvider());
+ }
+
+ /**
+ * Getting image descriptor to be used as wizard banner.
+ *
+ * @return <code>ImageDescriptor</code>
+ */
+ @Override
+ protected ImageDescriptor getDefaultPageImageDescriptor() {
+ return RuntimesPlugin.getPlugin().getImageDescriptor(IRuntimesUIConstants.ICON_NEWPRJ_WIZARD_BANNER);
+ }
+
+ /**
+ * Getting the <code>IFacetedProjectTemplate</code> for a BPEL project.
+ * Is used to retrieve the set of fixed facets for a particular project
+ * type.
+ *
+ * @see org.eclipse.wst.common.project.core.IFacetedProjectTemplate
+ * @return org.eclipse.wst.common.project.core.IFacetedProjectTemplate
+ *
+ */
+ @Override
+ protected IFacetedProjectTemplate getTemplate() {
+ return ProjectFacetsManager.getTemplate(IBPELModuleFacetConstants.BPEL20_FACET_TEMPLATE);
+ }
+
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard#createFirstPage()
+ */
+ @Override
+ protected IWizardPage createFirstPage() {
+ return new NewBPELProjectWizardPage1(model, "newBPELProject"); // $NON-NLS-1$
+ }
+
+ protected String getFinalPerspectiveID() {
+ return "org.eclipse.bpel.ui.perspective"; //$NON-NLS-1$
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.ui.wizards;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.web.ui.internal.wizards.DataModelFacetCreationWizardPage;
+import org.jboss.tools.bpel.runtimes.IBPELModuleFacetConstants;
+import org.jboss.tools.bpel.runtimes.IRuntimesUIConstants;
+import org.jboss.tools.bpel.runtimes.RuntimesPlugin;
+
+/**
+ * <code>DataModelFacetCreationWizardPage</code> for setting up a new BPEL
+ * project.
+ *
+ * @author Bruno Wassermann, written Jun 29, 2006
+ */
+public class NewBPELProjectWizardPage1 extends DataModelFacetCreationWizardPage {
+
+ public NewBPELProjectWizardPage1(IDataModel dataModel, String pageName) {
+ super(dataModel, pageName);
+ setTitle(org.jboss.tools.bpel.runtimes.ui.wizards.Messages.NewProjectWizard_1);
+ setDescription(org.jboss.tools.bpel.runtimes.ui.wizards.Messages.NewProjectWizardPage1_1);
+ setImageDescriptor(RuntimesPlugin.getPlugin().getImageDescriptor(IRuntimesUIConstants.ICON_NEWPRJ_WIZARD_BANNER));
+ }
+
+ protected String getModuleFacetID() {
+ return IBPELModuleFacetConstants.BPEL_MODULE_TYPE;
+ }
+
+ protected String getModuleTypeID() {
+ return IBPELModuleFacetConstants.BPEL_PROJECT_FACET;
+ }
+
+ protected Composite createTopLevelComposite(Composite parent) {
+ Composite top = new Composite(parent, SWT.NONE);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(top, getInfopopID());
+ top.setLayout(new GridLayout());
+ top.setLayoutData(new GridData(GridData.FILL_BOTH));
+ createProjectGroup(top);
+// createServerTargetComposite(top);
+// createPrimaryFacetComposite(top);
+// createPresetPanel(top);
+ return top;
+ }
+}
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/messages.properties
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/messages.properties (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/wizards/messages.properties 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,2 @@
+NewProjectWizard_1=New BPEL Project
+NewProjectWizardPage1_1=Create a new BPEL 2.0 project.
Added: workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/utils/BPELModelUtils.java
===================================================================
--- workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/utils/BPELModelUtils.java (rev 0)
+++ workspace/bbrodt/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/utils/BPELModelUtils.java 2011-08-30 19:26:54 UTC (rev 34417)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * Copyright (c) 2006 University College London Software Systems Engineering
+ * 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:
+ * Bruno Wassermann - initial API and implementation
+ *******************************************************************************/
+package org.jboss.tools.bpel.runtimes.utils;
+
+import org.eclipse.bpel.model.PartnerLink;
+import org.eclipse.bpel.model.Scope;
+import org.eclipse.emf.common.util.BasicEList;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.TreeIterator;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A bunch of helper methods to support runtime providers get data from the
+ * BPEL model.
+ *
+ * @author Bruno Wassermann, written 11 May 2007
+ */
+public class BPELModelUtils {
+
+ /**
+ * Return an <code>EList</code> containing all partnerLink elements defined
+ * on Scopes in this process.
+ *
+ * @param process <code>EObject</code> representing the Process element
+ * @return <code>EList</code> containing all <code>PartnerLink</code>s
+ * defined on any Scopes (or none)
+ */
+ public static EList<PartnerLink> getScopePartnerLinks(final EObject process) {
+ TreeIterator<EObject> contents = process.eAllContents();
+ EList<PartnerLink> results = new BasicEList<PartnerLink>();
+
+ while (contents.hasNext()) {
+ EObject obj = contents.next();
+
+ if (obj instanceof Scope) {
+ results.addAll(((Scope) obj).getPartnerLinks().getChildren());
+ }
+ }
+ return results;
+ }
+}
12 years, 8 months
JBoss Tools SVN: r34416 - workspace/bbrodt.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2011-08-30 15:17:55 -0400 (Tue, 30 Aug 2011)
New Revision: 34416
Added:
workspace/bbrodt/org.jboss.tools.bpel.runtimes/
Log:
12 years, 8 months
JBoss Tools SVN: r34415 - branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-08-30 15:16:47 -0400 (Tue, 30 Aug 2011)
New Revision: 34415
Added:
branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.properties
branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/license.html
Modified:
branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/build.properties
branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.xml
Log:
https://issues.jboss.org/browse/JBIDE-9592 ./esb/features/org.jboss.tools.esb.test.feature/feature.xml :: add license/copyright/description in feature.properties and ref from feature.xml; fix build.properties to include license.html & feature.*
fixed in branch for 3.3.0.M3
Modified: branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/build.properties
===================================================================
--- branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/build.properties 2011-08-30 19:15:26 UTC (rev 34414)
+++ branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/build.properties 2011-08-30 19:16:47 UTC (rev 34415)
@@ -1 +1,9 @@
-bin.includes = feature.xml
+bin.includes = feature.xml,\
+ license.html,\
+ feature.properties
+src.includes = pom.xml,\
+ license.html,\
+ feature.xml,\
+ build.properties,\
+ feature.properties,\
+ .project
Added: branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.properties
===================================================================
--- branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.properties (rev 0)
+++ branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.properties 2011-08-30 19:16:47 UTC (rev 34415)
@@ -0,0 +1,46 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss ESB Tools Tests
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+devUpdateSiteName=JBossTools Development Update Site
+
+# "description" property - description of the feature
+description=Provides tests for for JBoss ESB Tools.
+
+copyright=Copyright 2007-2011 Red Hat, Inc.\n\
+Distributed under license by Red Hat, Inc. All rights reserved.\n\
+This program is made available under the terms of the\n\
+Eclipse Public License v1.0 which accompanies this distribution,\n\
+and is available at http\://www.eclipse.org/legal/epl-v10.html\n\
+Contributors\:\n\
+Red Hat, Inc. - initial API and implementation
+
+licenseURL=license.html
+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.
\ No newline at end of file
Property changes on: branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.xml
===================================================================
--- branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.xml 2011-08-30 19:15:26 UTC (rev 34414)
+++ branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/feature.xml 2011-08-30 19:16:47 UTC (rev 34415)
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature id="org.jboss.tools.esb.test.feature" label="JBoss Tools - Tests - ESB" version="1.5.0.qualifier" provider-name="JBoss by RedHat">
- <description url="http://www.example.com/description">
- [Enter Feature Description here.]
+ <description url="http://www.jboss.org/tools">
+ %description
</description>
- <copyright url="http://www.example.com/copyright">
- [Enter Copyright Description here.]
+ <copyright>
+ %copyright
</copyright>
- <license url="http://www.example.com/license">
- [Enter License Description here.]
+ <license url="%licenseURL">
+ %license
</license>
<plugin id="org.jboss.tools.esb.core.test" download-size="0" install-size="0" version="0.0.0" />
Added: branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/license.html
===================================================================
--- branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/license.html (rev 0)
+++ branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/license.html 2011-08-30 19:16:47 UTC (rev 34415)
@@ -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
Property changes on: branches/jbosstools-3.3.0.M3/esb/features/org.jboss.tools.esb.test.feature/license.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 8 months
JBoss Tools SVN: r34414 - trunk/esb/features/org.jboss.tools.esb.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-08-30 15:15:26 -0400 (Tue, 30 Aug 2011)
New Revision: 34414
Added:
trunk/esb/features/org.jboss.tools.esb.test.feature/feature.properties
trunk/esb/features/org.jboss.tools.esb.test.feature/license.html
Modified:
trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties
trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml
Log:
https://issues.jboss.org/browse/JBIDE-9592 ./esb/features/org.jboss.tools.esb.test.feature/feature.xml :: add license/copyright/description in feature.properties and ref from feature.xml; fix build.properties to include license.html & feature.*
fixed in trunk for 3.3.0.M4
Modified: trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties
===================================================================
--- trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties 2011-08-30 19:13:49 UTC (rev 34413)
+++ trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties 2011-08-30 19:15:26 UTC (rev 34414)
@@ -1 +1,9 @@
-bin.includes = feature.xml
+bin.includes = feature.xml,\
+ license.html,\
+ feature.properties
+src.includes = pom.xml,\
+ license.html,\
+ feature.xml,\
+ build.properties,\
+ feature.properties,\
+ .project
Added: trunk/esb/features/org.jboss.tools.esb.test.feature/feature.properties
===================================================================
--- trunk/esb/features/org.jboss.tools.esb.test.feature/feature.properties (rev 0)
+++ trunk/esb/features/org.jboss.tools.esb.test.feature/feature.properties 2011-08-30 19:15:26 UTC (rev 34414)
@@ -0,0 +1,46 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss ESB Tools Tests
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+devUpdateSiteName=JBossTools Development Update Site
+
+# "description" property - description of the feature
+description=Provides tests for for JBoss ESB Tools.
+
+copyright=Copyright 2007-2011 Red Hat, Inc.\n\
+Distributed under license by Red Hat, Inc. All rights reserved.\n\
+This program is made available under the terms of the\n\
+Eclipse Public License v1.0 which accompanies this distribution,\n\
+and is available at http\://www.eclipse.org/legal/epl-v10.html\n\
+Contributors\:\n\
+Red Hat, Inc. - initial API and implementation
+
+licenseURL=license.html
+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.
\ No newline at end of file
Property changes on: trunk/esb/features/org.jboss.tools.esb.test.feature/feature.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml
===================================================================
--- trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml 2011-08-30 19:13:49 UTC (rev 34413)
+++ trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml 2011-08-30 19:15:26 UTC (rev 34414)
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature id="org.jboss.tools.esb.test.feature" label="JBoss Tools - Tests - ESB" version="1.5.0.qualifier" provider-name="JBoss by RedHat">
- <description url="http://www.example.com/description">
- [Enter Feature Description here.]
+ <description url="http://www.jboss.org/tools">
+ %description
</description>
- <copyright url="http://www.example.com/copyright">
- [Enter Copyright Description here.]
+ <copyright>
+ %copyright
</copyright>
- <license url="http://www.example.com/license">
- [Enter License Description here.]
+ <license url="%licenseURL">
+ %license
</license>
<plugin id="org.jboss.tools.esb.core.test" download-size="0" install-size="0" version="0.0.0" />
Added: trunk/esb/features/org.jboss.tools.esb.test.feature/license.html
===================================================================
--- trunk/esb/features/org.jboss.tools.esb.test.feature/license.html (rev 0)
+++ trunk/esb/features/org.jboss.tools.esb.test.feature/license.html 2011-08-30 19:15:26 UTC (rev 34414)
@@ -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
Property changes on: trunk/esb/features/org.jboss.tools.esb.test.feature/license.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 8 months
JBoss Tools SVN: r34413 - branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-08-30 15:13:49 -0400 (Tue, 30 Aug 2011)
New Revision: 34413
Added:
branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.properties
branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/license.html
Log:
https://issues.jboss.org/browse/JBIDE-9597 ./smooks/features/org.jboss.tools.smooks.test.feature/feature.xml :: add license/copyright/description in feature.properties and ref from feature.xml; fix build.properties to include license.html & feature.*
fixed in branch for 3.3.0.M3 (added missing resources)
Added: branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.properties
===================================================================
--- branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.properties (rev 0)
+++ branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.properties 2011-08-30 19:13:49 UTC (rev 34413)
@@ -0,0 +1,46 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss Smooks Tools Tests
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+devUpdateSiteName=JBossTools Development Update Site
+
+# "description" property - description of the feature
+description=Provides tests for for JBoss Smooks Tools.
+
+copyright=Copyright 2007-2011 Red Hat, Inc.\n\
+Distributed under license by Red Hat, Inc. All rights reserved.\n\
+This program is made available under the terms of the\n\
+Eclipse Public License v1.0 which accompanies this distribution,\n\
+and is available at http\://www.eclipse.org/legal/epl-v10.html\n\
+Contributors\:\n\
+Red Hat, Inc. - initial API and implementation
+
+licenseURL=license.html
+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.
\ No newline at end of file
Property changes on: branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/license.html
===================================================================
--- branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/license.html (rev 0)
+++ branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/license.html 2011-08-30 19:13:49 UTC (rev 34413)
@@ -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
Property changes on: branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/license.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 8 months
JBoss Tools SVN: r34412 - branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-08-30 15:10:51 -0400 (Tue, 30 Aug 2011)
New Revision: 34412
Modified:
branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/build.properties
branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.xml
Log:
https://issues.jboss.org/browse/JBIDE-9597 ./smooks/features/org.jboss.tools.smooks.test.feature/feature.xml :: add license/copyright/description in feature.properties and ref from feature.xml; fix build.properties to include license.html & feature.*
fixed in branch for 3.3.0.M3
Modified: branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/build.properties
===================================================================
--- branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/build.properties 2011-08-30 19:09:53 UTC (rev 34411)
+++ branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/build.properties 2011-08-30 19:10:51 UTC (rev 34412)
@@ -1 +1,9 @@
-bin.includes = feature.xml
+bin.includes = feature.xml,\
+ license.html,\
+ feature.properties
+src.includes = pom.xml,\
+ license.html,\
+ feature.xml,\
+ build.properties,\
+ feature.properties,\
+ .project
Modified: branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.xml
===================================================================
--- branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.xml 2011-08-30 19:09:53 UTC (rev 34411)
+++ branches/jbosstools-3.3.0.M3/smooks/features/org.jboss.tools.smooks.test.feature/feature.xml 2011-08-30 19:10:51 UTC (rev 34412)
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature id="org.jboss.tools.smooks.test.feature" label="JBoss Tools - Tests - Smooks" version="1.3.0.qualifier" provider-name="JBoss by RedHat">
- <description url="http://www.example.com/description">
- [Enter Feature Description here.]
+ <description url="http://www.jboss.org/tools">
+ %description
</description>
- <copyright url="http://www.example.com/copyright">
- [Enter Copyright Description here.]
+ <copyright>
+ %copyright
</copyright>
- <license url="http://www.example.com/license">
- [Enter License Description here.]
+ <license url="%licenseURL">
+ %license
</license>
<plugin id="org.jboss.tools.smooks.core.test" download-size="0" install-size="0" version="0.0.0" />
12 years, 8 months