JBoss Tools SVN: r16808 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.jbpm4.releng and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:39:53 -0400 (Mon, 27 Jul 2009)
New Revision: 16808
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/build.properties
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/build.properties
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng (from rev 16347, trunk/jbpm/releng/org.jboss.tools.jbpm4.releng)
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/build.properties
===================================================================
--- trunk/jbpm/releng/org.jboss.tools.jbpm4.releng/build.properties 2009-07-02 17:11:17 UTC (rev 16347)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/build.properties 2009-07-27 07:39:53 UTC (rev 16808)
@@ -1,59 +0,0 @@
-## BEGIN PROJECT BUILD PROPERTIES ##
-
-# this property allows ant-contrib and pde-svn-plugin to be fetched and installed automatically for you
-thirdPartyDownloadLicenseAcceptance="I accept"
-
-projectid=jbosstools.jbpm4
-zipPrefix=jbpm4
-incubation=
-buildType=N
-version=4.0.0
-
-mainFeatureToBuildID=org.jboss.tools.jbpm4.sdk.feature
-testFeatureToBuildID=org.jboss.tools.jbpm4.tests.feature
-
-build.steps=buildUpdate,buildTests,generateDigests,test,publish,cleanup
-
-# Re-use local sources?
-localSourceCheckoutDir=/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jbpm
-relengBuilderDir=/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jbpm/releng/org.jboss.tools.jbpm4.releng
-relengBaseBuilderDir=/home/nboldt/eclipse/workspace-jboss/org.eclipse.releng.basebuilder
-relengCommonBuilderDir=/home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng
-
-JAVA_HOME=/usr/lib/jvm/java
-JAVA50_HOME=/usr/lib/jvm/java
-
-dependencyURLs=\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/GEF-runtime-3.5.0RC2.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/emf-runtime-2.5.0RC2.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/xsd-runtime-2.5.0RC2.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/wtp-S-3.1RC2-20090526075706.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/wtp-jpt-S-3.1RC2-20090526075706.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-linux-gtk.tar.gz
-
-# alternate eclipse platforms - swap in above as needed
-#http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-win32.zip,\
-#http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-linux-gtk-x86_64.tar.gz,\
-#http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-macosx-carbon.tar.gz,\
-
-# not needed for jbpm, copied for reference (other builds may need these)
-#http://www.eclipse.org/downloads/download.php?r=1&file=/birt/downloads/drops/M-R1-2.5M7-200905061338/birt-report-framework-2.5M7.zip,\
-#http://www.eclipse.org/downloads/download.php?r=1&file=/birt/downloads/drops/M-R1-2.5M7-200905061338/birt-wtp-integration-sdk-2.5M7.zip,\
-#http://www.eclipse.org/downloads/download.php?r=1&file=/datatools/downloads/drops/N_DTP_1.7/dtp-1.7.0M7-200905052200.zip,\
-#http://www.eclipse.org/downloads/download.php?r=1&file=/tptp/4.6.0/TPTP-4.6.0M7-200904260100/tptp.runtime-TPTP-4.6.0M7.zip,\
-
-flattenDependencies=true
-parallelCompilation=true
-generateFeatureVersionSuffix=true
-individualSourceBundles=true
-
-domainNamespace=*
-projNamespace=org.jboss.tools.jbpm4
-projRelengName=org.jboss.tools.jbpm4.releng
-
-# needed for Hudson, not for local?
-#projRelengRoot=svn://svn.jboss.org/repos/jbosstools/trunk/jmx
-#projRelengPath=releng
-#basebuilderBranch=R35_M6
-
-## END PROJECT BUILD PROPERTIES ##
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/build.properties (from rev 16806, trunk/jbpm/releng/org.jboss.tools.jbpm4.releng/build.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/build.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm4.releng/build.properties 2009-07-27 07:39:53 UTC (rev 16808)
@@ -0,0 +1,60 @@
+## BEGIN PROJECT BUILD PROPERTIES ##
+
+# this property allows ant-contrib and pde-svn-plugin to be fetched and installed automatically for you
+thirdPartyDownloadLicenseAcceptance="I accept"
+
+projectid=jbosstools.jbpm4
+zipPrefix=jBPM
+incubation=
+buildType=N
+version=4.0.0
+buildAlias=jPDL4
+
+mainFeatureToBuildID=org.jboss.tools.jbpm4.sdk.feature
+testFeatureToBuildID=org.jboss.tools.jbpm4.tests.feature
+
+build.steps=buildUpdate,buildTests,generateDigests,test,publish,cleanup
+
+# Re-use local sources?
+localSourceCheckoutDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD
+relengBuilderDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD/org.jboss.tools.jbpm4.releng
+relengBaseBuilderDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD/org.eclipse.releng.basebuilder
+relengCommonBuilderDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD/org.eclipse.dash.common.releng
+
+JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
+JAVA50_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
+
+dependencyURLs=\
+http://eclipse.unixheads.org/tools/gef/downloads/drops/3.5.0/R200906221200/GEF-runtime-3.5.0.zip,\
+http://ftp.osuosl.org/pub/eclipse/modeling/emf/emf/downloads/drops/2.5.0/R200906151043/emf-runtime-2.5.0.zip,\
+http://ftp.osuosl.org/pub/eclipse/modeling/emf/emf/downloads/drops/2.5.0/R200906151043/xsd-runtime-2.5.0.zip,\
+http://eclipse.unixheads.org/webtools/downloads/drops/R3.1/R-3.1-20090616035105/wtp-R-3.1-20090616035105.zip,\
+http://eclipse.unixheads.org/webtools/downloads/drops/R3.1/R-3.1-20090616035105/wtp-jpt-R-3.1-20090616035105.zip,\
+http://eclipse.unixheads.org/eclipse/downloads/drops/R-3.5-200906111540/eclipse-SDK-3.5-linux-gtk.tar.gz
+
+# alternate eclipse platforms - swap in above as needed
+#http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-win32.zip,\
+#http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-linux-gtk-x86_64.tar.gz,\
+#http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-macosx-carbon.tar.gz,\
+
+# not needed for jbpm, copied for reference (other builds may need these)
+#http://www.eclipse.org/downloads/download.php?r=1&file=/birt/downloads/drops/M-R1-2.5M7-200905061338/birt-report-framework-2.5M7.zip,\
+#http://www.eclipse.org/downloads/download.php?r=1&file=/birt/downloads/drops/M-R1-2.5M7-200905061338/birt-wtp-integration-sdk-2.5M7.zip,\
+#http://www.eclipse.org/downloads/download.php?r=1&file=/datatools/downloads/drops/N_DTP_1.7/dtp-1.7.0M7-200905052200.zip,\
+#http://www.eclipse.org/downloads/download.php?r=1&file=/tptp/4.6.0/TPTP-4.6.0M7-200904260100/tptp.runtime-TPTP-4.6.0M7.zip,\
+
+flattenDependencies=true
+parallelCompilation=true
+generateFeatureVersionSuffix=true
+individualSourceBundles=true
+
+domainNamespace=*
+projNamespace=org.jboss.tools.jbpm4
+projRelengName=org.jboss.tools.jbpm4.releng
+
+# needed for Hudson, not for local?
+#projRelengRoot=svn://svn.jboss.org/repos/jbosstools/trunk/jmx
+#projRelengPath=releng
+#basebuilderBranch=R35_M6
+
+## END PROJECT BUILD PROPERTIES ##
16 years, 8 months
JBoss Tools SVN: r16807 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp: jspeditor and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-07-27 03:39:51 -0400 (Mon, 27 Jul 2009)
New Revision: 16807
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPDialogContentProposalProvider.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JspContentAssistProcessor.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/DefaultDropCommandRunner.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPContentOutlineConfiguration.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3557 Externalize English strings
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPDialogContentProposalProvider.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPDialogContentProposalProvider.java 2009-07-27 07:38:57 UTC (rev 16806)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JSPDialogContentProposalProvider.java 2009-07-27 07:39:51 UTC (rev 16807)
@@ -72,8 +72,8 @@
if(valueHelper == null) {
valueHelper = new ValueHelper();
}
- pageContext = (IPageContext)context.get("pageContext");
- processor = (JspContentAssistProcessor)context.get("processor");
+ pageContext = (IPageContext)context.get("pageContext"); //$NON-NLS-1$
+ processor = (JspContentAssistProcessor)context.get("processor"); //$NON-NLS-1$
if(processor == null) {
processor = valueHelper.createContentAssistProcessor();
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JspContentAssistProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JspContentAssistProcessor.java 2009-07-27 07:38:57 UTC (rev 16806)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/JspContentAssistProcessor.java 2009-07-27 07:39:51 UTC (rev 16807)
@@ -362,7 +362,7 @@
if (image == null) {
image = XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_TAG_GENERIC);
}
- String displayString = closingTag; //$NON-NLS-1$
+ String displayString = closingTag;
IContextInformation contextInformation = null;
String additionalProposalInfo = textProposal.getContextInfo();
int relevance = textProposal.getRelevance();
@@ -427,7 +427,7 @@
image = XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_TAG_GENERIC);
}
- String displayString = closingTag; //$NON-NLS-1$
+ String displayString = closingTag;
IContextInformation contextInformation = null;
String additionalProposalInfo = textProposal.getContextInfo();
int relevance = textProposal.getRelevance();
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2009-07-27 07:38:57 UTC (rev 16806)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2009-07-27 07:39:51 UTC (rev 16807)
@@ -788,8 +788,8 @@
public void initContext(Properties context) {
if(context != null) {
- context.put("processor", processor);
- context.put("pageContext", pageContext);
+ context.put("processor", processor); //$NON-NLS-1$
+ context.put("pageContext", pageContext); //$NON-NLS-1$
}
}
public IPageContext getPageContext() {
@@ -801,7 +801,7 @@
if(c == null) return null;
String prefix = getPrefix(query);
if(prefix == null) return c.getName();
- return prefix + ":" + c.getName();
+ return prefix + ":" + c.getName(); //$NON-NLS-1$
}
public boolean canHaveBody() {
@@ -815,7 +815,7 @@
KbQuery createQuery(TagProposal proposal) {
KbQuery kbQuery = new KbQuery();
- String name = proposal.getPrefix() + ":" + proposal.getName();
+ String name = proposal.getPrefix() + ":" + proposal.getName(); //$NON-NLS-1$
kbQuery.setPrefix(proposal.getPrefix());
kbQuery.setUri(proposal.getUri());
kbQuery.setParentTags(new String[]{name});
@@ -823,8 +823,8 @@
kbQuery.setMask(false);
kbQuery.setType(Type.ATTRIBUTE_NAME);
kbQuery.setOffset(JSPTextEditor.this.getTextViewer().getTextWidget().getCaretOffset());
- kbQuery.setValue("");
- kbQuery.setStringQuery("");
+ kbQuery.setValue(""); //$NON-NLS-1$
+ kbQuery.setStringQuery(""); //$NON-NLS-1$
return kbQuery;
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/DefaultDropCommandRunner.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/DefaultDropCommandRunner.java 2009-07-27 07:38:57 UTC (rev 16806)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/DefaultDropCommandRunner.java 2009-07-27 07:39:51 UTC (rev 16807)
@@ -65,7 +65,7 @@
if(!(editor instanceof AbstractTextEditor)) return null;
AbstractTextEditor ae = (AbstractTextEditor)editor;
try {
- Method m = AbstractTextEditor.class.getDeclaredMethod("getSourceViewer", new Class[0]);
+ Method m = AbstractTextEditor.class.getDeclaredMethod("getSourceViewer", new Class[0]); //$NON-NLS-1$
m.setAccessible(true);
return (ISourceViewer)m.invoke(ae, new Object[0]);
} catch (NoSuchMethodException e1) {
@@ -84,9 +84,9 @@
public void setObject(Object object) {
Properties p = (Properties)object;
- flavor = p.getProperty("flavor");
- data = p.getProperty("data");
- textEditor = (ITextEditor)p.get("textEditor");
+ flavor = p.getProperty("flavor"); //$NON-NLS-1$
+ data = p.getProperty("data"); //$NON-NLS-1$
+ textEditor = (ITextEditor)p.get("textEditor"); //$NON-NLS-1$
}
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPContentOutlineConfiguration.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPContentOutlineConfiguration.java 2009-07-27 07:38:57 UTC (rev 16806)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPContentOutlineConfiguration.java 2009-07-27 07:39:51 UTC (rev 16807)
@@ -235,8 +235,8 @@
kbQuery.setMask(false);
kbQuery.setType(Type.ATTRIBUTE_NAME);
kbQuery.setOffset(offset);
- kbQuery.setValue("");
- kbQuery.setStringQuery("");
+ kbQuery.setValue(""); //$NON-NLS-1$
+ kbQuery.setStringQuery(""); //$NON-NLS-1$
return kbQuery;
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java 2009-07-27 07:38:57 UTC (rev 16806)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java 2009-07-27 07:39:51 UTC (rev 16807)
@@ -190,8 +190,8 @@
if (namesLow.contains(attrName.toLowerCase())) continue;
}
if(valueHelper.isAvailable(pageContext, getQuery(attrName))
- || attrName.equals("style")
- || attrName.equals("class")) {
+ || attrName.equals("style") //$NON-NLS-1$
+ || attrName.equals("class")) { //$NON-NLS-1$
descriptor = createJSPPropertyDescriptor(d, attrName, false);
} else {
descriptor = createTextPropertyDescriptor(attrName, CATEGORY_ATTRIBUTES, 0);
@@ -331,8 +331,8 @@
kbQuery.setMask(false);
kbQuery.setType(Type.ATTRIBUTE_NAME);
kbQuery.setOffset(offset);
- kbQuery.setValue("");
- kbQuery.setStringQuery("");
+ kbQuery.setValue(""); //$NON-NLS-1$
+ kbQuery.setStringQuery(""); //$NON-NLS-1$
return kbQuery;
}
@@ -351,8 +351,8 @@
private String getCategory(CMAttributeDeclaration attrDecl) {
if (attrDecl != null) {
- if (attrDecl.supports("category")) {
- return (String) attrDecl.getProperty("category");
+ if (attrDecl.supports("category")) { //$NON-NLS-1$
+ return (String) attrDecl.getProperty("category"); //$NON-NLS-1$
}
}
return CATEGORY_ATTRIBUTES;
@@ -398,12 +398,12 @@
else sorter.setWeight(attributeName, 0);
}
Properties context = new Properties();
- context.put("node", fNode);
- context.setProperty("nodeName", fNode.getNodeName());
- context.setProperty("attributeName", attributeName);
- context.put("valueHelper", valueHelper);
- context.put("pageContext", pageContext);
- context.put("processor", processor);
+ context.put("node", fNode); //$NON-NLS-1$
+ context.setProperty("nodeName", fNode.getNodeName()); //$NON-NLS-1$
+ context.setProperty("attributeName", attributeName); //$NON-NLS-1$
+ context.put("valueHelper", valueHelper); //$NON-NLS-1$
+ context.put("pageContext", pageContext); //$NON-NLS-1$
+ context.put("processor", processor); //$NON-NLS-1$
JSPPropertyDescriptor descriptor = new JSPPropertyDescriptor(context, attributeName, attributeName);
descriptor.setCategory(getCategory(null));
descriptor.setDescription(attributeName);
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java 2009-07-27 07:38:57 UTC (rev 16806)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java 2009-07-27 07:39:51 UTC (rev 16807)
@@ -59,7 +59,7 @@
public static IPromptingProvider seamPromptingProvider;
static {
- Object o = ModelFeatureFactory.getInstance().createFeatureInstance("org.jboss.tools.seam.internal.core.el.SeamPromptingProvider");
+ Object o = ModelFeatureFactory.getInstance().createFeatureInstance("org.jboss.tools.seam.internal.core.el.SeamPromptingProvider"); //$NON-NLS-1$
if(o instanceof IPromptingProvider) {
seamPromptingProvider = (IPromptingProvider)o;
}
@@ -119,7 +119,7 @@
public ModelElement getInitalInput(IPageContext pageContext, KbQuery kbQuery) {
IAttribute[] as = PageProcessor.getInstance().getAttributes(kbQuery, pageContext);
- if(as == null || as.length == 0) return new RootElement("root", new ArrayList<AttributeValueResource>());
+ if(as == null || as.length == 0) return new RootElement("root", new ArrayList<AttributeValueResource>()); //$NON-NLS-1$
CustomTagLibAttribute ca = null;
for (IAttribute a: as) {
if(a instanceof CustomTagLibAttribute) {
@@ -129,7 +129,7 @@
}
CustomProposalType[] proposals = ca != null ? ca.getProposals() : new CustomProposalType[0];
List<AttributeValueResource> elements = new ArrayList<AttributeValueResource>();
- ModelElement root = new RootElement("root", elements);
+ ModelElement root = new RootElement("root", elements); //$NON-NLS-1$
for (int i = 0; i < proposals.length; i++) {
AttributeValueResource resource = AttributeValueResourceFactory.getInstance().createResource(getEditorInput(), pageContext, root, proposals[i].getType());
resource.setParams(proposals[i].getParams());
@@ -138,10 +138,10 @@
}
if(seamPromptingProvider != null && getFile() != null) {
Properties p = new Properties();
- p.put("file", getFile());
- List list = seamPromptingProvider.getList(null, "seam.is_seam_project", null, p);
+ p.put("file", getFile()); //$NON-NLS-1$
+ List list = seamPromptingProvider.getList(null, "seam.is_seam_project", null, p); //$NON-NLS-1$
if(list != null) {
- AttributeValueResource resource = AttributeValueResourceFactory.getInstance().createResource(getEditorInput(), pageContext, root, "seamVariables");
+ AttributeValueResource resource = AttributeValueResourceFactory.getInstance().createResource(getEditorInput(), pageContext, root, "seamVariables"); //$NON-NLS-1$
resource.setQuery(kbQuery, this);
elements.add(resource);
}
@@ -237,7 +237,7 @@
if (editor == null) return null;
if(editor instanceof AbstractTextEditor) {
try {
- Method m = AbstractTextEditor.class.getDeclaredMethod("getSourceViewer", new Class[0]);
+ Method m = AbstractTextEditor.class.getDeclaredMethod("getSourceViewer", new Class[0]); //$NON-NLS-1$
m.setAccessible(true);
return (ISourceViewer)m.invoke(editor, new Object[0]);
} catch (Exception e) {
16 years, 8 months
JBoss Tools SVN: r16806 - trunk/jbpm/releng/org.jboss.tools.jbpm4.releng.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:38:57 -0400 (Mon, 27 Jul 2009)
New Revision: 16806
Modified:
trunk/jbpm/releng/org.jboss.tools.jbpm4.releng/build.properties
Log:
Modified: trunk/jbpm/releng/org.jboss.tools.jbpm4.releng/build.properties
===================================================================
--- trunk/jbpm/releng/org.jboss.tools.jbpm4.releng/build.properties 2009-07-27 07:38:02 UTC (rev 16805)
+++ trunk/jbpm/releng/org.jboss.tools.jbpm4.releng/build.properties 2009-07-27 07:38:57 UTC (rev 16806)
@@ -4,10 +4,11 @@
thirdPartyDownloadLicenseAcceptance="I accept"
projectid=jbosstools.jbpm4
-zipPrefix=jbpm4
+zipPrefix=jBPM
incubation=
buildType=N
version=4.0.0
+buildAlias=jPDL4
mainFeatureToBuildID=org.jboss.tools.jbpm4.sdk.feature
testFeatureToBuildID=org.jboss.tools.jbpm4.tests.feature
@@ -15,21 +16,21 @@
build.steps=buildUpdate,buildTests,generateDigests,test,publish,cleanup
# Re-use local sources?
-localSourceCheckoutDir=/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jbpm
-relengBuilderDir=/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jbpm/releng/org.jboss.tools.jbpm4.releng
-relengBaseBuilderDir=/home/nboldt/eclipse/workspace-jboss/org.eclipse.releng.basebuilder
-relengCommonBuilderDir=/home/nboldt/eclipse/workspace-jboss/org.eclipse.dash.common.releng
+localSourceCheckoutDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD
+relengBuilderDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD/org.jboss.tools.jbpm4.releng
+relengBaseBuilderDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD/org.eclipse.releng.basebuilder
+relengCommonBuilderDir=/Users/koen/Workspace/Eclipse/3.5.0/jBPM-GPD/org.eclipse.dash.common.releng
-JAVA_HOME=/usr/lib/jvm/java
-JAVA50_HOME=/usr/lib/jvm/java
+JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
+JAVA50_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
dependencyURLs=\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/GEF-runtime-3.5.0RC2.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/emf-runtime-2.5.0RC2.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/xsd-runtime-2.5.0RC2.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/wtp-S-3.1RC2-20090526075706.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/wtp-jpt-S-3.1RC2-20090526075706.zip,\
-http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-linux-gtk.tar.gz
+http://eclipse.unixheads.org/tools/gef/downloads/drops/3.5.0/R200906221200/GEF-runtime-3.5.0.zip,\
+http://ftp.osuosl.org/pub/eclipse/modeling/emf/emf/downloads/drops/2.5.0/R200906151043/emf-runtime-2.5.0.zip,\
+http://ftp.osuosl.org/pub/eclipse/modeling/emf/emf/downloads/drops/2.5.0/R200906151043/xsd-runtime-2.5.0.zip,\
+http://eclipse.unixheads.org/webtools/downloads/drops/R3.1/R-3.1-20090616035105/wtp-R-3.1-20090616035105.zip,\
+http://eclipse.unixheads.org/webtools/downloads/drops/R3.1/R-3.1-20090616035105/wtp-jpt-R-3.1-20090616035105.zip,\
+http://eclipse.unixheads.org/eclipse/downloads/drops/R-3.5-200906111540/eclipse-SDK-3.5-linux-gtk.tar.gz
# alternate eclipse platforms - swap in above as needed
#http://anonsvn.jboss.org/repos/repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5RC3-win32.zip,\
16 years, 8 months
JBoss Tools SVN: r16805 - tags/jbpm-jpdl-4.0.0.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:38:02 -0400 (Mon, 27 Jul 2009)
New Revision: 16805
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.test/
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.test (from rev 16344, trunk/jbpm/tests/org.jboss.tools.jbpm.common.test)
16 years, 8 months
JBoss Tools SVN: r16804 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.jbpm.common.feature and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:37:05 -0400 (Mon, 27 Jul 2009)
New Revision: 16804
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/build.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.xml
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/build.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.xml
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature (from rev 16344, trunk/jbpm/features/org.jboss.tools.jbpm.common.feature)
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/build.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/build.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/build.properties 2009-07-27 07:37:05 UTC (rev 16804)
@@ -1 +0,0 @@
-bin.includes = feature.xml
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/build.properties (from rev 16437, trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/build.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/build.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/build.properties 2009-07-27 07:37:05 UTC (rev 16804)
@@ -0,0 +1,2 @@
+bin.includes = feature.xml,\
+ feature.properties
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.properties (from rev 16437, trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/feature.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.properties 2009-07-27 07:37:05 UTC (rev 16804)
@@ -0,0 +1,90 @@
+featureName=Common tools for jBPM 3 and jBPM 4
+featureProvider=JBoss by Red Hat
+description=This feature includes common end-user tools for jBPM 3 and jBPM 4.
+copyright=Copyright 2009 Red Hat, Inc.
+licenseURL=http://www.eclipse.org/legal/epl-v10.html
+license= Eclipse Public License - v 1.0\n\
+\n\
+THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.\n\
+\n\
+\n\
+1. DEFINITIONS\n\
+\n\
+"Contribution" means:\n\
+a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and\n\
+b) in the case of each subsequent Contributor:\n\
+ i) changes to the Program, and\n\
+ ii) additions to the Program;\n\
+where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program\n\
+which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.\n\
+\n\
+"Contributor" means any person or entity that distributes the Program.\n\
+\n\
+"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.\n\
+\n\
+"Program" means the Contributions distributed in accordance with this Agreement.\n\
+\n\
+"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.\n\
+\n\
+\n\
+2. GRANT OF RIGHTS\n\
+\n\
+a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source\n\
+code and object code form.\n\
+\n\
+b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor,\n\
+such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.\n\
+\n\
+c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other\n\
+intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.\n\
+\n\
+d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.\n\
+\n\
+\n\
+3. REQUIREMENTS\n\
+\n\
+A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:\n\
+a) it complies with the terms and conditions of this Agreement; and\n\
+b) its license agreement:\n\
+i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;\n\
+ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;\n\
+iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and\n\
+iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.\n\
+\n\
+When the Program is made available in source code form:\n\
+a) it must be made available under this Agreement; and\n\
+b) a copy of this Agreement must be included with each copy of the Program.\n\
+\n\
+Contributors may not remove or alter any copyright notices contained within the Program.\n\
+\n\
+Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.\n\
+\n\
+\n\
+4. COMMERCIAL DISTRIBUTION\n\
+\n\
+Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create\n\
+potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from\n\
+claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control,and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers wa!
rranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial\n\
+Contributor must pay those damages.\n\
+\n\
+\n\
+5. NO WARRANTY\n\
+\n\
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with\n\
+its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.\n\
+\n\
+\n\
+6. DISCLAIMER OF LIABILITY\n\
+\n\
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE\n\
+OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\
+\n\
+\n\
+7. GENERAL\n\
+\n\
+If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision\n\
+valid and enforceable. If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. Everyone is permit!
ted to copy and distribute copies of this Agreement,\n\
+but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version\n\
+number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.\n\
+\n\
+\n\
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.xml
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/feature.xml 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.xml 2009-07-27 07:37:05 UTC (rev 16804)
@@ -1,216 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.jboss.tools.jbpm.common.feature"
- label="jBPM Common"
- version="1.0.0.qualifier"
- provider-name="JBoss by Red Hat">
-
- <description>
- [Enter Feature Description here.]
- </description>
-
- <license url="http://www.eclipse.org/legal/epl-v10.html">
- Eclipse Public License - v 1.0
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS
-ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
-DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.
-1. DEFINITIONS
-"Contribution" means:
-a) in the case of the initial Contributor, the initial code and
-documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-i) changes to the Program, and
-ii) additions to the Program;
-where such changes and/or additions to the Program originate
-from and are distributed by that particular Contributor. A Contribution
-'originates' from a Contributor if it was added to the Program
-by such Contributor itself or anyone acting on such Contributor's
-behalf. Contributions do not include additions to the Program
-which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii)
-are not derivative works of the Program.
-"Contributor" means any person or entity that distributes the
-Program.
-"Licensed Patents " mean patent claims licensable by a Contributor
-which are necessarily infringed by the use or sale of its Contribution
-alone or when combined with the Program.
-"Program" means the Contributions distributed in accordance with
-this Agreement.
-"Recipient" means anyone who receives the Program under this
-Agreement, including all Contributors.
-2. GRANT OF RIGHTS
-a) Subject to the terms of this Agreement, each Contributor hereby
-grants Recipient a non-exclusive, worldwide, royalty-free copyright
-license to reproduce, prepare derivative works of, publicly display,
-publicly perform, distribute and sublicense the Contribution
-of such Contributor, if any, and such derivative works, in source
-code and object code form.
-b) Subject to the terms of this Agreement, each Contributor hereby
-grants Recipient a non-exclusive, worldwide, royalty-free patent
-license under Licensed Patents to make, use, sell, offer to sell,
-import and otherwise transfer the Contribution of such Contributor,
-if any, in source code and object code form. This patent license
-shall apply to the combination of the Contribution and the Program
-if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to
-be covered by the Licensed Patents. The patent license shall
-not apply to any other combinations which include the Contribution.
-No hardware per se is licensed hereunder.
-c) Recipient understands that although each Contributor grants
-the licenses to its Contributions set forth herein, no assurances
-are provided by any Contributor that the Program does not infringe
-the patent or other intellectual property rights of any other
-entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement
-of intellectual property rights or otherwise. As a condition
-to exercising the rights and licenses granted hereunder, each
-Recipient hereby assumes sole responsibility to secure any other
-intellectual property rights needed, if any. For example, if
-a third party patent license is required to allow Recipient to
-distribute the Program, it is Recipient's responsibility to acquire
-that license before distributing the Program.
-d) Each Contributor represents that to its knowledge it has sufficient
-copyright rights in its Contribution, if any, to grant the copyright
-license set forth in this Agreement.
-3. REQUIREMENTS
-A Contributor may choose to distribute the Program in object
-code form under its own license agreement, provided that:
-a) it complies with the terms and conditions of this Agreement;
-and
-b) its license agreement:
-i) effectively disclaims on behalf of all Contributors all warranties
-and conditions, express and implied, including warranties or
-conditions of title and non-infringement, and implied warranties
-or conditions of merchantability and fitness for a particular
-purpose;
-ii) effectively excludes on behalf of all Contributors all liability
-for damages, including direct, indirect, special, incidental
-and consequential damages, such as lost profits;
-iii) states that any provisions which differ from this Agreement
-are offered by that Contributor alone and not by any other party;
-and
-iv) states that source code for the Program is available from
-such Contributor, and informs licensees how to obtain it in a
-reasonable manner on or through a medium customarily used for
-software exchange.
-When the Program is made available in source code form:
-a) it must be made available under this Agreement; and
-b) a copy of this Agreement must be included with each copy of
-the Program.
-Contributors may not remove or alter any copyright notices contained
-within the Program.
-Each Contributor must identify itself as the originator of its
-Contribution, if any, in a manner that reasonably allows subsequent
-Recipients to identify the originator of the Contribution.
-4. COMMERCIAL DISTRIBUTION
-Commercial distributors of software may accept certain responsibilities
-with respect to end users, business partners and the like. While
-this license is intended to facilitate the commercial use of
-the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor
-includes the Program in a commercial product offering, such Contributor
-("Commercial Contributor") hereby agrees to defend and indemnify
-every other Contributor ("Indemnified Contributor") against any
-losses, damages and costs (collectively "Losses") arising from
-claims, lawsuits and other legal actions brought by a third party
-against the Indemnified Contributor to the extent caused by the
-acts or omissions of such Commercial Contributor in connection
-with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any
-claims or Losses relating to any actual or alleged intellectual
-property infringement. In order to qualify, an Indemnified Contributor
-must: a) promptly notify the Commercial Contributor in writing
-of such claim, and b) allow the Commercial Contributor to control,and
-cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor
-may participate in any such claim at its own expense. For example,
-a Contributor might include the Program in a commercial product
-offering, Product X. That Contributor is then a Commercial Contributor.
-If that Commercial Contributor then makes performance claims,
-or offers warranties related to Product X, those performance
-claims and warranties are such Commercial Contributor's responsibility
-alone. Under this section, the Commercial Contributor would have
-to defend claims against the other Contributors related to those
-performance claims and warranties, and if a court requires any
-other Contributor to pay any damages as a result, the Commercial
-Contributor must pay those damages.
-5. NO WARRANTY
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM
-IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
-OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
-ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
-OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and
-distributing the Program and assumes all risks associated with
-its exercise of rights under this Agreement , including but not
-limited to the risks and costs of program errors, compliance
-with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations.
-6. DISCLAIMER OF LIABILITY
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
-NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE
-OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY
-OF SUCH DAMAGES.
-7. GENERAL
-If any provision of this Agreement is invalid or unenforceable
-under applicable law, it shall not affect the validity or enforceability
-of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be
-reformed to the minimum extent necessary to make such provision
-valid and enforceable. If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in
-a lawsuit) alleging that the Program itself (excluding combinations
-of the Program with other software or hardware) infringes such
-Recipient's patent(s), then such Recipient's rights granted under
-Section 2(b) shall terminate as of the date such litigation is
-filed. All Recipient's rights under this Agreement shall terminate
-if it fails to comply with any of the material terms or conditions
-of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If
-all Recipient's rights under this Agreement terminate, Recipient
-agrees to cease use and distribution of the Program as soon as
-reasonably practicable. However, Recipient's obligations under
-this Agreement and any licenses granted by Recipient relating
-to the Program shall continue and survive. Everyone is permitted
-to copy and distribute copies of this Agreement,
-but in order to avoid inconsistency the Agreement is copyrighted
-and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including
-revisions) of this Agreement from time to time. No one other
-than the Agreement Steward has the right to modify this Agreement.
-The Eclipse Foundation is the initial Agreement Steward. The
-Eclipse Foundation may assign the responsibility to serve as
-the Agreement Steward to a suitable separate entity. Each new
-version of the Agreement will be given a distinguishing version
-number. The Program (including Contributions) may always be distributed
-subject to the version of the Agreement under which it was received.
-In addition, after a new version of the Agreement is published,
-Contributor may elect to distribute the Program (including its
-Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights
-or licenses to the intellectual property of any Contributor under
-this Agreement, whether expressly, by implication, estoppel or
-otherwise. All rights in the Program not expressly granted under
-this Agreement are reserved. This Agreement is governed by the
-laws of the State of New York and the intellectual property laws
-of the United States of America. No party to this Agreement will
-bring a legal action under this Agreement more than one year
-after the cause of action arose. Each party waives its rights
-to a jury trial in any resulting litigation.
- </license>
-
- <plugin
- id="org.jboss.tools.jbpm.common"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
-</feature>
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.xml (from rev 16437, trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/feature.xml)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.xml (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/feature.xml 2009-07-27 07:37:05 UTC (rev 16804)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.jbpm.common.feature"
+ label="%featureName"
+ version="1.0.0.qualifier"
+ provider-name="%featureProvider">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin
+ id="org.jboss.tools.jbpm.common"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties 2009-07-27 07:37:05 UTC (rev 16804)
@@ -1,21 +0,0 @@
-# properties file for org.jboss.tools.jmx.source
-featureName=jBPM Common Source
-featureProvider=JBoss by Red Hat
-
-# "updateSiteName" property - label for the update site
-updateSiteName=JBossTools Update Site
-
-# "description" property - description of the feature
-description=jBPM Common Source
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# START NON-TRANSLATABLE
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\nMarch 17, 2005\n\nUsage Of Content\n\nTHE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\nOTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\nUSE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\nAGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\nNOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\nAGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\nAND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\nOR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\nTERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\nOF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\nBELOW, THEN YOU MAY NOT USE THE CONTENT.\n\nApplicable Licenses\n\nUnless otherwise indicated, all Content made available by the Eclipse Foundation\nis provided to you under the terms and conditio!
ns of the Eclipse Public\nLicense Version 1.0 ("EPL"). A copy of the EPL is provided with this\nContent and is also available at http\://www.eclipse.org/legal/epl-v10.html.\nFor purposes of the EPL, "Program" will mean the Content.\n\nContent includes, but is not limited to, source code, object code,\ndocumentation and other files maintained in the Eclipse.org CVS\nrepository ("Repository") in CVS modules ("Modules") and made available\nas downloadable archives ("Downloads").\n\n- Content may be structured and packaged into modules to facilitate delivering,\nextending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\nplug-in fragments ("Fragments"), and features ("Features").\n- Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\nin a directory named "plugins".\n- A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\nEach Feature may be packaged as a sub-directory in a directory!
named "features".\nWithin a Feature, files named "feature.xml!
" may co
ntain a list of the names and version\nnumbers of the Plug-ins and/or Fragments associated with that Feature.\n- Features may also include other Features ("Included Features"). Within a Feature, files\nnamed "feature.xml" may contain a list of the names and version numbers of Included Features.\n\nFeatures may also include other Features ("Included Features"). Files named\n"feature.xml" may contain a list of the names and version numbers of\nIncluded Features.\n\nThe terms and conditions governing Plug-ins and Fragments should be\ncontained in files named "about.html" ("Abouts"). The terms and\nconditions governing Features and Included Features should be contained\nin files named "license.html" ("Feature Licenses"). Abouts and Feature\nLicenses may be located in any directory of a Download or Module\nincluding, but not limited to the following locations\:\n\n- The top-level (root) directory\n- Plug-in and Fragment directories\n- Inside Plug-ins and Fragments packaged as JAR!
s\n- Sub-directories of the directory named "src" of certain Plug-ins\n- Feature directories\n\nNote\: if a Feature made available by the Eclipse Foundation is installed using the\nEclipse Update Manager, you must agree to a license ("Feature Update\nLicense") during the installation process. If the Feature contains\nIncluded Features, the Feature Update License should either provide you\nwith the terms and conditions governing the Included Features or inform\nyou where you can locate them. Feature Update Licenses may be found in\nthe "license" property of files named "feature.properties". Such Abouts,\nFeature Licenses and Feature Update Licenses contain the terms and\nconditions (or references to such terms and conditions) that govern your\nuse of the associated Content in that directory.\n\nTHE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\nTO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\nSOME OF THESE OTHER LICENSE AGREEMENTS MA!
Y INCLUDE (BUT ARE NOT LIMITED TO)\:\n\n- Common Public Licens!
e Versio
n 1.0 (available at http\://www.eclipse.org/legal/cpl-v10.html)\n- Apache Software License 1.1 (available at http\://www.apache.org/licenses/LICENSE)\n- Apache Software License 2.0 (available at http\://www.apache.org/licenses/LICENSE-2.0)\n- IBM Public License 1.0 (available at http\://oss.software.ibm.com/developerworks/opensource/license10.html)\n- Metro Link Public License 1.00 (available at http\://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n- Mozilla Public License Version 1.1 (available at http\://www.mozilla.org/MPL/MPL-1.1.html)\n\nIT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\nTO USE OF THE CONTENT. If no About, Feature License or Feature Update License\nis provided, please contact the Eclipse Foundation to determine what terms and conditions\ngovern that particular Content.\n\nCryptography\n\nContent may contain encryption software. The country in which you are\ncurrently may have restrictions on the import, posse!
ssion, and use,\nand/or re-export to another country, of encryption software. BEFORE\nusing any encryption software, please check the country's laws,\nregulations and policies concerning the import, possession, or use,\nand re-export of encryption software, to see if this is permitted.\n\nJava and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-# END NON-TRANSLATABLE
-########### end of license property ##########################################
-
\ No newline at end of file
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties (from rev 16469, trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplateFeature/feature.properties 2009-07-27 07:37:05 UTC (rev 16804)
@@ -0,0 +1,21 @@
+# properties file for org.jboss.tools.jmx.source
+featureName=Common tools for jBPM 3 and jBPM 4 Sources
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=jBPM Common Source
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\nMarch 17, 2005\n\nUsage Of Content\n\nTHE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\nOTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\nUSE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\nAGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\nNOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\nAGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\nAND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\nOR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\nTERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\nOF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\nBELOW, THEN YOU MAY NOT USE THE CONTENT.\n\nApplicable Licenses\n\nUnless otherwise indicated, all Content made available by the Eclipse Foundation\nis provided to you under the terms and conditio!
ns of the Eclipse Public\nLicense Version 1.0 ("EPL"). A copy of the EPL is provided with this\nContent and is also available at http\://www.eclipse.org/legal/epl-v10.html.\nFor purposes of the EPL, "Program" will mean the Content.\n\nContent includes, but is not limited to, source code, object code,\ndocumentation and other files maintained in the Eclipse.org CVS\nrepository ("Repository") in CVS modules ("Modules") and made available\nas downloadable archives ("Downloads").\n\n- Content may be structured and packaged into modules to facilitate delivering,\nextending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\nplug-in fragments ("Fragments"), and features ("Features").\n- Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\nin a directory named "plugins".\n- A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\nEach Feature may be packaged as a sub-directory in a directory!
named "features".\nWithin a Feature, files named "feature.xml!
" may co
ntain a list of the names and version\nnumbers of the Plug-ins and/or Fragments associated with that Feature.\n- Features may also include other Features ("Included Features"). Within a Feature, files\nnamed "feature.xml" may contain a list of the names and version numbers of Included Features.\n\nFeatures may also include other Features ("Included Features"). Files named\n"feature.xml" may contain a list of the names and version numbers of\nIncluded Features.\n\nThe terms and conditions governing Plug-ins and Fragments should be\ncontained in files named "about.html" ("Abouts"). The terms and\nconditions governing Features and Included Features should be contained\nin files named "license.html" ("Feature Licenses"). Abouts and Feature\nLicenses may be located in any directory of a Download or Module\nincluding, but not limited to the following locations\:\n\n- The top-level (root) directory\n- Plug-in and Fragment directories\n- Inside Plug-ins and Fragments packaged as JAR!
s\n- Sub-directories of the directory named "src" of certain Plug-ins\n- Feature directories\n\nNote\: if a Feature made available by the Eclipse Foundation is installed using the\nEclipse Update Manager, you must agree to a license ("Feature Update\nLicense") during the installation process. If the Feature contains\nIncluded Features, the Feature Update License should either provide you\nwith the terms and conditions governing the Included Features or inform\nyou where you can locate them. Feature Update Licenses may be found in\nthe "license" property of files named "feature.properties". Such Abouts,\nFeature Licenses and Feature Update Licenses contain the terms and\nconditions (or references to such terms and conditions) that govern your\nuse of the associated Content in that directory.\n\nTHE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\nTO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\nSOME OF THESE OTHER LICENSE AGREEMENTS MA!
Y INCLUDE (BUT ARE NOT LIMITED TO)\:\n\n- Common Public Licens!
e Versio
n 1.0 (available at http\://www.eclipse.org/legal/cpl-v10.html)\n- Apache Software License 1.1 (available at http\://www.apache.org/licenses/LICENSE)\n- Apache Software License 2.0 (available at http\://www.apache.org/licenses/LICENSE-2.0)\n- IBM Public License 1.0 (available at http\://oss.software.ibm.com/developerworks/opensource/license10.html)\n- Metro Link Public License 1.00 (available at http\://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n- Mozilla Public License Version 1.1 (available at http\://www.mozilla.org/MPL/MPL-1.1.html)\n\nIT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\nTO USE OF THE CONTENT. If no About, Feature License or Feature Update License\nis provided, please contact the Eclipse Foundation to determine what terms and conditions\ngovern that particular Content.\n\nCryptography\n\nContent may contain encryption software. The country in which you are\ncurrently may have restrictions on the import, posse!
ssion, and use,\nand/or re-export to another country, of encryption software. BEFORE\nusing any encryption software, please check the country's laws,\nregulations and policies concerning the import, possession, or use,\nand re-export of encryption software, to see if this is permitted.\n\nJava and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
+
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties 2009-07-27 07:37:05 UTC (rev 16804)
@@ -1,3 +0,0 @@
-pluginName = jBPM Common Source
-providerName = JBoss by Red Hat
-
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties (from rev 16469, trunk/jbpm/features/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common.feature/sourceTemplatePlugin/plugin.properties 2009-07-27 07:37:05 UTC (rev 16804)
@@ -0,0 +1,3 @@
+pluginName = Common tools for jBPM 3 and jBPM 4 Sources
+providerName = JBoss by Red Hat
+
16 years, 8 months
JBoss Tools SVN: r16803 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.jbpm.common and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:35:56 -0400 (Mon, 27 Jul 2009)
New Revision: 16803
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/plugin.xml
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/plugin.xml
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common (from rev 16344, trunk/jbpm/plugins/org.jboss.tools.jbpm.common)
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF 2009-07-27 07:35:56 UTC (rev 16803)
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: jPDL Integration Tools
-Bundle-SymbolicName: org.jboss.tools.jbpm.common;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: JBoss by Red Hat
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Require-Bundle: org.eclipse.jface;bundle-version="3.4.2",
- org.eclipse.ui;bundle-version="3.4.2",
- org.eclipse.core.runtime;bundle-version="3.4.0",
- org.eclipse.jdt.core;bundle-version="3.4.4",
- org.eclipse.core.resources;bundle-version="3.4.2",
- org.eclipse.ui.ide;bundle-version="3.4.2"
-Export-Package: org.jboss.tools.jbpm,
- org.jboss.tools.jbpm.java,
- org.jboss.tools.jbpm.preferences,
- org.jboss.tools.jbpm.util
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF (from rev 16436, trunk/jbpm/plugins/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/META-INF/MANIFEST.MF 2009-07-27 07:35:56 UTC (rev 16803)
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Common Tools for jBPM 3 and jBPM 4
+Bundle-SymbolicName: org.jboss.tools.jbpm.common;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Vendor: JBoss by Red Hat
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.eclipse.jface;bundle-version="3.4.2",
+ org.eclipse.ui;bundle-version="3.4.2",
+ org.eclipse.core.runtime;bundle-version="3.4.0",
+ org.eclipse.jdt.core;bundle-version="3.4.4",
+ org.eclipse.core.resources;bundle-version="3.4.2",
+ org.eclipse.ui.ide;bundle-version="3.4.2"
+Export-Package: org.jboss.tools.jbpm,
+ org.jboss.tools.jbpm.java,
+ org.jboss.tools.jbpm.preferences,
+ org.jboss.tools.jbpm.util
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/plugin.xml
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.jbpm.common/plugin.xml 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/plugin.xml 2009-07-27 07:35:56 UTC (rev 16803)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.ui.preferencePages">
- <page
- class="org.jboss.tools.jbpm.preferences.DefaultPage"
- id="org.jboss.tools.jbpm"
- name="JBoss jBPM"/>
- </extension>
-
- <extension
- point="org.eclipse.ui.newWizards">
- <category
- name="JBoss jBPM"
- id="org.jboss.tools.jbpm">
- </category>
- </extension>
-
-</plugin>
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/plugin.xml (from rev 16387, trunk/jbpm/plugins/org.jboss.tools.jbpm.common/plugin.xml)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/plugin.xml (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.jbpm.common/plugin.xml 2009-07-27 07:35:56 UTC (rev 16803)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ class="org.jboss.tools.jbpm.preferences.DefaultPage"
+ id="org.jboss.tools.jbpm"
+ name="JBoss jBPM"/>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.newWizards">
+ <category
+ name="JBoss jBPM"
+ id="org.jboss.tools.jbpm">
+ </category>
+ </extension>
+ <extension
+ point="org.eclipse.ui.views">
+ <category
+ id="org.jboss.tools.jbpm"
+ name="JBoss jBPM">
+ </category>
+ </extension>
+
+</plugin>
16 years, 8 months
JBoss Tools SVN: r16802 - tags/jbpm-jpdl-4.0.0.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:34:57 -0400 (Mon, 27 Jul 2009)
New Revision: 16802
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.test/
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.test (from rev 16344, trunk/jbpm/tests/org.jboss.tools.flow.jpdl4.test)
16 years, 8 months
JBoss Tools SVN: r16801 - tags/jbpm-jpdl-4.0.0.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:34:01 -0400 (Mon, 27 Jul 2009)
New Revision: 16801
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage.test/
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage.test (from rev 16344, trunk/jbpm/tests/org.jboss.tools.flow.jpdl4.multipage.test)
16 years, 8 months
JBoss Tools SVN: r16800 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.flow.jpdl4.multipage and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:33:08 -0400 (Mon, 27 Jul 2009)
New Revision: 16800
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/plugin.properties
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/plugin.properties
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage (from rev 16344, trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage)
Deleted: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/plugin.properties
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/plugin.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/plugin.properties 2009-07-27 07:33:08 UTC (rev 16800)
@@ -1,2 +0,0 @@
-pluginName=Jpdl4 Multipage Editor Plug-in
-providerName=JBoss by Red Hat
\ No newline at end of file
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/plugin.properties (from rev 16468, trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4.multipage/plugin.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/plugin.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.multipage/plugin.properties 2009-07-27 07:33:08 UTC (rev 16800)
@@ -0,0 +1,2 @@
+pluginName=Jpdl4 Multipage Editor
+providerName=JBoss by Red Hat
\ No newline at end of file
16 years, 8 months
JBoss Tools SVN: r16799 - in trunk/smooks/plugins: org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-07-27 03:25:30 -0400 (Mon, 27 Jul 2009)
New Revision: 16799
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/Javabean12ExpressionUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanValueBinding12UICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanWiringBiding12UICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms12/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms12/JMSRouter12UICreator.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/BeanTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/ValueTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/WiringTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanExpressionUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanValueUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanWiringUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/PropertiesAndSetterMethodSearchFieldEditorCreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java
Log:
JBIDE-4217
Create property details GUI for Javabean v1.2 and JMS router v1.2
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-07-27 07:25:30 UTC (rev 16799)
@@ -535,7 +535,7 @@
_UI_HighWaterMark_type = High Water Mark
_UI_Jndi_type = Jndi
_UI_Message_type = Message
-_UI_JMS12Router_type = JMS12 Router
+_UI_JMS12Router_type = JMS Router v1.2
_UI_Session_type = Session
UI_Connection_factory_feature = Factory
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/BeanTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/BeanTypeItemProvider.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/BeanTypeItemProvider.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -10,16 +10,11 @@
import java.util.Collection;
import java.util.List;
-
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.ecore.util.FeatureMapUtil;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -232,10 +227,11 @@
* @generated
*/
public String getText(Object object) {
- String label = ((BeanType)object).getTargetProfile();
+ String label = ((BeanType)object).getBeanId();
return label == null || label.length() == 0 ?
getString("_UI_BeanType_type") :
- getString("_UI_BeanType_type") + " " + label;
+ getString("_UI_BeanType_type") + " (" + label+")";
+
}
/**
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/ValueTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/ValueTypeItemProvider.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/ValueTypeItemProvider.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -11,14 +11,10 @@
import java.util.Collection;
import java.util.List;
-
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -253,10 +249,10 @@
* @generated
*/
public String getText(Object object) {
- String label = ((ValueType)object).getData();
+ String label = ((ValueType)object).getProperty();
return label == null || label.length() == 0 ?
getString("_UI_ValueType_type") :
- getString("_UI_ValueType_type") + " " + label;
+ getString("_UI_ValueType_type") + " (" + label + ")";
}
/**
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/WiringTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/WiringTypeItemProvider.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean12/provider/WiringTypeItemProvider.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -199,10 +199,10 @@
* @generated
*/
public String getText(Object object) {
- String label = ((WiringType)object).getBeanIdRef();
+ String label = ((WiringType)object).getProperty();
return label == null || label.length() == 0 ?
getString("_UI_WiringType_type") :
- getString("_UI_WiringType_type") + " " + label;
+ getString("_UI_WiringType_type") + " (" + label+")";
}
/**
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -43,11 +43,16 @@
import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanExpressionUICreator;
import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanValueUICreator;
import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanWiringUICreator;
+import org.jboss.tools.smooks.configuration.editors.javabean12.JavaBean12PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.javabean12.Javabean12ExpressionUICreator;
+import org.jboss.tools.smooks.configuration.editors.javabean12.JavabeanValueBinding12UICreator;
+import org.jboss.tools.smooks.configuration.editors.javabean12.JavabeanWiringBiding12UICreator;
import org.jboss.tools.smooks.configuration.editors.jms.ConnectionUICreator;
import org.jboss.tools.smooks.configuration.editors.jms.JmsRouterUICreator;
import org.jboss.tools.smooks.configuration.editors.jms.JndiUICreator;
import org.jboss.tools.smooks.configuration.editors.jms.MessageUICreator;
import org.jboss.tools.smooks.configuration.editors.jms.SessionUICreator;
+import org.jboss.tools.smooks.configuration.editors.jms12.JMSRouter12UICreator;
import org.jboss.tools.smooks.configuration.editors.json.JsonReaderUICreator;
import org.jboss.tools.smooks.configuration.editors.json.KeyMapUICreator;
import org.jboss.tools.smooks.configuration.editors.json.KeyUICreator;
@@ -92,11 +97,13 @@
import org.jboss.tools.smooks.model.javabean.impl.ExpressionTypeImpl;
import org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl;
import org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl;
+import org.jboss.tools.smooks.model.javabean12.impl.BeanTypeImpl;
import org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl;
import org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl;
import org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl;
import org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl;
import org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl;
+import org.jboss.tools.smooks.model.jmsrouting12.impl.JMS12RouterImpl;
import org.jboss.tools.smooks.model.json.impl.JsonReaderImpl;
import org.jboss.tools.smooks.model.json.impl.KeyImpl;
import org.jboss.tools.smooks.model.json.impl.KeyMapImpl;
@@ -153,7 +160,7 @@
map.put(BindingsTypeImpl.class, new BindingsPropertyUICreator());
map.put(ValueTypeImpl.class, new JavabeanValueUICreator());
map.put(WiringTypeImpl.class, new JavabeanWiringUICreator());
- map.put(ExpressionTypeImpl.class,new JavabeanExpressionUICreator());
+ map.put(ExpressionTypeImpl.class, new JavabeanExpressionUICreator());
// for smooks models
map.put(ConditionTypeImpl.class, new ConditionTypeUICreator());
@@ -173,7 +180,6 @@
map.put(SetOnTypeImpl.class, new SetOnTypeUICreator());
map.put(SmooksResourceListTypeImpl.class, new SmooksResourceListTypeUICreator());
-
// for xsl models
map.put(BindToImpl.class, new BindToUICreator());
map.put(OutputToImpl.class, new OutputToUICreator());
@@ -217,13 +223,13 @@
map.put(KeyImpl.class, new KeyUICreator());
map.put(KeyMapImpl.class, new KeyMapUICreator());
map.put(JsonReaderImpl.class, new JsonReaderUICreator());
-
+
// for CSV
map.put(CsvReaderImpl.class, new CsvReaderUICreator());
-
+
// for IO Routing
map.put(IORouterImpl.class, new IORouterUICreator());
-
+
// for JMS
map.put(ConnectionImpl.class, new ConnectionUICreator());
map.put(HighWaterMarkImpl.class, new HighWaterMarkUICreator());
@@ -231,7 +237,7 @@
map.put(MessageImpl.class, new MessageUICreator());
map.put(JmsRouterImpl.class, new JmsRouterUICreator());
map.put(SessionImpl.class, new SessionUICreator());
-
+
// for DB routing
map.put(ExecutorImpl.class, new ExecutorUICreator());
map.put(ResultSetImpl.class, new ResultSetUICreator());
@@ -239,7 +245,7 @@
// for calc
map.put(CounterImpl.class, new CounterUICreator());
-
+
// for datasource
map.put(DirectImpl.class, new DirectUICreator());
map.put(DataSourceJndiImpl.class, new DataSourceJndiUICreator());
@@ -250,6 +256,22 @@
* up is for smooks1.1
*/
+ /*
+ * bottom is for smooks 1.2
+ */
+
+ // for JavaBean v1.2
+ map.put(BeanTypeImpl.class, new JavaBean12PropertyUICreator());
+ map
+ .put(org.jboss.tools.smooks.model.javabean12.impl.ValueTypeImpl.class,
+ new JavabeanValueBinding12UICreator());
+ map.put(org.jboss.tools.smooks.model.javabean12.impl.ExpressionTypeImpl.class,
+ new Javabean12ExpressionUICreator());
+ map.put(org.jboss.tools.smooks.model.javabean12.impl.WiringTypeImpl.class,
+ new JavabeanWiringBiding12UICreator());
+
+ // for JMS Router v1.2
+ map.put(JMS12RouterImpl.class, new JMSRouter12UICreator());
}
public void registePropertyUICreator(Class<?> key, IPropertyUICreator creator) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanExpressionUICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanExpressionUICreator.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanExpressionUICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -29,6 +29,7 @@
import org.jboss.tools.smooks.configuration.editors.uitls.FieldAssistDisposer;
import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.javabean.BindingsType;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
/**
@@ -37,7 +38,15 @@
*/
public class JavabeanExpressionUICreator extends PropertiesAndSetterMethodSearchFieldEditorCreator implements
IPropertyUICreator {
-
+ protected String getClassString(Object model) {
+ if (model instanceof EObject) {
+ EObject container = ((EObject) model).eContainer();
+ if(container instanceof BindingsType){
+ return ((BindingsType)container).getClass_();
+ }
+ }
+ return super.getClassString(model);
+ }
/*
* (non-Javadoc)
*
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanValueUICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanValueUICreator.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanValueUICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -14,6 +14,7 @@
import java.util.List;
import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.swt.widgets.Composite;
@@ -22,6 +23,7 @@
import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.javabean.BindingsType;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
/**
@@ -46,7 +48,23 @@
}
return super.canCreateMethodsSearchFieldEditor(feature);
}
+
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.configuration.editors.javabean.PropertiesAndSetterMethodSearchFieldEditorCreator#getClassString(java.lang.Object)
+ */
+ @Override
+ protected String getClassString(Object model) {
+ if (model instanceof EObject) {
+ EObject container = ((EObject) model).eContainer();
+ if(container instanceof BindingsType){
+ return ((BindingsType)container).getClass_();
+ }
+ }
+ return super.getClassString(model);
+ }
+
/*
* (non-Javadoc)
*
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanWiringUICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanWiringUICreator.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanWiringUICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -14,6 +14,7 @@
import java.util.List;
import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.swt.widgets.Composite;
@@ -21,6 +22,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.javabean.BindingsType;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
/**
@@ -35,6 +37,16 @@
// }
return false;
}
+
+ protected String getClassString(Object model) {
+ if (model instanceof EObject) {
+ EObject container = ((EObject) model).eContainer();
+ if(container instanceof BindingsType){
+ return ((BindingsType)container).getClass_();
+ }
+ }
+ return super.getClassString(model);
+ }
@Override
protected boolean canCreateMethodsSearchFieldEditor(EAttribute feature) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/PropertiesAndSetterMethodSearchFieldEditorCreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/PropertiesAndSetterMethodSearchFieldEditorCreator.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/PropertiesAndSetterMethodSearchFieldEditorCreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -20,8 +20,9 @@
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.editor.ISmooksModelProvider;
-import org.jboss.tools.smooks.model.javabean.BindingsType;
+//import org.jboss.tools.smooks.model.javabean.BindingsType;
+
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 9, 2009
*/
@@ -37,7 +38,7 @@
if (canCreateMethodsSearchFieldEditor(feature)) {
return createMethodsSearchFieldEditor(toolkit, parent, propertyDescriptor, model);
}
- return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor,part);
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor, part);
}
protected boolean canCreatePropertiesSearchFieldEditor(EAttribute feature) {
@@ -60,20 +61,26 @@
IItemPropertyDescriptor propertyDescriptor, Object model) {
if (model instanceof EObject) {
EObject container = ((EObject) model).eContainer();
- if (container instanceof BindingsType) {
- return SmooksUIUtils.createJavaPropertySearchFieldEditor((BindingsType) container, parent, toolkit,
+ String classString = getClassString(model);
+ if (classString != null) {
+ return SmooksUIUtils.createJavaPropertySearchFieldEditor(classString, container, parent, toolkit,
propertyDescriptor, getPropertiesSearchButtonName(), (EObject) model);
}
}
return null;
}
+ protected String getClassString(Object model) {
+ return null;
+ }
+
protected AttributeFieldEditPart createMethodsSearchFieldEditor(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model) {
if (model instanceof EObject) {
EObject container = ((EObject) model).eContainer();
- if (container instanceof BindingsType) {
- return SmooksUIUtils.createJavaMethodSearchFieldEditor((BindingsType) container, parent, toolkit,
+ String classString = getClassString(model);
+ if (classString != null) {
+ return SmooksUIUtils.createJavaMethodSearchFieldEditor(classString, container, parent, toolkit,
propertyDescriptor, getMethodsSearchButtonName(), (EObject) model);
}
}
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -0,0 +1,306 @@
+/*******************************************************************************
+ * 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.smooks.configuration.editors.javabean12;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.common.command.CompoundCommand;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.command.AddCommand;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.edit.domain.IEditingDomainProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.forms.events.HyperlinkEvent;
+import org.eclipse.ui.forms.events.IHyperlinkListener;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Hyperlink;
+import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.javabean.JavaBeanModel;
+import org.jboss.tools.smooks.configuration.editors.javabean.JavaBeanModelFactory;
+import org.jboss.tools.smooks.configuration.editors.javabean.ValueWiringBindingSelectionDialog;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
+import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.javabean12.BeanType;
+import org.jboss.tools.smooks.model.javabean12.Javabean12Factory;
+import org.jboss.tools.smooks.model.javabean12.Javabean12Package;
+import org.jboss.tools.smooks.model.javabean12.ValueType;
+import org.jboss.tools.smooks.model.javabean12.WiringType;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ * <p>
+ * Apr 8, 2009
+ */
+public class JavaBean12PropertyUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.IPropertyUICreator#canCreate
+ * (org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public boolean canCreate(IItemPropertyDescriptor itemPropertyDescriptor, Object model, EAttribute feature) {
+ if (feature == Javabean12Package.eINSTANCE.getBeanType_Class()) {
+ return true;
+ }
+ return false;
+ }
+
+
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#ignoreProperty
+ * (org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ public boolean ignoreProperty(EAttribute feature) {
+ if (feature == Javabean12Package.eINSTANCE.getBeanType_CreateOnElement()) {
+ return true;
+ }
+ if (feature == Javabean12Package.eINSTANCE.getBeanType_CreateOnElementNS()) {
+ return true;
+ }
+ return super.ignoreProperty(feature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent,
+ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
+ ISmooksModelProvider formEditor, IEditorPart part) {
+ if (feature == Javabean12Package.eINSTANCE.getBeanType_Class()) {
+ return createBeanClassTextWithButton(parent, toolkit, propertyDescriptor, model);
+ }
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor, part);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#createExtendUI
+ * (org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain,
+ * org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite, java.lang.Object,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public List<AttributeFieldEditPart> createExtendUIOnTop(AdapterFactoryEditingDomain editingdomain,
+ FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvider formEditor, IEditorPart part) {
+ return createElementSelectionSection("Create On Element", editingdomain, toolkit, parent, model, formEditor,
+ part, Javabean12Package.Literals.BEAN_TYPE__CREATE_ON_ELEMENT,
+ Javabean12Package.Literals.BEAN_TYPE__CREATE_ON_ELEMENT_NS);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.PropertyUICreator#
+ * createExtendUIOnBottom
+ * (org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain,
+ * org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite, java.lang.Object,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public List<AttributeFieldEditPart> createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain,
+ FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvider formEditor, IEditorPart part) {
+ List<AttributeFieldEditPart> lists = super.createExtendUIOnBottom(editingdomain, toolkit, parent, model,
+ formEditor, part);
+
+ Composite separator = toolkit.createCompositeSeparator(parent);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.heightHint = 1;
+ gd.horizontalSpan = 2;
+ separator.setLayoutData(gd);
+
+ Hyperlink link = toolkit.createHyperlink(parent, "Add Binding", SWT.NONE);
+ final Composite fp = parent;
+ final BeanType fb = (BeanType) model;
+ final IEditorPart ff = part;
+ link.addHyperlinkListener(new IHyperlinkListener() {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ui.forms.events.IHyperlinkListener#linkActivated(
+ * org.eclipse.ui.forms.events.HyperlinkEvent)
+ */
+ public void linkActivated(HyperlinkEvent e) {
+ addValueWiringAuto(fp, fb, ff);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ui.forms.events.IHyperlinkListener#linkEntered(org
+ * .eclipse.ui.forms.events.HyperlinkEvent)
+ */
+ public void linkEntered(HyperlinkEvent e) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ui.forms.events.IHyperlinkListener#linkExited(org
+ * .eclipse.ui.forms.events.HyperlinkEvent)
+ */
+ public void linkExited(HyperlinkEvent e) {
+ // TODO Auto-generated method stub
+
+ }
+
+ });
+ gd = new GridData();
+ gd.horizontalSpan = 2;
+ link.setLayoutData(gd);
+
+ return lists;
+ }
+
+ private void addValueWiringAuto(Composite parent, BeanType bindings, IEditorPart formEditor) {
+ boolean haveClassValue = false;
+ if (bindings.eIsSet(Javabean12Package.Literals.BEAN_TYPE__CLASS)) {
+ haveClassValue = true;
+ }
+ if (!haveClassValue) {
+ MessageDialog.openError(parent.getShell(), "Error", "Can't get the 'class' value.");
+ return;
+ }
+ String className = bindings.getClass_();
+ if (className == null || className.length() == 0) {
+ MessageDialog.openError(parent.getShell(), "Error", "The 'class' value shouldn't be empty.");
+ return;
+ }
+ try {
+ Class<?> clazz = SmooksUIUtils.loadClass(className, ((IFileEditorInput) formEditor.getEditorInput())
+ .getFile());
+ JavaBeanModel beanModel = JavaBeanModelFactory.getJavaBeanModelWithLazyLoad(clazz);
+ if (beanModel != null) {
+ String[] ignores = findoutIgnoreProperty(bindings);
+ ValueWiringBindingSelectionDialog dialog = new ValueWiringBindingSelectionDialog(parent.getShell(),
+ beanModel, ignores);
+ if (dialog.open() == Dialog.OK) {
+ Object[] checkedModels = dialog.getCheckedObject();
+ if (checkedModels == null)
+ return;
+ if (formEditor instanceof IEditingDomainProvider) {
+ generateValueWiringModel(checkedModels, (IEditingDomainProvider)formEditor, bindings);
+ }
+ }
+ }
+ } catch (JavaModelException e) {
+ e.printStackTrace();
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ private void generateValueWiringModel(Object[] models, IEditingDomainProvider editor, BeanType owner) {
+ EditingDomain domain = editor.getEditingDomain();
+ CompoundCommand command = new CompoundCommand();
+ command.setDescription("Add Binding");
+ command.setLabel("Auto add binding");
+ for (int i = 0; i < models.length; i++) {
+ Object model = models[i];
+ if (model instanceof JavaBeanModel) {
+ Command c = generateAddCommand((JavaBeanModel) model, domain, owner);
+ command.append(c);
+ }
+ }
+ domain.getCommandStack().execute(command);
+ }
+
+ private Command generateAddCommand(JavaBeanModel beanModel, EditingDomain domain, BeanType owner) {
+ if (beanModel.isPrimitive()) {
+ ValueType valueType = Javabean12Factory.eINSTANCE.createValueType();
+ valueType.setProperty(beanModel.getName());
+ return AddCommand.create(domain, owner, Javabean12Package.Literals.BEAN_TYPE__VALUE, valueType);
+ } else {
+ WiringType wiring = Javabean12Factory.eINSTANCE.createWiringType();
+ wiring.setProperty(beanModel.getName());
+ return AddCommand.create(domain, owner, Javabean12Package.Literals.BEAN_TYPE__WIRING, wiring);
+ }
+ }
+
+ private String[] findoutIgnoreProperty(BeanType bindings) {
+ List<String> ignores = new ArrayList<String>();
+ List<ValueType> valueList = bindings.getValue();
+
+ for (Iterator<?> iterator = valueList.iterator(); iterator.hasNext();) {
+ ValueType valueType = (ValueType) iterator.next();
+ // boolean unset =
+ // valueType.eIsSet(JavabeanPackage.Literals.VALUE_TYPE__PROPERTY);
+ // if(unset) continue;
+ String pro = valueType.getProperty();
+ if (pro != null && pro.length() != 0) {
+ ignores.add(pro);
+ }
+ }
+ List<WiringType> wiringList = bindings.getWiring();
+ for (Iterator<?> iterator = wiringList.iterator(); iterator.hasNext();) {
+ WiringType wiringType = (WiringType) iterator.next();
+ // boolean unset =
+ // wiringType.eIsSet(JavabeanPackage.Literals.WIRING_TYPE__PROPERTY);
+ // if(unset) continue;
+ String pro = wiringType.getProperty();
+ if (pro != null && pro.length() != 0) {
+ ignores.add(pro);
+ }
+ }
+ if (ignores.isEmpty())
+ return null;
+ return ignores.toArray(new String[] {});
+
+ }
+
+ @Override
+ public boolean isSelectorFeature(EAttribute attribute) {
+ return super.isSelectorFeature(attribute);
+ }
+
+ protected AttributeFieldEditPart createBeanClassTextWithButton(Composite composite, FormToolkit toolkit,
+ final IItemPropertyDescriptor propertyDescriptor, final Object model) {
+ return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit, propertyDescriptor, (EObject) model);
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/Javabean12ExpressionUICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/Javabean12ExpressionUICreator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/Javabean12ExpressionUICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -0,0 +1,162 @@
+/*******************************************************************************
+ * Copyright (c) 2008 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.smooks.configuration.editors.javabean12;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
+import org.jboss.tools.smooks.configuration.editors.IPropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.javabean.PropertiesAndSetterMethodSearchFieldEditorCreator;
+import org.jboss.tools.smooks.configuration.editors.uitls.FieldAssistDisposer;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
+import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.javabean12.BeanType;
+import org.jboss.tools.smooks.model.javabean12.Javabean12Package;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class Javabean12ExpressionUICreator extends PropertiesAndSetterMethodSearchFieldEditorCreator implements
+ IPropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#createExtendUI
+ * (org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain,
+ * org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite, java.lang.Object,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public List<AttributeFieldEditPart> createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain,
+ FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvider formEditor, IEditorPart part) {
+ List<AttributeFieldEditPart> list = new ArrayList<AttributeFieldEditPart>();
+ AttributeFieldEditPart cdatatext = SmooksUIUtils.createCDATAFieldEditor("Expression", editingdomain, toolkit,
+ parent, model, null, true);
+ if (cdatatext != null) {
+ list.add(cdatatext);
+
+ Control c = cdatatext.getContentControl();
+
+ if (c instanceof Text) {
+ final FieldAssistDisposer disposer = SmooksUIUtils.addBindingsContextAssistToText((Text) c,
+ SmooksUIUtils.getSmooks11ResourceListType((EObject) model));
+ c.addDisposeListener(new DisposeListener() {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.swt.events.DisposeListener#widgetDisposed
+ * (org.eclipse.swt.events.DisposeEvent)
+ */
+ public void widgetDisposed(DisposeEvent e) {
+ disposer.dispose();
+ }
+
+ });
+ }
+ }
+ return list;
+ }
+
+ public List<AttributeFieldEditPart> createExtendUIOnTop(AdapterFactoryEditingDomain editingdomain,
+ FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvider formEditor, IEditorPart part) {
+
+ List<AttributeFieldEditPart> list = new ArrayList<AttributeFieldEditPart>();
+
+ AttributeFieldEditPart pEditPart = createPropertiesSearchFieldEditor(toolkit, parent, getPropertyDescriptor(
+ editingdomain, Javabean12Package.Literals.EXPRESSION_TYPE__PROPERTY, model), model);
+ AttributeFieldEditPart mEditPart = createMethodsSearchFieldEditor(toolkit, parent, getPropertyDescriptor(
+ editingdomain, Javabean12Package.Literals.EXPRESSION_TYPE__SETTER_METHOD, model), model);
+ list.add(pEditPart);
+ list.add(mEditPart);
+ list.addAll(createElementSelectionSection("Execute On Element", editingdomain, toolkit, parent, model,
+ formEditor, part,Javabean12Package.Literals.EXPRESSION_TYPE__EXEC_ON_ELEMENT,
+ Javabean12Package.Literals.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS));
+
+ return list;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.smooks.configuration.editors.javabean.PropertiesAndSetterMethodSearchFieldEditorCreator#getClassString(java.lang.Object)
+ */
+ protected String getClassString(Object model) {
+ if (model instanceof EObject) {
+ EObject container = ((EObject) model).eContainer();
+ if(container instanceof BeanType){
+ return ((BeanType)container).getClass_();
+ }
+ }
+ return super.getClassString(model);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#ignoreProperty
+ * (org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ public boolean ignoreProperty(EAttribute feature) {
+ if (feature == Javabean12Package.Literals.EXPRESSION_TYPE__EXEC_ON_ELEMENT) {
+ return true;
+ }
+ if (feature == Javabean12Package.Literals.EXPRESSION_TYPE__EXEC_ON_ELEMENT_NS) {
+ return true;
+ }
+ if (feature == Javabean12Package.Literals.EXPRESSION_TYPE__VALUE) {
+ return true;
+ }
+ if (feature == Javabean12Package.Literals.EXPRESSION_TYPE__PROPERTY) {
+ return true;
+ }
+ if (feature == Javabean12Package.Literals.EXPRESSION_TYPE__SETTER_METHOD) {
+ return true;
+ }
+ return super.ignoreProperty(feature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.PropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent,
+ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
+ ISmooksModelProvider formEditor, IEditorPart part) {
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor,part);
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/Javabean12ExpressionUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanValueBinding12UICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanValueBinding12UICreator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanValueBinding12UICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -0,0 +1,148 @@
+/*******************************************************************************
+ * 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.smooks.configuration.editors.javabean12;
+
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
+import org.jboss.tools.smooks.configuration.editors.javabean.PropertiesAndSetterMethodSearchFieldEditorCreator;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
+import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.javabean12.BeanType;
+import org.jboss.tools.smooks.model.javabean12.Javabean12Package;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ * <p>
+ * Apr 9, 2009
+ */
+public class JavabeanValueBinding12UICreator extends PropertiesAndSetterMethodSearchFieldEditorCreator {
+
+ @Override
+ protected boolean canCreatePropertiesSearchFieldEditor(EAttribute feature) {
+ if (feature == Javabean12Package.eINSTANCE.getValueType_Property()) {
+ return true;
+ }
+ return false;
+ }
+
+ @Override
+ protected boolean canCreateMethodsSearchFieldEditor(EAttribute feature) {
+ if (feature == Javabean12Package.eINSTANCE.getValueType_SetterMethod()) {
+ return true;
+ }
+ return super.canCreateMethodsSearchFieldEditor(feature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.javabean.
+ * PropertiesAndSetterMethodSearchFieldEditorCreator
+ * #createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent,
+ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
+ ISmooksModelProvider formEditor, IEditorPart part) {
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor, part);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#createExtendUI
+ * (org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain,
+ * org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite, java.lang.Object,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public List<AttributeFieldEditPart> createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain,
+ FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvider formEditor, IEditorPart part) {
+ List<AttributeFieldEditPart> list = createElementSelectionSection("Data", editingdomain, toolkit, parent,
+ model, formEditor, part, Javabean12Package.eINSTANCE.getValueType_Data(), Javabean12Package.eINSTANCE
+ .getValueType_DataNS());
+ Composite groupParent = parent;
+ for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ AttributeFieldEditPart attributeFieldEditPart = (AttributeFieldEditPart) iterator.next();
+ if (attributeFieldEditPart.getAttribute() == null) {
+ groupParent = (Composite) attributeFieldEditPart.getContentControl();
+ break;
+ }
+ }
+ list.add(SmooksUIUtils.createStringFieldEditor(groupParent, toolkit, getPropertyDescriptor(editingdomain,
+ Javabean12Package.Literals.VALUE_TYPE__DEFAULT, model), model, false, false, null));
+
+ list.add(SmooksUIUtils.createStringFieldEditor(groupParent, toolkit, getPropertyDescriptor(editingdomain,
+ Javabean12Package.Literals.VALUE_TYPE__DECODER, model), model, false, false, null));
+ return list;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#ignoreProperty
+ * (org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ public boolean ignoreProperty(EAttribute feature) {
+ if (feature == Javabean12Package.eINSTANCE.getValueType_Data()) {
+ return true;
+ }
+ if (feature == Javabean12Package.eINSTANCE.getValueType_DataNS()) {
+ return true;
+ }
+ if (feature == Javabean12Package.eINSTANCE.getValueType_Decoder()) {
+ return true;
+ }
+ if (feature == Javabean12Package.eINSTANCE.getValueType_Default()) {
+ return true;
+ }
+ return super.ignoreProperty(feature);
+ }
+
+ @Override
+ public boolean isSelectorFeature(EAttribute attribute) {
+ return super.isSelectorFeature(attribute);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.javabean.
+ * PropertiesAndSetterMethodSearchFieldEditorCreator
+ * #getClassString(java.lang.Object)
+ */
+ protected String getClassString(Object model) {
+ if (model instanceof EObject) {
+ EObject container = ((EObject) model).eContainer();
+ if (container instanceof BeanType) {
+ return ((BeanType) container).getClass_();
+ }
+ }
+ return super.getClassString(model);
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanValueBinding12UICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanWiringBiding12UICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanWiringBiding12UICreator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanWiringBiding12UICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -0,0 +1,139 @@
+/*******************************************************************************
+ * 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.smooks.configuration.editors.javabean12;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
+import org.jboss.tools.smooks.configuration.editors.javabean.PropertiesAndSetterMethodSearchFieldEditorCreator;
+import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.javabean12.BeanType;
+import org.jboss.tools.smooks.model.javabean12.Javabean12Package;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 9, 2009
+ */
+public class JavabeanWiringBiding12UICreator extends PropertiesAndSetterMethodSearchFieldEditorCreator {
+
+ @Override
+ protected boolean canCreatePropertiesSearchFieldEditor(EAttribute feature) {
+ // if (feature == JavabeanPackage.eINSTANCE.getWiringType_Property()) {
+ // return true;
+ // }
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.javabean.
+ * PropertiesAndSetterMethodSearchFieldEditorCreator
+ * #getClassString(java.lang.Object)
+ */
+ protected String getClassString(Object model) {
+ if (model instanceof EObject) {
+ EObject container = ((EObject) model).eContainer();
+ if (container instanceof BeanType) {
+ return ((BeanType) container).getClass_();
+ }
+ }
+ return super.getClassString(model);
+ }
+
+ @Override
+ protected boolean canCreateMethodsSearchFieldEditor(EAttribute feature) {
+ // if (feature ==
+ // JavabeanPackage.eINSTANCE.getWiringType_SetterMethod()) {
+ // return true;
+ // }
+ return super.canCreateMethodsSearchFieldEditor(feature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#ignoreProperty
+ * (org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ public boolean ignoreProperty(EAttribute feature) {
+ if (feature == Javabean12Package.eINSTANCE.getWiringType_WireOnElement()) {
+ return true;
+ }
+ if (feature == Javabean12Package.eINSTANCE.getWiringType_WireOnElementNS()) {
+ return true;
+ }
+ if (feature == Javabean12Package.eINSTANCE.getWiringType_Property()) {
+ return true;
+ }
+ if (feature == Javabean12Package.eINSTANCE.getWiringType_SetterMethod()) {
+ return true;
+ }
+ return super.ignoreProperty(feature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#createExtendUI
+ * (org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain,
+ * org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite, java.lang.Object,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public List<AttributeFieldEditPart> createExtendUIOnTop(AdapterFactoryEditingDomain editingdomain,
+ FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvider formEditor, IEditorPart part) {
+
+ List<AttributeFieldEditPart> list = new ArrayList<AttributeFieldEditPart>();
+
+ AttributeFieldEditPart pEditPart = createPropertiesSearchFieldEditor(toolkit, parent, getPropertyDescriptor(
+ editingdomain, Javabean12Package.eINSTANCE.getWiringType_Property(), model), model);
+ AttributeFieldEditPart mEditPart = createMethodsSearchFieldEditor(toolkit, parent, getPropertyDescriptor(
+ editingdomain, Javabean12Package.eINSTANCE.getWiringType_SetterMethod(), model), model);
+ list.add(pEditPart);
+ list.add(mEditPart);
+ list.addAll(createElementSelectionSection("Wrie On Element", editingdomain, toolkit, parent, model, formEditor,
+ part, Javabean12Package.eINSTANCE.getWiringType_WireOnElement(),
+ Javabean12Package.Literals.WIRING_TYPE__WIRE_ON_ELEMENT_NS));
+ return list;
+ }
+
+ @Override
+ public boolean isBeanIDRefFieldFeature(EAttribute attribute) {
+ if (attribute == Javabean12Package.eINSTANCE.getWiringType_BeanIdRef()) {
+ return true;
+ }
+ return super.isBeanIDRefFieldFeature(attribute);
+ }
+
+ @Override
+ public boolean isSelectorFeature(EAttribute attribute) {
+ return super.isSelectorFeature(attribute);
+ }
+
+ @Override
+ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent,
+ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
+ ISmooksModelProvider formEditor, IEditorPart part) {
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor, part);
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean12/JavabeanWiringBiding12UICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms12/JMSRouter12UICreator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms12/JMSRouter12UICreator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms12/JMSRouter12UICreator.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -0,0 +1,107 @@
+/*******************************************************************************
+ * 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.smooks.configuration.editors.jms12;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.editor.ISmooksModelProvider;
+import org.jboss.tools.smooks.model.jmsrouting12.Jmsrouting12Package;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class JMSRouter12UICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Composite parent,
+ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
+ ISmooksModelProvider formEditor,IEditorPart part) {
+
+ if (feature == Jmsrouting12Package.eINSTANCE.getJMS12Router_BeanId()) {
+ }
+ if (feature == Jmsrouting12Package.eINSTANCE.getJMS12Router_Destination()) {
+ }
+ if (feature == Jmsrouting12Package.eINSTANCE.getJMS12Router_ExecuteBefore()) {
+ }
+ if (feature == Jmsrouting12Package.eINSTANCE.getJMS12Router_RouteOnElement()) {
+ }
+ if (feature == Jmsrouting12Package.eINSTANCE.getJMS12Router_RouteOnElementNS()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature, formEditor,part);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#createExtendUI
+ * (org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain,
+ * org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite, java.lang.Object,
+ * org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ */
+ @Override
+ public List<AttributeFieldEditPart> createExtendUIOnTop(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
+ Composite parent, Object model, ISmooksModelProvider formEditor,IEditorPart part) {
+ return createElementSelectionSection("Route On Element", editingdomain, toolkit, parent, model, formEditor,part,
+ Jmsrouting12Package.eINSTANCE.getJMS12Router_RouteOnElement(), Jmsrouting12Package.eINSTANCE
+ .getJMS12Router_RouteOnElementNS());
+ }
+
+
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.configuration.editors.PropertyUICreator#isBeanIDRefFieldFeature(org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ protected boolean isBeanIDRefFieldFeature(EAttribute attribute) {
+ if(attribute == Jmsrouting12Package.Literals.JMS12_ROUTER__BEAN_ID){
+ return true;
+ }
+ return super.isBeanIDRefFieldFeature(attribute);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#ignoreProperty
+ * (org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ public boolean ignoreProperty(EAttribute feature) {
+ if (feature == Jmsrouting12Package.eINSTANCE.getJMS12Router_RouteOnElement()) {
+ return true;
+ }
+ if (feature == Jmsrouting12Package.eINSTANCE.getJMS12Router_RouteOnElementNS()) {
+ return true;
+ }
+ return super.ignoreProperty(feature);
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms12/JMSRouter12UICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-07-27 07:24:17 UTC (rev 16798)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-07-27 07:25:30 UTC (rev 16799)
@@ -1124,11 +1124,17 @@
}
return null;
}
-
+
public static AttributeFieldEditPart createJavaMethodSearchFieldEditor(BindingsType container, Composite parent,
FormToolkit toolkit, final IItemPropertyDescriptor propertyDescriptor, String buttonName,
final EObject model) {
String classString = ((BindingsType) container).getClass_();
+ return createJavaMethodSearchFieldEditor(classString, container, parent, toolkit, propertyDescriptor, buttonName, model);
+ }
+
+ public static AttributeFieldEditPart createJavaMethodSearchFieldEditor(String classString , EObject container, Composite parent,
+ FormToolkit toolkit, final IItemPropertyDescriptor propertyDescriptor, String buttonName,
+ final EObject model) {
IJavaProject project = getJavaProject(container);
Class<?> clazz = null;
try {
@@ -1351,10 +1357,9 @@
return fieldEditPart;
}
- public static AttributeFieldEditPart createJavaPropertySearchFieldEditor(BindingsType container, Composite parent,
- FormToolkit toolkit, final IItemPropertyDescriptor propertyDescriptor, String buttonName,
+ public static AttributeFieldEditPart createJavaPropertySearchFieldEditor(String classString, EObject container,
+ Composite parent, FormToolkit toolkit, final IItemPropertyDescriptor propertyDescriptor, String buttonName,
final EObject model) {
- String classString = ((BindingsType) container).getClass_();
IJavaProject project = getJavaProject(container);
JavaPropertiesSelectionDialog dialog = new JavaPropertiesSelectionDialog(project, classString);
AttributeFieldEditPart editPart = SmooksUIUtils.createDialogFieldEditor(parent, toolkit, propertyDescriptor,
@@ -1385,6 +1390,14 @@
return editPart;
}
+ public static AttributeFieldEditPart createJavaPropertySearchFieldEditor(BindingsType container, Composite parent,
+ FormToolkit toolkit, final IItemPropertyDescriptor propertyDescriptor, String buttonName,
+ final EObject model) {
+ String classString = ((BindingsType) container).getClass_();
+ return createJavaPropertySearchFieldEditor(classString, container, parent, toolkit, propertyDescriptor,
+ buttonName, model);
+ }
+
public static Object getEditValue(IItemPropertyDescriptor propertyDescriptor, Object model) {
Object value = propertyDescriptor.getPropertyValue(model);
if (value != null && value instanceof PropertyValueWrapper) {
16 years, 8 months