Author: scabanovich
Date: 2009-10-09 11:13:19 -0400 (Fri, 09 Oct 2009)
New Revision: 18011
Added:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ObjectPathConverter.java
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb-attrs.properties
trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb.properties
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
Log:
https://jira.jboss.org/jira/browse/JBIDE-5003
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb-attrs.properties
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb-attrs.properties 2009-10-09
14:50:27 UTC (rev 18010)
+++
trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb-attrs.properties 2009-10-09
15:13:19 UTC (rev 18011)
@@ -127,3 +127,4 @@
ESB.fault_xsd=Fault XSD
ESB.validate=Validate
ESB.webservice=Webservice
+ESB.esb=esb
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb.properties
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb.properties 2009-10-09
14:50:27 UTC (rev 18010)
+++
trunk/esb/plugins/org.jboss.tools.esb.core/resources/help/keys-esb.properties 2009-10-09
15:13:19 UTC (rev 18011)
@@ -427,20 +427,17 @@
ESBActivationConfig101_Properties.Title=ESB Activation Config
+ESB.AddRouteTo.WindowTitle=Add Route To
+ESB.AddRouteTo..Title=ESB Route To
+
# Actions extension
-ESBPreActionContentBasedRouter101_AddRouteTo.WindowTitle=Add Route To
-ESBPreActionContentBasedRouter101_AddRouteTo.Title=ESB Route To
+ESBPreActionBusinessRulesProcessor101_AddObjectPath.WindowTitle=Add Object Path
+ESBPreActionBusinessRulesProcessor101_AddObjectPath.Title=ESB Object Path
ESBPreActionNotifier101_AddNotificationList.WindowTitle=Add Notification List
ESBPreActionNotifier101_AddNotificationList.Title=ESB Notification List
-ESBPreActionStaticRouter101_AddRouteTo.WindowTitle=Add Route To
-ESBPreActionStaticRouter101_AddRouteTo.Title=ESB Route To
-
-ESBPreActionStaticWiretap101_AddRouteTo.WindowTitle=Add Route To
-ESBPreActionStaticWiretap101_AddRouteTo.Title=ESB Route To
-
ESBPreActionXStreamToObject101_AddAlias.WindowTitle=Add Alias
ESBPreActionXStreamToObject101_AddAlias.Title=ESB Alias
@@ -453,6 +450,8 @@
ESBPreRouteTo_Properties.Title=ESB Route To
+ESBPreObjectPath_Properties.Title=ESB Object Path
+
ESBPreTarget_CreateTag.WindowTitle=Add Tag
ESBPreTarget_CreateTag.Title=XML Element
@@ -601,3 +600,4 @@
ESBPreActionStaticWiretap101_Properties.Title=Static Wiretap
ESBPreActionSystemPrintln101_Properties.Title=System Println
ESBPreActionXStreamToObject101_Properties.Title=XStream to Object
+ESBPreActionBusinessRulesProcessor101_Properties.Title=Business Rules Processor
\ No newline at end of file
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-10-09
14:50:27 UTC (rev 18010)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2009-10-09
15:13:19 UTC (rev 18011)
@@ -90,6 +90,71 @@
<XDependencies/>
</XModelEntity>
<XModelEntity ImplementingClass="%ESB%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%"
+ XMLSUBPATH="action"
name="ESBPreActionBusinessRulesProcessor101">
+ <XChildrenEntities>
+ <XChildEntity name="ESBProperty"/>
+ <XChildEntity name="ESBPreObjectPath"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.action" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="content based router 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.BusinessRulesProcessor"
+ name="class" xmlname="class">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ name="rule set" xmlname="ruleSet"/>
+ <XModelAttribute PROPERTIES="category=general;pre=true"
+ name="rule language" xmlname="ruleLanguage"/>
+ <XModelAttribute PROPERTIES="pre=true;category=general"
+ default="Default(false)" name="rule reload"
xmlname="ruleReload">
+ <Constraint loader="ListString">
+ <value name="Default(false)"/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="process"
xmlname="process">
+ <Constraint loader="ListString">
+ <value name="process"/>
+ <value name="split"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Add Object Path..." kind="action"
name="AddObjectPath">
+ <EntityData EntityName="ESBPreObjectPath">
+ <AttributeData AttributeName="esb"/>
+ </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="ESBPreActionByteArrayToString101">
<XChildrenEntities>
@@ -1082,6 +1147,50 @@
</XModelEntity>
<XModelEntity
ImplementingClass="org.jboss.tools.esb.core.model.ESBRouteToImpl"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;converter=path"
+ XMLSUBPATH="object-path" name="ESBPreObjectPath">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.esb.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="route to" loader="ElementType"
name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general;id=true;save=always"
+ name="esb" xmlname="esb"/>
+ <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=route"
XMLSUBPATH="route-to" name="ESBPreRouteTo">
<XChildrenEntities/>
@@ -1202,6 +1311,7 @@
<XChildEntity name="ESBPreActionSOAPClient101"/>
<XChildEntity name="ESBPreActionSystemPrintln101"/>
<XChildEntity name="ESBPreActionNotifier101"/>
+ <XChildEntity name="ESBPreActionBusinessRulesProcessor101"/>
</XChildrenEntities>
<XActionItem kind="list">
<XActionItem ICON="action.empty" displayName="New"
group="1"
@@ -1378,6 +1488,15 @@
<AttributeData AttributeName="message"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Business Rules Processor..." kind="action"
name="AddBusinessRulesProcessor">
+ <EntityData EntityName="ESBPreActionBusinessRulesProcessor101">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="process" Mandatory="no"/>
+ <AttributeData AttributeName="rule set"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
@@ -1403,21 +1522,20 @@
<XChildEntity name="ESBPreActionSOAPClient101"/>
<XChildEntity name="ESBPreActionSystemPrintln101"/>
<XChildEntity name="ESBPreActionNotifier101"/>
+ <XChildEntity name="ESBPreActionBusinessRulesProcessor101"/>
</XChildrenEntities>
<XActionItem kind="list">
<XActionItem ICON="action.empty" displayName="New"
group="1"
kind="list" name="CreateActions">
<XActionItem displayName="Add Pre-Packed Action" kind="list"
name="PrePackedAction">
- <XActionItemReference entity="ESBActions101"
name="AddObjectInvoke" path="CreateActions/AddObjectInvoke"/>
- <XActionItemReference entity="ESBActions101"
name="Converters" path="CreateActions/Converters"/>
- <XActionItemReference entity="ESBActions101"
- name="AddCommandInterpreter"
path="CreateActions/AddCommandInterpreter"/>
- <XActionItemReference entity="ESBActions101"
- name="AddGroovyProcessor"
path="CreateActions/AddGroovyProcessor"/>
- <XActionItemReference entity="ESBActions101" name="Routers"
path="CreateActions/Routers"/>
- <XActionItemReference entity="ESBActions101" name="SOAP"
path="CreateActions/SOAP"/>
- <XActionItemReference entity="ESBActions101"
- name="AddSystemPrintln"
path="CreateActions/AddSystemPrintln"/>
+ <XActionItemReference entity="ESBActions101"
name="AddObjectInvoke"/>
+ <XActionItemReference entity="ESBActions101"
name="Converters"/>
+ <XActionItemReference entity="ESBActions101"
name="AddCommandInterpreter"/>
+ <XActionItemReference entity="ESBActions101"
name="AddGroovyProcessor"/>
+ <XActionItemReference entity="ESBActions101"
name="Routers"/>
+ <XActionItemReference entity="ESBActions101"
name="SOAP"/>
+ <XActionItemReference entity="ESBActions101"
name="AddSystemPrintln"/>
+ <XActionItemReference entity="ESBActions101"
name="AddBusinessRulesProcessor"/>
</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-10-09
14:50:27 UTC (rev 18010)
+++
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/SpecificActionLoader.java 2009-10-09
15:13:19 UTC (rev 18011)
@@ -23,6 +23,7 @@
import org.jboss.tools.esb.core.ESBCorePlugin;
import org.jboss.tools.esb.core.model.converters.AliasConverter;
import org.jboss.tools.esb.core.model.converters.NotificationConverter;
+import org.jboss.tools.esb.core.model.converters.ObjectPathConverter;
import org.jboss.tools.esb.core.model.converters.RouteToConverter;
/**
@@ -75,6 +76,8 @@
//wsdl, operation +other
{"org.jboss.soa.esb.actions.SystemPrintln",
"ESBPreActionSystemPrintln"},
//message, printfull, outputstream
+ {"org.jboss.soa.esb.actions.BusinessRulesProcessor",
"ESBPreActionBusinessRulesProcessor"},
+ //ruleSet, ruleLanguage, ruleReload, object-paths!
};
public static final SpecificActionLoader instance = new SpecificActionLoader();
@@ -173,6 +176,8 @@
new AliasConverter().toSpecific(basic, action);
} else if("route".equals(converter)) {
new RouteToConverter().toSpecific(basic, action);
+ } else if("path".equals(converter)) {
+ new ObjectPathConverter().toSpecific(basic, action);
} else if("notification".equals(converter)) {
new NotificationConverter().toSpecific(basic, action);
}
@@ -230,6 +235,8 @@
new AliasConverter().toBasic(result, action);
} else if("route".equals(converter)) {
new RouteToConverter().toBasic(result, action);
+ } else if("path".equals(converter)) {
+ new ObjectPathConverter().toBasic(result, action);
} else if("notification".equals(converter)) {
new NotificationConverter().toBasic(result, action);
}
Added:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ObjectPathConverter.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ObjectPathConverter.java
(rev 0)
+++
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ObjectPathConverter.java 2009-10-09
15:13:19 UTC (rev 18011)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * 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;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class ObjectPathConverter extends ListConverter {
+ static final String OBJECT_PATH_ENTITY = "ESBPreObjectPath";
+ static final String OBJECT_PATHS = "object-paths";
+
+ protected String getPropertyName() {
+ return OBJECT_PATHS;
+ }
+
+ protected String getItemEntityName() {
+ return OBJECT_PATH_ENTITY;
+ }
+
+}
Property changes on:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/converters/ObjectPathConverter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain