JBoss Tools SVN: r18833 - in trunk/documentation/guides/GettingStartedGuide/en/images: getting_started and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-11-25 12:49:02 -0500 (Wed, 25 Nov 2009)
New Revision: 18833
Modified:
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam25.png
trunk/documentation/guides/GettingStartedGuide/en/images/getting_started/update_wizard_1.png
Log:
JBDS-961 screens scaling - GSG images - fixed
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam25.png
===================================================================
…
[View More](Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/getting_started/update_wizard_1.png
===================================================================
(Binary files differ)
[View Less]
15 years, 1 month
JBoss Tools SVN: r18832 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-25 12:48:09 -0500 (Wed, 25 Nov 2009)
New Revision: 18832
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4635
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java
===================================================================
---…
[View More] trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java 2009-11-25 15:16:04 UTC (rev 18831)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/ModelObjectStorageEditorInput.java 2009-11-25 17:48:09 UTC (rev 18832)
@@ -11,8 +11,14 @@
package org.jboss.tools.common.model.ui.editor;
import java.io.*;
+
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.*;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jdt.internal.core.JarEntryDirectory;
+import org.eclipse.jdt.internal.core.JarEntryFile;
+import org.eclipse.jdt.internal.core.JarEntryResource;
import org.jboss.tools.common.core.resources.XModelObjectEditorInput;
import org.jboss.tools.common.core.resources.XModelObjectEditorInputFactory;
import org.eclipse.ui.*;
@@ -24,14 +30,64 @@
import org.jboss.tools.common.util.FileUtil;
public class ModelObjectStorageEditorInput extends ModelObjectEditorInput implements IStorageEditorInput {
-
+ JarEntryFile jarEntryFile = null;
+
public ModelObjectStorageEditorInput(XModelObject object) {
super(object);
+ jarEntryFile = findJarEntryFile();
}
public IStorage getStorage() throws CoreException {
- return storage;
+ return jarEntryFile != null ? jarEntryFile : storage;
}
+
+ JarEntryFile findJarEntryFile() {
+ XModelObject o = object;
+ JarEntryFile f = null;
+ JarEntryResource current = null;
+ while(o != null && o.getFileType() != XModelObject.SYSTEM) {
+ String part = o.getFileType() == XModelObject.FILE ? FileAnyImpl.toFileName(o) :
+ o.getFileType() == XModelObject.FOLDER ? o.getAttributeValue(XModelObjectConstants.ATTR_NAME) : null;
+ if(part != null) {
+ if(f == null) {
+ f = new JarEntryFile(part) {
+ public InputStream getContents() throws CoreException {
+ return storage.getContents();
+ }
+ };
+ current = f;
+ } else {
+ if(f == null) return null;
+ JarEntryDirectory d = new JarEntryDirectory(part);
+ current.setParent(d);
+ current = d;
+ }
+
+ }
+ o = o.getParent();
+ }
+ if(!(o instanceof JarSystemImpl)) return null;
+ String file = ((JarSystemImpl)o).getLocation();
+
+ try {
+ file = new File(file).getCanonicalPath();
+ } catch (IOException e) {
+
+ }
+
+ IFile[] fs = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(new File(file).toURI());
+ if(fs == null || fs.length == 0) return null;
+
+ IProject p = fs[0].getProject();
+ IJavaProject jp = EclipseResourceUtil.getJavaProject(p);
+ if(jp == null) return null;
+
+ IPackageFragmentRoot root = jp.getPackageFragmentRoot(file);
+ if(root == null) return null;
+ current.setParent(root);
+
+ return f;
+ }
IStorage storage = new Storage();
@@ -104,6 +160,12 @@
public boolean equals(Object o) {
if(super.equals(o)) return true;
if(o instanceof IStorageEditorInput) {
+ try {
+ IStorage st = ((IStorageEditorInput)o).getStorage();
+ if(jarEntryFile != null && jarEntryFile.equals(st)) return true;
+ } catch (CoreException e) {
+ //ignore
+ }
String[] entryInfo = XModelObjectEditorInput.parseJarEntryFileInput((IStorageEditorInput)o);
if(entryInfo == null) return false;
XModelObject mo = XModelObjectEditorInput.getJarEntryObject(entryInfo[0], entryInfo[1]);
[View Less]
15 years, 1 month
JBoss Tools SVN: r18831 - in trunk/smooks/plugins/org.jboss.tools.smooks.core: META-INF and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-11-25 10:16:04 -0500 (Wed, 25 Nov 2009)
New Revision: 18831
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
Log:
JBIDE-5258
Done
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF 2009-11-25 15:14:50 …
[View More]UTC (rev 18830)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF 2009-11-25 15:16:04 UTC (rev 18831)
@@ -57,9 +57,6 @@
org.jboss.tools.smooks.model.freemarker.impl,
org.jboss.tools.smooks.model.freemarker.provider,
org.jboss.tools.smooks.model.freemarker.util,
- org.jboss.tools.smooks.model.graphics.ext,
- org.jboss.tools.smooks.model.graphics.ext.impl,
- org.jboss.tools.smooks.model.graphics.ext.util,
org.jboss.tools.smooks.model.groovy,
org.jboss.tools.smooks.model.groovy.impl,
org.jboss.tools.smooks.model.groovy.provider,
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-11-25 15:14:50 UTC (rev 18830)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-11-25 15:16:04 UTC (rev 18831)
@@ -133,19 +133,6 @@
class="org.jboss.tools.smooks.model.fileRouting.util.FileRoutingResourceFactoryImpl"/>
</extension>
- <extension point="org.eclipse.emf.ecore.generated_package">
- <package
- uri="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xsd"
- class="org.jboss.tools.smooks.model.graphics.ext.GraphPackage"
- genModel="model/smooks-graphics-ext.genmodel"/>
- </extension>
-
- <extension point="org.eclipse.emf.ecore.extension_parser">
- <parser
- type="smooks-graphics-ext"
- class="org.jboss.tools.smooks.model.graphics.ext.util.SmooksGraphicsExtResourceFactoryImpl"/>
- </extension>
-
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="http://www.milyn.org/xsd/smooks/csv-1.1.xsd"
[View Less]
15 years, 1 month
JBoss Tools SVN: r18828 - trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-11-25 10:10:29 -0500 (Wed, 25 Nov 2009)
New Revision: 18828
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java
Log:
JBIDE-5258
Done
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/…
[View More]jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java 2009-11-25 15:06:29 UTC (rev 18827)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java 2009-11-25 15:10:29 UTC (rev 18828)
@@ -31,9 +31,6 @@
import org.eclipse.emf.edit.domain.EditingDomain;
import org.jboss.tools.smooks.model.freemarker.Freemarker;
import org.jboss.tools.smooks.model.freemarker.Template;
-import org.jboss.tools.smooks.model.graphics.ext.GraphFactory;
-import org.jboss.tools.smooks.model.graphics.ext.InputType;
-import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
import org.jboss.tools.smooks.model.smooks.ConditionType;
import org.jboss.tools.smooks.model.smooks.ConditionsType;
@@ -65,25 +62,31 @@
public static final String KEY_CSV_QUOTE = "quote";
- public static final String INPUT_TYPE_JAVA = "java";
+ public static final String INPUT_TYPE_JAVA = "input.java";
- public static final String INPUT_TYPE_CUSTOME = "custom";
+ public static final String INPUT_TYPE = "inputType";
- public static final String INPUT_TYPE_JSON_1_1 = "json";
+ public static final String INPUT_TYPE_CUSTOME = "input.custom";
- public static final String INPUT_TYPE_CSV = "csv";
+ public static final String INPUT_TYPE_JSON_1_1 = "input.json";
- public static final String INPUT_TYPE_CSV_1_2 = "csv";
+ public static final String INPUT_TYPE_CSV = "input.csv";
+ public static final String INPUT_ACTIVE_TYPE = "input.type.actived";
+
+ public static final String INPUT_DEACTIVE_TYPE = "input.type.deactived";
+
+ public static final String INPUT_TYPE_CSV_1_2 = "input.csv";
+
public static final String PARAM_NAME_CLASS = "class";
public static final String PARAM_NAME_PATH = "path";
public static final String PARAM_NAME_ACTIVED = "actived";
- public static final String INPUT_TYPE_XML = "xml";
+ public static final String INPUT_TYPE_XML = "input.xml";
- public static final String INPUT_TYPE_XSD = "xsd";
+ public static final String INPUT_TYPE_XSD = "input.xsd";
public static final String TYPE_XSL = "xsl";
@@ -95,11 +98,11 @@
public static final String BINDINGS = "bindings";
- public static final String INPUT_TYPE_EDI_1_1 = "EDI";
+ public static final String INPUT_TYPE_EDI_1_1 = "input.edi";
- public static final String INPUT_TYPE_EDI_1_2 = "EDI";
+ public static final String INPUT_TYPE_EDI_1_2 = "input.edi";
- public static final String INPUT_TYPE_JSON_1_2 = "json";
+ public static final String INPUT_TYPE_JSON_1_2 = "input.json";
public static EStructuralFeature ATTRIBUTE_PROPERTY = ExtendedMetaData.INSTANCE.demandFeature(null, "property",
false);
@@ -513,37 +516,33 @@
return new CommandParameter(owner, feature, child);
}
- public static void addJavaInput(SmooksGraphicsExtType ext, String className) {
- InputType javaInput = GraphFactory.eINSTANCE.createInputType();
- javaInput.setType(INPUT_TYPE_JAVA);
- org.jboss.tools.smooks.model.graphics.ext.ParamType p = GraphFactory.eINSTANCE.createParamType();
- p.setName(PARAM_NAME_CLASS);
- p.setValue(className);
- javaInput.getParam().add(p);
- ext.getInput().add(javaInput);
- }
+ // public static String getInputPath(InputType input) {
+ // List<org.jboss.tools.smooks.model.graphics.ext.ParamType> list =
+ // input.getParam();
+ // if (INPUT_TYPE_JAVA.equals(input.getType()) ||
+ // INPUT_TYPE_XML.equals(input.getType())
+ // || INPUT_TYPE_XSD.equals(input.getType()) ||
+ // INPUT_TYPE_JSON_1_1.equals(input.getType())
+ // || INPUT_TYPE_JSON_1_2.equals(input.getType()) ||
+ // INPUT_TYPE_CSV.equals(input.getType())
+ // || INPUT_TYPE_EDI_1_1.equals(input.getType()) ||
+ // INPUT_TYPE_EDI_1_2.equals(input.getType())
+ // || INPUT_TYPE_CSV_1_2.equals(input.getType())) {
+ // for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ // org.jboss.tools.smooks.model.graphics.ext.ParamType paramType =
+ // (org.jboss.tools.smooks.model.graphics.ext.ParamType) iterator
+ // .next();
+ // if ("path".equals(paramType.getName())) {
+ // String value = paramType.getValue();
+ // if (value != null)
+ // value = value.trim();
+ // return value;
+ // }
+ // }
+ // }
+ // return null;
+ // }
- public static String getInputPath(InputType input) {
- List<org.jboss.tools.smooks.model.graphics.ext.ParamType> list = input.getParam();
- if (INPUT_TYPE_JAVA.equals(input.getType()) || INPUT_TYPE_XML.equals(input.getType())
- || INPUT_TYPE_XSD.equals(input.getType()) || INPUT_TYPE_JSON_1_1.equals(input.getType())
- || INPUT_TYPE_JSON_1_2.equals(input.getType()) || INPUT_TYPE_CSV.equals(input.getType())
- || INPUT_TYPE_EDI_1_1.equals(input.getType()) || INPUT_TYPE_EDI_1_2.equals(input.getType())
- || INPUT_TYPE_CSV_1_2.equals(input.getType())) {
- for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
- org.jboss.tools.smooks.model.graphics.ext.ParamType paramType = (org.jboss.tools.smooks.model.graphics.ext.ParamType) iterator
- .next();
- if ("path".equals(paramType.getName())) {
- String value = paramType.getValue();
- if (value != null)
- value = value.trim();
- return value;
- }
- }
- }
- return null;
- }
-
public static List<ConditionType> collectConditionType(SmooksResourceListType resourceList) {
ConditionsType conditions = resourceList.getConditions();
if (conditions != null) {
@@ -569,8 +568,8 @@
org.jboss.tools.smooks.model.smooks.SmooksPackage.Literals.DOCUMENT_ROOT__PARAM, param));
}
- public static char getFreemarkerCSVSeperator(Template template) {
- org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(template, KEY_CSV_SEPERATOR);
+ public static char getFreemarkerCSVSeperator(Freemarker freemarker) {
+ org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(freemarker.getParam(), KEY_CSV_SEPERATOR);
if (typeParam != null) {
String value = typeParam.getStringValue();
if (value != null && value.length() == 1) {
@@ -580,8 +579,8 @@
return 0;
}
- public static char getFreemarkerCSVQuote(Template template) {
- org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(template, KEY_CSV_QUOTE);
+ public static char getFreemarkerCSVQuote(Freemarker freemarker) {
+ org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(freemarker.getParam(), KEY_CSV_QUOTE);
if (typeParam != null) {
String value = typeParam.getStringValue();
if (value != null && value.length() == 1) {
@@ -591,18 +590,18 @@
return 0;
}
- public static String getTemplateType(AnyType template) {
- if (template == null)
+ public static String getTemplateType(Freemarker freemarker) {
+ if (freemarker == null)
return null;
- org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(template, KEY_TEMPLATE_TYPE);
+ org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(freemarker.getParam(), KEY_TEMPLATE_TYPE);
if (typeParam != null) {
return typeParam.getStringValue();
}
return null;
}
- public static String[] getFreemarkerCSVFileds(Template template) {
- org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(template, KEY_CSV_FIELDS);
+ public static String[] getFreemarkerCSVFileds(Freemarker freemarker) {
+ org.jboss.tools.smooks.model.smooks.ParamType typeParam = getParam(freemarker.getParam(), KEY_CSV_FIELDS);
if (typeParam != null) {
String value = typeParam.getStringValue();
if (value != null) {
@@ -625,6 +624,18 @@
return null;
}
+ public static org.jboss.tools.smooks.model.smooks.ParamType getParam(
+ List<org.jboss.tools.smooks.model.smooks.ParamType> params, String paramName) {
+ for (Iterator<?> iterator = params.iterator(); iterator.hasNext();) {
+ org.jboss.tools.smooks.model.smooks.ParamType paramType = (org.jboss.tools.smooks.model.smooks.ParamType) iterator
+ .next();
+ if (paramName.equals(paramType.getName())) {
+ return paramType;
+ }
+ }
+ return null;
+ }
+
public static String getParamValue(AnyType model, String paramName) {
List<org.jboss.tools.smooks.model.smooks.ParamType> params = getParams(model);
for (Iterator<?> iterator = params.iterator(); iterator.hasNext();) {
[View Less]
15 years, 1 month
JBoss Tools SVN: r18826 - in trunk/esb/plugins/org.jboss.tools.esb.core: src/org/jboss/tools/esb/core/model and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-25 09:35:05 -0500 (Wed, 25 Nov 2009)
New Revision: 18826
Added:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/EndpointConverter.java
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/SpecificActionLoader.java
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/…
[View More]converters/ConverterConstants.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5199
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2009-11-25 14:06:42 UTC (rev 18825)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2009-11-25 14:35:05 UTC (rev 18826)
@@ -11,6 +11,7 @@
<PAIR name="org.jboss.soa.esb.actions.Aggregator" value="ESBPreActionAggregator"/>
<PAIR name="org.jboss.soa.esb.actions.BusinessRulesProcessor" value="ESBPreActionBusinessRulesProcessor"/>
<PAIR name="org.jboss.soa.esb.actions.ContentBasedRouter" value="ESBPreActionContentBasedRouter"/>
+ <PAIR name="org.jboss.soa.esb.actions.EJBProcessor" value="ESBPreActionEJBProcessor"/>
<PAIR name="org.jboss.soa.esb.actions.MessagePersister" value="ESBPreActionMessagePersister"/>
<PAIR name="org.jboss.soa.esb.actions.Notifier" value="ESBPreActionNotifier"/>
<PAIR name="org.jboss.soa.esb.actions.StaticRouter" value="ESBPreActionStaticRouter"/>
@@ -27,14 +28,17 @@
<PAIR name="org.jboss.soa.esb.actions.routing.JMSRouter" value="ESBPreActionJMSRouter"/>
<PAIR name="org.jboss.soa.esb.actions.routing.email.EmailRouter" value="ESBPreActionEMailRouter"/>
<PAIR name="org.jboss.soa.esb.actions.routing.email.EmailWiretap" value="ESBPreActionEMailWiretap"/>
+ <PAIR name="org.jboss.soa.esb.actions.routing.http.HttpRouter" value="ESBPreActionHTTPRouter"/>
<PAIR
name="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor" value="ESBPreActionGroovyProcessor"/>
<PAIR name="org.jboss.soa.esb.actions.soap.SOAPClient" value="ESBPreActionSOAPClient"/>
<PAIR name="org.jboss.soa.esb.actions.soap.SOAPProcessor" value="ESBPreActionSOAPProcessor"/>
<PAIR name="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy" value="ESBPreActionSOAPProxy"/>
+ <PAIR name="org.jboss.soa.esb.actions.soap.wise.SOAPClient" value="ESBPreActionSOAPWiseClient"/>
<PAIR name="org.jboss.soa.esb.actions.transformation.xslt.XslAction" value="ESBPreActionXSLTAction"/>
<PAIR
name="org.jboss.soa.esb.actions.validation.SchemaValidationAction" value="ESBPreActionSchemaValidator"/>
+ <PAIR name="org.jboss.soa.esb.scripting.ScriptingAction" value="ESBPreActionScripting"/>
<PAIR name="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor" value="ESBPreActionBpmProcessor"/>
<PAIR name="org.jboss.soa.esb.smooks.SmooksAction" value="ESBPreActionSmooksAction"/>
</MAPPING>
@@ -426,6 +430,68 @@
<XDependencies/>
</XModelEntity>
<XModelEntity ImplementingClass="%ESB%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
+ XMLSUBPATH="action" name="ESBPreActionEJBProcessor120">
+ <XChildrenEntities>
+ <XChildEntity name="ESBProperty"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.action" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="ejb processor action" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ default="org.jboss.soa.esb.actions.EJBProcessor" name="class" xmlname="class">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general" name="ejb3" xmlname="ejb3">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="ejb name" xmlname="ejb-name"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="jndi name" xmlname="jndi-name"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="initial context factory" xmlname="initial-context-factory">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="provider url" xmlname="provider-url"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general" name="method" xmlname="method"/>
+ <XModelAttribute PROPERTIES="pre=true;category=advanced"
+ name="esb out var" xmlname="esb-out-var"/>
+ <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem
+ HandlerClassName="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
+ ICON="action.empty" PROPERTIES="actionpath=Open;attribute=script"
+ displayName="Open Script" kind="action" name="OpenScript"/>
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ESB%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%"
XMLSUBPATH="action" name="ESBPreActionEMailRouter120">
<XChildrenEntities>
@@ -617,6 +683,93 @@
<XDependencies/>
</XModelEntity>
<XModelEntity ImplementingClass="%ESB%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
+ XMLSUBPATH="action" name="ESBPreActionHTTPRouter120">
+ <XChildrenEntities>
+ <XChildEntity name="ESBProperty"/>
+ <XChildEntity name="ESBPreClientProp"/>
+ <XChildEntity name="ESBPreHeader"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.action" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="SOAP proxy action" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ default="org.jboss.soa.esb.actions.routing.http.HttpRouter"
+ name="class" xmlname="class">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="endpoint url" xmlname="endpointUrl"/>
+ <XModelAttribute PROPERTIES="category=general" name="file" xmlname="file">
+ <Constraint loader="Tree">
+ <value name="ESBResourceTree"/>
+ <value name="extensions=properties"/>
+ <value name="linkAction=OpenConfig"/>
+ </Constraint>
+ <Editor name="TreeChooser"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;pre=true;save=always"
+ default="GET" name="method" xmlname="method">
+ <Constraint loader="ListString">
+ <value name="GET"/>
+ <value name="POST"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;pre=true"
+ default="default(STRING)" name="response type" xmlname="responseType">
+ <Constraint loader="ListString">
+ <value name="default(STRING)"/>
+ <value name="STRING"/>
+ <value name="BYTES"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem
+ HandlerClassName="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
+ ICON="action.empty" PROPERTIES="actionpath=Open;attribute=file"
+ displayName="Open File" kind="action" name="OpenConfig"/>
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Add HTTP Client Property..." kind="action" name="AddClientProp">
+ <EntityData EntityName="ESBPreClientProp">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="value" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Add Header..." kind="action" name="AddHeader">
+ <EntityData EntityName="ESBPreHeader">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="value" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ESB%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%"
XMLSUBPATH="action" name="ESBPreActionJMSRouter120">
<XChildrenEntities>
@@ -1095,6 +1248,15 @@
</XModelAttribute>
<XModelAttribute PROPERTIES="pre=true;category=general"
name="jbossws endpoint" xmlname="jbossws-endpoint"/>
+ <XModelAttribute PROPERTIES="category=general;pre=true"
+ name="rewrite endpoint url" xmlname="rewrite-endpoint-url">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
<XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
<Editor name="Uneditable"/>
</XModelAttribute>
@@ -1116,6 +1278,8 @@
XMLSUBPATH="action" name="ESBPreActionSOAPProxy120">
<XChildrenEntities>
<XChildEntity name="ESBProperty"/>
+ <XChildEntity name="ESBPreClientProp"/>
+ <XChildEntity name="ESBPreHeader"/>
</XChildrenEntities>
<XEntityRenderer>
<ICONS>
@@ -1136,15 +1300,40 @@
<XModelAttribute PROPERTIES="category=general;pre=true;save=always"
name="wsdl" xmlname="wsdl"/>
<XModelAttribute PROPERTIES="category=general;pre=true"
- name="endpoint url" xmlname="endpointUrl"/>
- <XModelAttribute PROPERTIES="category=general;pre=true" name="file" xmlname="file">
+ name="wsdl transform" xmlname="wsdlTransform">
<Constraint loader="Tree">
<value name="ESBResourceTree"/>
+ <value name="extensions=xml"/>
+ <value name="linkAction=OpenTransform"/>
+ </Constraint>
+ <Editor name="TreeChooser"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="endpoint url" xmlname="endpointUrl"/>
+ <XModelAttribute PROPERTIES="category=general" name="file" xmlname="file">
+ <Constraint loader="Tree">
+ <value name="ESBResourceTree"/>
<value name="extensions=properties"/>
<value name="linkAction=OpenConfig"/>
</Constraint>
<Editor name="TreeChooser"/>
</XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;pre=true" default="GET"
+ name="method" xmlname="method">
+ <Constraint loader="ListString">
+ <value name="GET"/>
+ <value name="POST"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;pre=true"
+ default="default(STRING)" name="response type" xmlname="responseType">
+ <Constraint loader="ListString">
+ <value name="default(STRING)"/>
+ <value name="STRING"/>
+ <value name="BYTES"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
<XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
<Editor name="Uneditable"/>
</XModelAttribute>
@@ -1157,6 +1346,11 @@
HandlerClassName="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
ICON="action.empty" PROPERTIES="actionpath=Open;attribute=file"
displayName="Open File" kind="action" name="OpenConfig"/>
+ <XActionItem
+ HandlerClassName="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
+ ICON="action.empty"
+ PROPERTIES="actionpath=Open;attribute=wsdl transform"
+ displayName="Open Transform" kind="action" name="OpenTransform"/>
<XActionItem kind="list" name="CreateActions"/>
<XActionItemReference entity="ESBProperty" name="CopyActions"/>
<XActionItemReference entity="ESBProperty" name="DeleteActions"/>
@@ -1167,6 +1361,107 @@
</XModelEntity>
<XModelEntity ImplementingClass="%ESB%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
+ XMLSUBPATH="action" name="ESBPreActionSOAPWiseClient120">
+ <XChildrenEntities>
+ <XChildEntity name="ESBProperty"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.action" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="SOAP client action" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ default="org.jboss.soa.esb.actions.soap.wise.SOAPClient"
+ name="class" xmlname="class">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general" name="wsdl" xmlname="wsdl"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="operation" xmlname="operationName"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="soap action" xmlname="SOAPAction"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="end point name" xmlname="EndPointName"/>
+ <XModelAttribute PROPERTIES="category=general;save=always;pre=true"
+ name="smooks request mapper" xmlname="SmooksRequestMapper">
+ <Constraint loader="Tree">
+ <value name="ESBResourceTree"/>
+ <value name="extensions=xml"/>
+ <value name="linkAction=OpenRequest"/>
+ </Constraint>
+ <Editor name="TreeChooser"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;save=always;pre=true"
+ name="smooks response mapper" xmlname="SmooksResponseMapper">
+ <Constraint loader="Tree">
+ <value name="ESBResourceTree"/>
+ <value name="extensions=xml"/>
+ <value name="linkAction=OpenResponse"/>
+ </Constraint>
+ <Editor name="TreeChooser"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="service name" xmlname="serviceName"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="username" xmlname="username"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="password" xmlname="password"/>
+ <XModelAttribute PROPERTIES="pre=true;category=advanced"
+ name="smooks handler config" xmlname="smooks-handler-config"/>
+ <XModelAttribute PROPERTIES="pre=true;category=advanced"
+ name="custom handlers" xmlname="custom-handlers"/>
+ <XModelAttribute PROPERTIES="category=advanced;pre=true"
+ name="logging messages" xmlname="LoggingMessages">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem
+ HandlerClassName="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
+ ICON="action.empty"
+ PROPERTIES="actionpath=Open;attribute=smooks request mapper"
+ displayName="Open Request Mapper" kind="action" name="OpenRequest"/>
+ <XActionItem
+ HandlerClassName="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
+ ICON="action.empty"
+ PROPERTIES="actionpath=Open;attribute=smooks response mapper"
+ displayName="Open Response Mapper" kind="action" name="OpenResponse"/>
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Add Property..." kind="action" name="AddProperty">
+ <EntityData EntityName="ESBProperty">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="value" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ESB%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
XMLSUBPATH="action" name="ESBPreActionSchemaValidator120">
<XChildrenEntities>
<XChildEntity name="ESBProperty"/>
@@ -1221,6 +1516,72 @@
</XModelEntity>
<XModelEntity ImplementingClass="%ESB%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
+ XMLSUBPATH="action" name="ESBPreActionScripting120">
+ <XChildrenEntities>
+ <XChildEntity name="ESBProperty"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.action" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="scripting action" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ default="org.jboss.soa.esb.scripting.ScriptingAction" name="class" xmlname="class">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general" name="script" xmlname="script">
+ <Constraint loader="Tree">
+ <value name="ESBResourceTree"/>
+ <value name="linkAction=OpenScript"/>
+ </Constraint>
+ <Editor name="TreeChooser"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ default="Default(false)" name="support message based scripting" xmlname="supportMessageBasedScripting">
+ <Constraint loader="ListString">
+ <value name="Default(false)"/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ default="Default(true)" name="cache script" xmlname="cacheScript">
+ <Constraint loader="ListString">
+ <value name="Default(true)"/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem
+ HandlerClassName="org.jboss.tools.esb.core.model.handlers.OpenESBResourceHandler"
+ ICON="action.empty" PROPERTIES="actionpath=Open;attribute=script"
+ displayName="Open Script" kind="action" name="OpenScript"/>
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ESB%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
XMLSUBPATH="action" name="ESBPreActionSmooksAction101">
<XChildrenEntities>
<XChildEntity name="ESBProperty"/>
@@ -1454,6 +1815,68 @@
</XModelEntity>
<XModelEntity ImplementingClass="%ESB%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
+ XMLSUBPATH="action" name="ESBPreActionSyncServiceInvoker120">
+ <XChildrenEntities>
+ <XChildEntity name="ESBProperty"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.action" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="sync service invoker action"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ default="org.jboss.soa.esb.actions.SyncServiceInvoker" name="class" xmlname="class">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced;pre=true;save=always"
+ name="service category" xmlname="service-category"/>
+ <XModelAttribute PROPERTIES="category=advanced;pre=true;save=always"
+ name="service name" xmlname="service-name"/>
+ <XModelAttribute PROPERTIES="category=general;pre=true"
+ default="default(true)" name="fail on exception" xmlname="failOnException">
+ <Constraint loader="ListString">
+ <value name="default(true)"/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;pre=true"
+ default="default(false)" name="suspend transaction" xmlname="suspendTransaction">
+ <Constraint loader="ListString">
+ <value name="default(false)"/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced;pre=true"
+ name="service invoker timeout" xmlname="serviceInvokerTimeout"/>
+ <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItemReference entity="ESBProperty" name="CopyActions"/>
+ <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
+ <XActionItemReference entity="ESBProperty" name="Properties"/>
+ <XActionItemReference entity="ESBProperty" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ESB%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
XMLSUBPATH="action" name="ESBPreActionSystemPrintln101">
<XChildrenEntities>
<XChildEntity name="ESBProperty"/>
@@ -1745,6 +2168,96 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
+ <XModelEntity
+ ImplementingClass="org.jboss.tools.esb.core.model.ESBRouteToImpl"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;converter=httpclient"
+ XMLSUBPATH="http-client-property" name="ESBPreClientProp">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="http client property" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="category=general" name="value" xmlname="value"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementingClass="org.jboss.tools.esb.core.model.ESBRouteToImpl"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;converter=header"
+ XMLSUBPATH="header" name="ESBPreHeader">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="header" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="category=general" name="value" xmlname="value"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
<XModelEntity ImplementingClass="%ESB%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;converter=notification"
XMLSUBPATH="NotificationList" name="ESBPreNotificationList">
@@ -2207,16 +2720,21 @@
<XChildEntity name="ESBPreActionXStreamToObject101"/>
<XChildEntity name="ESBPreActionCommandInterpreter101"/>
<XChildEntity name="ESBPreActionBpmProcessor120"/>
+ <XChildEntity name="ESBPreActionScripting120"/>
<XChildEntity name="ESBPreActionGroovyProcessor101"/>
+ <XChildEntity name="ESBPreActionEJBProcessor120"/>
<XChildEntity name="ESBPreActionAggregator101"/>
<XChildEntity name="ESBPreActionContentBasedRouter101"/>
<XChildEntity name="ESBPreActionStaticRouter101"/>
<XChildEntity name="ESBPreActionStaticWiretap101"/>
+ <XChildEntity name="ESBPreActionSyncServiceInvoker120"/>
<XChildEntity name="ESBPreActionJMSRouter120"/>
<XChildEntity name="ESBPreActionEMailRouter120"/>
<XChildEntity name="ESBPreActionEMailWiretap120"/>
+ <XChildEntity name="ESBPreActionHTTPRouter120"/>
<XChildEntity name="ESBPreActionSOAPProcessor101"/>
<XChildEntity name="ESBPreActionSOAPClient101"/>
+ <XChildEntity name="ESBPreActionSOAPWiseClient120"/>
<XChildEntity name="ESBPreActionSOAPProxy120"/>
<XChildEntity name="ESBPreActionSystemPrintln101"/>
<XChildEntity name="ESBPreActionNotifier101"/>
@@ -2229,7 +2747,7 @@
kind="list" name="CreateActions">
<XActionItem displayName="Add Pre-Packed Action" kind="list" name="PrePackedAction">
<XActionItemReference entity="ESBActions101" name="AddObjectInvoke"/>
- <XActionItem displayName="Converters" kind="list" name="Converters">
+ <XActionItem displayName="Converters" group="1" kind="list" name="Converters">
<XActionItemReference entity="ESBActions101" name="AddByteArrayToString"/>
<XActionItemReference entity="ESBActions101" name="AddLongToDate"/>
<XActionItemReference entity="ESBActions101" name="AddObjectToCSVString"/>
@@ -2270,7 +2788,37 @@
<AttributeData AttributeName="process definition id" Mandatory="no"/>
</EntityData>
</XActionItem>
- <XActionItemReference entity="ESBActions101" name="AddGroovyProcessor"/>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="EJB Processor..." kind="action" name="AddEJBProcessor">
+ <EntityData EntityName="ESBPreActionEJBProcessor120">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="ejb3" Mandatory="no"/>
+ <AttributeData AttributeName="ejb name" Mandatory="no"/>
+ <AttributeData AttributeName="jndi name" Mandatory="no"/>
+ <AttributeData AttributeName="initial context factory" Mandatory="no"/>
+ <AttributeData AttributeName="provider url" Mandatory="no"/>
+ <AttributeData AttributeName="method" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem displayName="Scripting" kind="list" name="Scripting">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Scripting..." kind="action" name="AddScripting">
+ <EntityData EntityName="ESBPreActionScripting120">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="script"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Groovy Action Processor..." kind="action" name="AddGroovyProcessor">
+ <EntityData EntityName="ESBPreActionGroovyProcessor101">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="script"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
<XActionItem displayName="Routers" group="1" kind="list" name="Routers">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
PROPERTIES="validator.add=true" WizardClassName="%Default%"
@@ -2340,6 +2888,25 @@
<AttributeData AttributeName="subject" Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="HTTP Router..." kind="action" name="AddHTTPRouter">
+ <EntityData EntityName="ESBPreActionHTTPRouter120">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="endpoint url" Mandatory="no"/>
+ <AttributeData AttributeName="file" Mandatory="no"/>
+ <AttributeData AttributeName="method"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Sync Service Invoker..." kind="action" name="AddSyncServiceInvoker">
+ <EntityData EntityName="ESBPreActionSyncServiceInvoker120">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="service category"/>
+ <AttributeData AttributeName="service name"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
<XActionItem displayName="SOAP" kind="list" name="SOAP">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
@@ -2369,16 +2936,34 @@
<AttributeData AttributeName="file" Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="SOAP Wise Client..." kind="action" name="AddSOAPWiseClient">
+ <EntityData EntityName="ESBPreActionSOAPWiseClient120">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="wsdl"/>
+ <AttributeData AttributeName="operation"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
- <XActionItemReference entity="ESBActions101" name="AddSystemPrintln"/>
<XActionItemReference entity="ESBActions101" name="AddBusinessRulesProcessor"/>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Schema Validation..." kind="action" name="AddSchemaValidation">
- <EntityData EntityName="ESBPreActionSchemaValidator120">
- <AttributeData AttributeName="schema"/>
- <AttributeData AttributeName="schema language" Mandatory="no"/>
- </EntityData>
+ <XActionItem displayName="Miscellaneous" group="1" kind="list" name="Miscellaneous">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="System Println..." kind="action" name="AddSystemPrintln">
+ <EntityData EntityName="ESBPreActionSystemPrintln101">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="message"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Schema Validation..." kind="action" name="AddSchemaValidation">
+ <EntityData EntityName="ESBPreActionSchemaValidator120">
+ <AttributeData AttributeName="schema"/>
+ <AttributeData AttributeName="schema language" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/SpecificActionLoader.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/SpecificActionLoader.java 2009-11-25 14:06:42 UTC (rev 18825)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/SpecificActionLoader.java 2009-11-25 14:35:05 UTC (rev 18826)
@@ -205,6 +205,8 @@
if("path".equals(converter)) return ConverterConstants.OBJECT_PATHS_CONVERTER;
if("notification".equals(converter)) return ConverterConstants.NOTIFICATION_CONVERTER;
if("bpmVar".equals(converter)) return ConverterConstants.BPM_VAR_CONVERTER;
+ if("httpclient".equals(converter)) return ConverterConstants.ENDPOINT_CONVERTER;
+ if("header".equals(converter)) return ConverterConstants.HEADER_CONVERTER;
return null;
}
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ConverterConstants.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ConverterConstants.java 2009-11-25 14:06:42 UTC (rev 18825)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ConverterConstants.java 2009-11-25 14:35:05 UTC (rev 18826)
@@ -33,4 +33,12 @@
String BPM_VARS = "esbToBpmVars";
IPropertyConverter BPM_VAR_CONVERTER = new BasicListConverter(BPM_VARS, BPM_VAR_ENTITY);
+ String HTTP_CLIENT_PROP_ENTITY = "ESBPreClientProp";
+ String END_POINT_URL = "endpointUrl";
+ IPropertyConverter ENDPOINT_CONVERTER = new EndpointConverter();
+
+ String HEADER_ENTITY = "ESBPreHeader";
+ String HEADERS = "headers";
+ IPropertyConverter HEADER_CONVERTER = new BasicListConverter(HEADERS, HEADER_ENTITY);
+
}
Added: trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/EndpointConverter.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/EndpointConverter.java (rev 0)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/EndpointConverter.java 2009-11-25 14:35:05 UTC (rev 18826)
@@ -0,0 +1,85 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.esb.core.model.converters;
+
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.impl.AnyElementObjectImpl;
+import org.jboss.tools.esb.core.model.ESBConstants;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class EndpointConverter extends ListConverter {
+ static String ATTR_FILE = "file";
+ static String ATTR_ENDPOINT_URL = "endpoint url";
+
+ public void toBasic(XModelObject basicAction, XModelObject specificAction) {
+ XModelObject[] as = specificAction.getChildren(getItemEntityName());
+ boolean empty = true;
+ if(as.length > 0) empty = false;
+ XModelObject p = basicAction.getModel().createModelObject(ESBConstants.ENT_ESB_PROPERTY, null);
+ p.setAttributeValue(ESBConstants.ATTR_NAME, getPropertyName());
+ for (int i = 0; i < as.length; i++) {
+ XModelObject t = toAnyElement(as[i], i);
+ p.addChild(t);
+ }
+ String endpointURL = specificAction.getAttributeValue(ATTR_ENDPOINT_URL);
+ if(endpointURL != null && endpointURL.length() > 0) {
+ empty = false;
+ p.setAttributeValue(ESBConstants.ATTR_VALUE, endpointURL);
+ }
+ String file = specificAction.getAttributeValue(ATTR_FILE);
+ if(file != null && file.length() > 0) {
+ empty = false;
+ XModelObject f = basicAction.getModel().createModelObject(getItemEntityName(), null);
+ f.setAttributeValue(ESBConstants.ATTR_NAME, ATTR_FILE);
+ f.setAttributeValue(ESBConstants.ATTR_VALUE, file);
+ XModelObject t = toAnyElement(f, p.getChildren().length);
+ p.addChild(t);
+ }
+
+ if(!empty) {
+ basicAction.addChild(p);
+ }
+ }
+
+ public void toSpecific(XModelObject basicAction, XModelObject specificAction) {
+ XModelObject p = basicAction.getChildByPath(getPropertyName());
+ if(p == null) return;
+ XModelObject[] as = p.getChildren();
+ for (int i = 0; i < as.length; i++) {
+ if(as[i] instanceof AnyElementObjectImpl) {
+ XModelObject a = fromAnyElement(as[i], getItemEntityName());
+ if(a != null) {
+ if(ATTR_FILE.equals(a.getAttributeValue(ESBConstants.ATTR_NAME))) {
+ specificAction.setAttributeValue(ATTR_FILE, a.getAttributeValue(ESBConstants.ATTR_VALUE));
+ } else {
+ specificAction.addChild(a);
+ }
+ }
+ }
+ }
+ String endpointURL = p.getAttributeValue(ESBConstants.ATTR_VALUE);
+ if(endpointURL != null && endpointURL.length() > 0) {
+ specificAction.setAttributeValue(ATTR_ENDPOINT_URL, endpointURL);
+ }
+ p.removeFromParent();
+ }
+
+ protected String getItemEntityName() {
+ return ConverterConstants.HTTP_CLIENT_PROP_ENTITY;
+ }
+
+ protected String getPropertyName() {
+ return ConverterConstants.END_POINT_URL;
+ }
+
+}
Property changes on: trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/EndpointConverter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
[View Less]
15 years, 1 month
JBoss Tools SVN: r18825 - documentation/trunk/movies/seam2_plus_ejb3.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-11-25 09:06:42 -0500 (Wed, 25 Nov 2009)
New Revision: 18825
Modified:
documentation/trunk/movies/seam2_plus_ejb3/seam2_plus_ejb3.wnk
Log:
BDS-906 - Demos update-seam2_plus_ejb3.htm - updated
Modified: documentation/trunk/movies/seam2_plus_ejb3/seam2_plus_ejb3.wnk
===================================================================
(Binary files differ)
15 years, 1 month
JBoss Tools SVN: r18824 - trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-11-25 09:06:36 -0500 (Wed, 25 Nov 2009)
New Revision: 18824
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4872
Second page's table view updated.
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java
=====================================…
[View More]==============================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java 2009-11-25 13:53:01 UTC (rev 18823)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFilePage.java 2009-11-25 14:06:36 UTC (rev 18824)
@@ -17,7 +17,14 @@
import java.util.Map;
import java.util.Map.Entry;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.internal.ui.JavaPlugin;
+import org.eclipse.jdt.internal.ui.JavaPluginImages;
+import org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegistry;
+import org.eclipse.jdt.ui.JavaElementImageDescriptor;
+import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.CheckboxCellEditor;
import org.eclipse.jface.viewers.ICellModifier;
@@ -31,12 +38,14 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.ui.model.IWorkbenchAdapter;
import org.hibernate.console.ImageConstants;
import org.hibernate.eclipse.console.utils.EclipseImages;
import org.hibernate.eclipse.jdt.ui.internal.JdtUiMessages;
@@ -46,6 +55,7 @@
* @author Dmitry Geraskov
*
*/
+@SuppressWarnings("restriction")
public class NewHibernateMappingFilePage extends WizardPage {
private TableViewer viewer;
@@ -92,20 +102,21 @@
private void createTableColumns(Table table){
int coulmnIndex = 0;
- TableColumn column = new TableColumn(table, SWT.CENTER, coulmnIndex++);
+ TableColumn column = new TableColumn(table, SWT.CENTER, coulmnIndex++);
column.setText("!"); //$NON-NLS-1$
- column.setWidth(20);
+ /* Hide the column while JBIDE-4269 is not implemented.
+ * (Filtering generated elements)
+ */
+ column.setWidth(0);
column.setResizable(false);
- //if (project_infos.keySet().size() > 1){
column = new TableColumn(table, SWT.LEFT, coulmnIndex++);
column.setText(JdtUiMessages.NewHibernateMappingFilePage_project_name_column);
column.setWidth(120);
- //}
column = new TableColumn(table, SWT.LEFT, coulmnIndex++);
column.setText(JdtUiMessages.NewHibernateMappingFilePage_class_name_column);
- column.setWidth(150);
+ column.setWidth(200);
column = new TableColumn(table, SWT.LEFT, coulmnIndex++);
column.setText(JdtUiMessages.NewHibernateMappingFilePage_file_name_column);
@@ -120,10 +131,11 @@
Columns.PROJECT.toString(), Columns.CLASS.toString(), Columns.FILE.toString()} );
CellEditor[] editors = new CellEditor[result.getColumnProperties().length];
- editors[0] = new CheckboxCellEditor( result.getTable() );
- editors[1] = new TextCellEditor( result.getTable() );
- editors[2] = new TextCellEditor( result.getTable() );
- editors[3] = new TextCellEditor( result.getTable() );
+ int coulmnIndex = 0;
+ editors[coulmnIndex++] = new CheckboxCellEditor( result.getTable() );
+ editors[coulmnIndex++] = new TextCellEditor( result.getTable() );
+ editors[coulmnIndex++] = new TextCellEditor( result.getTable() );
+ editors[coulmnIndex++] = new TextCellEditor( result.getTable() );
result.setCellEditors( editors );
result.setCellModifier( new TableCellModifier(result) );
@@ -139,18 +151,21 @@
public String className;
public String fileName;
+
+ public IProject project;
public Boolean isCreate = true;
- public TableLine(String projectName, String className){
- this(projectName, className, className + ".hbm.xml",true); //$NON-NLS-1$
+ public TableLine(IProject iProject, String className){
+ this(iProject, className, className + ".hbm.xml",true); //$NON-NLS-1$
}
- public TableLine(String projectName, String className, String fileName, boolean isCreate){
- this.projectName = projectName;
+ public TableLine(IProject iProject, String className, String fileName, boolean isCreate){
+ this.projectName = iProject.getName();
this.className = className;
this.fileName = fileName;
this.isCreate = isCreate;
+ this.project = iProject;
}
}
@@ -173,7 +188,7 @@
Iterator<EntityInfo> iter = entry.getValue().iterator();
while (iter.hasNext()) {
EntityInfo ei = iter.next();
- result.add(new TableLine(entry.getKey().getProject().getName(), ei.getName()));
+ result.add(new TableLine(entry.getKey().getProject(), ei.getName()));
}
}
return result.toArray();
@@ -190,6 +205,10 @@
private class TableLableProvider extends LabelProvider implements ITableLabelProvider {
private final TableViewer tv;
+
+ private final Point IMAGE_SIZE = new Point(16, 16);
+
+ private final ImageDescriptorRegistry registry = JavaPlugin.getImageDescriptorRegistry();
public TableLableProvider(TableViewer tv) {
this.tv = tv;
@@ -197,12 +216,25 @@
public Image getColumnImage(Object element, int columnIndex) {
String property = (String) tv.getColumnProperties()[columnIndex];
- if(Columns.CREATE.toString().equals(property)) {
- TableLine tl = (TableLine) element;
+ TableLine tl = (TableLine) element;
+ if(Columns.CREATE.toString().equals(property)) {
String key = tl.isCreate ? null : ImageConstants.CLOSE ; // TODO: find a better image
return EclipseImages.getImage(key);
+ } else if (Columns.CLASS.toString().equals(property)){
+ return registry.get(
+ new JavaElementImageDescriptor(JavaPluginImages.DESC_OBJS_CLASS, 0, IMAGE_SIZE));
+ } else if (Columns.FILE.toString().equals(property)){
+ IFile file = tl.project.getFile(tl.fileName);
+ IWorkbenchAdapter wbAdapter= (IWorkbenchAdapter) file.getAdapter(IWorkbenchAdapter.class);
+ if (wbAdapter != null) {
+ ImageDescriptor descriptor= wbAdapter.getImageDescriptor(file);
+ if (descriptor != null) {
+ return registry.get(
+ new JavaElementImageDescriptor(descriptor, 0, IMAGE_SIZE));
+ }
+ }
}
- return null;
+ return null;
}
public String getColumnText(Object element, int columnIndex) {
[View Less]
15 years, 1 month
JBoss Tools SVN: r18823 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-11-25 08:53:01 -0500 (Wed, 25 Nov 2009)
New Revision: 18823
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/XulRunnerPreview.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5184
Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/XulRunnerPreview.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/…
[View More]mozilla/XulRunnerPreview.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/XulRunnerPreview.java 2009-11-25 13:53:01 UTC (rev 18823)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * Copyright (c) 2007-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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.editor.mozilla;
+
+import org.eclipse.swt.widgets.Composite;
+import org.jboss.tools.vpe.xulrunner.XulRunnerException;
+import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
+
+public class XulRunnerPreview extends XulRunnerEditor {
+
+ private MozillaPreview mozillaPreview;
+
+ public XulRunnerPreview(Composite parent, MozillaPreview mozillaPreview) throws XulRunnerException {
+ super(parent);
+ this.mozillaPreview = mozillaPreview;
+ }
+
+ public void onLoadWindow() {
+ super.onLoadWindow();
+ mozillaPreview.onLoadWindow();
+ }
+
+ public void onShowTooltip(int x, int y, String text) {
+ if (mozillaPreview != null && mozillaPreview.getEditorDomEventListener() != null) {
+ mozillaPreview.getEditorDomEventListener().onShowTooltip(x, y, text);
+ }
+ }
+ public void onHideTooltip() {
+ if (mozillaPreview != null && mozillaPreview.getEditorDomEventListener() != null) {
+ mozillaPreview.getEditorDomEventListener().onHideTooltip();
+ }
+ }
+
+ public void onDispose() {
+ if (mozillaPreview != null) {
+ mozillaPreview.removeDomEventListeners();
+ mozillaPreview = null;
+ }
+ super.onDispose();
+ }
+}
[View Less]
15 years, 1 month