Author: DartPeng
Date: 2009-05-25 04:02:20 -0400 (Mon, 25 May 2009)
New Revision: 15481
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateESBRoutingDocumentRoot_routeBean_RouteBean.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_condition_ConditionType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_conditions_ConditionsType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_features_FeaturesType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_handler_HandlerType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_handlers_HandlersType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_import_ImportType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_param_ParamType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_params_ParamsType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_profile_ProfileType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_profiles_ProfilesType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_reader_ReaderType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_resourceConfig_ResourceConfigType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_resource_ResourceType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_setOff_SetOffType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_setOn_SetOnType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_smooksResourceList_SmooksResourceListType.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_RouteBean.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ESBRoutingDocumentRoot.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/RouteBean.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Smooks11DocumentRoot.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/ESBRoutingDocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/RouteBean.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/ESBRoutingDocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/RouteBeanImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/ESBRoutingDocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/Esbrouting1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/EsbroutingItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/RouteBeanItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingXMLProcessor.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/routing-1.0.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/esbrouter/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/esbrouter/RouteBeanPropertyUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/BeanIdRefProposalProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/FieldAssistDisposer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorConentProposalListener.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposal.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposalProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/Test.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/TypeFieldAssistDisposer.java
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model/configfiles/smooks112/route-to-02_Low_Price_Service.xml
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/impl/FreemarkerImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/impl/XslImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IPropertyUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreator.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/SelectoreSelectionDialog.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/calc/CounterUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/datasource/DirectUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/FreemarkerUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/TemplateUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/GroovyUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/ScriptUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/BindingsPropertyUICreator.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/jms/JmsRouterUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ParamTypeUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ResourceConfigTypeUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/SmooksResourceListTypeUICreator.java
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/xsl/TemplateUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/xsl/XslUICreator.java
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model11/AbstractSmooks11ModelTestCase.java
Log:
JBIDE-4372
1. Add JBoss ESB Router Model
2. Add "SelectorContentAssist" and "BeanIdRefContentAssist"
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-05-25
07:57:24 UTC (rev 15480)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF 2009-05-25
08:02:20 UTC (rev 15481)
@@ -37,6 +37,10 @@
org.jboss.tools.smooks.model.edi.impl,
org.jboss.tools.smooks.model.edi.provider,
org.jboss.tools.smooks.model.edi.util,
+ org.jboss.tools.smooks.model.esbrouting,
+ org.jboss.tools.smooks.model.esbrouting.impl,
+ org.jboss.tools.smooks.model.esbrouting.provider,
+ org.jboss.tools.smooks.model.esbrouting.util,
org.jboss.tools.smooks.model.fileRouting,
org.jboss.tools.smooks.model.fileRouting.impl,
org.jboss.tools.smooks.model.fileRouting.provider,
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateESBRoutingDocumentRoot_routeBean_RouteBean.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateESBRoutingDocumentRoot_routeBean_RouteBean.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_condition_ConditionType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_condition_ConditionType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_conditions_ConditionsType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_conditions_ConditionsType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_features_FeaturesType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_features_FeaturesType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_handler_HandlerType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_handler_HandlerType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_handlers_HandlersType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_handlers_HandlersType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_import_ImportType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_import_ImportType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_param_ParamType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_param_ParamType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_params_ParamsType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_params_ParamsType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_profile_ProfileType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_profile_ProfileType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_profiles_ProfilesType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_profiles_ProfilesType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_reader_ReaderType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_reader_ReaderType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_resourceConfig_ResourceConfigType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_resourceConfig_ResourceConfigType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_resource_ResourceType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_resource_ResourceType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_setOff_SetOffType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_setOff_SetOffType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_setOn_SetOnType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_setOn_SetOnType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_smooksResourceList_SmooksResourceListType.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooks11DocumentRoot_smooksResourceList_SmooksResourceListType.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_RouteBean.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_RouteBean.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ESBRoutingDocumentRoot.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ESBRoutingDocumentRoot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/RouteBean.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/RouteBean.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Smooks11DocumentRoot.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Smooks11DocumentRoot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.ecore
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.ecore 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
name="esbrouting"
+
nsURI="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd"
nsPrefix="esb">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="JBoss ESB Smooks Routing
Components"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass"
name="ESBRoutingDocumentRoot">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
unique="false" upperBound="-1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="routeBean" upperBound="-2"
+ eType="#//RouteBean" volatile="true"
transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="JBoss ESB Async
Router."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="routeBean"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation"
value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-con...
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="RouteBean"
eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="JBoss ESB Async
Router."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="routeBean"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="beanIdRef" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Bean ID reference of the
bean to be routed to the target Service.

"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="beanIdRef"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="messagePayloadLocation"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String" defaultValueLiteral=""
+ unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="ESB Message.Body location
on which the routed bean will be set."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="messagePayloadLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="routeBefore" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="false" unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Route on visitBefore of the
routeOnElement."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeBefore"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="routeOnElement" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Route on
Element."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="routeOnElementNS" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Route on Element
Namespace."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElementNS"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="toServiceCategory" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Target Service
Category."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="toServiceCategory"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="toServiceName" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Target Service
Name."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="toServiceName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.genmodel
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.genmodel
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.genmodel 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+
xmlns:xmi="http://www.omg.org/XMI"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/esb-routing/src"
+ modelPluginID="esb_routing" modelName="Esbrouting-1"
importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>esbrouting-1.0.ecore</foreignModel>
+ <genPackages prefix="Esbrouting" resource="XML"
disposableProviderFactory="true"
+ ecorePackage="esbrouting-1.0.ecore#/">
+ <genClasses
ecoreClass="esbrouting-1.0.ecore#//ESBRoutingDocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/routeBean"/>
+ </genClasses>
+ <genClasses ecoreClass="esbrouting-1.0.ecore#//RouteBean">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/beanIdRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/messagePayloadLocation"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/routeBefore"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/routeOnElement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/routeOnElementNS"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/toServiceCategory"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/toServiceName"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML"
disposableProviderFactory="true"
ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//Smooks11DocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//Smooks11DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/handler"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/import"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/param"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/profile"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/reader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML"
disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false"
ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/all_model/esbrouting-1.0.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.ecore
(rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.ecore 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
name="esbrouting"
+
nsURI="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd"
nsPrefix="esb">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="JBoss ESB Smooks Routing
Components"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass"
name="ESBRoutingDocumentRoot">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
unique="false" upperBound="-1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="routeBean" upperBound="-2"
+ eType="#//RouteBean" volatile="true"
transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="JBoss ESB Async
Router."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="routeBean"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation"
value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-con...
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="RouteBean"
eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="JBoss ESB Async
Router."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="routeBean"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="beanIdRef" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Bean ID reference of the
bean to be routed to the target Service.

"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="beanIdRef"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="messagePayloadLocation"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String" defaultValueLiteral=""
+ unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="ESB Message.Body location
on which the routed bean will be set."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="messagePayloadLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="routeBefore" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="false" unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Route on visitBefore of the
routeOnElement."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeBefore"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="routeOnElement" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Route on
Element."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="routeOnElementNS" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Route on Element
Namespace."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElementNS"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="toServiceCategory" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Target Service
Category."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="toServiceCategory"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="toServiceName" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Target Service
Name."/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="toServiceName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.genmodel
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.genmodel 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+
xmlns:xmi="http://www.omg.org/XMI"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/esb-routing/src"
+ modelPluginID="esb_routing" modelName="Esbrouting-1"
importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>esbrouting-1.0.ecore</foreignModel>
+ <genPackages prefix="Esbrouting" resource="XML"
disposableProviderFactory="true"
+ ecorePackage="esbrouting-1.0.ecore#/">
+ <genClasses
ecoreClass="esbrouting-1.0.ecore#//ESBRoutingDocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
esbrouting-1.0.ecore#//ESBRoutingDocumentRoot/routeBean"/>
+ </genClasses>
+ <genClasses ecoreClass="esbrouting-1.0.ecore#//RouteBean">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/beanIdRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/messagePayloadLocation"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/routeBefore"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/routeOnElement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/routeOnElementNS"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/toServiceCategory"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
esbrouting-1.0.ecore#//RouteBean/toServiceName"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML"
disposableProviderFactory="true"
ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//Smooks11DocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//Smooks11DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/handler"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/import"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/param"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/profile"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/reader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//Smooks11DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML"
disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false"
ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/esbrouting-1.0.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-05-25 07:57:24
UTC (rev 15480)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-05-25 08:02:20
UTC (rev 15481)
@@ -428,4 +428,19 @@
_UI_CountDirection_INCREMENT_literal = INCREMENT
-_UI_CountDirection_DECREMENT_literal = DECREMENT
\ No newline at end of file
+_UI_CountDirection_DECREMENT_literal = DECREMENT
+
+# ESB Rout
+_UI_ESBRoutingDocumentRoot_mixed_feature = Mixed
+_UI_ESBRoutingDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
+_UI_ESBRoutingDocumentRoot_xSISchemaLocation_feature = XSI Schema Location
+_UI_ESBRoutingDocumentRoot_routeBean_feature = JBoss ESB Router
+_UI_RouteBean_beanIdRef_feature = Bean Id Ref
+_UI_RouteBean_messagePayloadLocation_feature = Message Payload Location
+_UI_RouteBean_routeBefore_feature = Route Before
+_UI_RouteBean_routeOnElement_feature = Route On Element
+_UI_RouteBean_routeOnElementNS_feature = Route On Element NS
+_UI_RouteBean_toServiceCategory_feature = To Service Category
+_UI_RouteBean_toServiceName_feature = To Service Name
+_UI_ESBRoutingDocumentRoot_type = ESB Routing Document Root
+_UI_RouteBean_type = JBoss ESB Router
\ No newline at end of file
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-05-25 07:57:24 UTC
(rev 15480)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-05-25 08:02:20 UTC
(rev 15481)
@@ -213,6 +213,14 @@
type="calc"
class="org.jboss.tools.smooks.model.calc.util.CalcResourceFactoryImpl"/>
</extension>
+ <extension
+ point="org.eclipse.emf.ecore.generated_package">
+ <package
+ class="org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage"
+ genModel="model/esbrouting-1.0.genmodel"
+
uri="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd">
+ </package>
+ </extension>
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/ESBRoutingDocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/ESBRoutingDocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/ESBRoutingDocumentRoot.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,114 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.util.FeatureMap;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>ESB Routing Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getRouteBean
<em>Route Bean</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getESBRoutingDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface ESBRoutingDocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>'
attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getESBRoutingDocumentRoot_Mixed()
+ * @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard'
name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
+
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getESBRoutingDocumentRoot_XMLNSPrefixMap()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema
Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getESBRoutingDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>Route Bean</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * JBoss ESB Async Router.
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route Bean</em>' containment
reference.
+ * @see #setRouteBean(RouteBean)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getESBRoutingDocumentRoot_RouteBean()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='routeBean'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resourc...
+ * @generated
+ */
+ RouteBean getRouteBean();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getRouteBean
<em>Route Bean</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route Bean</em>'
containment reference.
+ * @see #getRouteBean()
+ * @generated
+ */
+ void setRouteBean(RouteBean value);
+
+} // ESBRoutingDocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/ESBRoutingDocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingFactory.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,55 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage
+ * @generated
+ */
+public interface EsbroutingFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EsbroutingFactory eINSTANCE =
org.jboss.tools.smooks.model.esbrouting.impl.EsbroutingFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>ESB Routing Document
Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>ESB Routing Document
Root</em>'.
+ * @generated
+ */
+ ESBRoutingDocumentRoot createESBRoutingDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>Route Bean</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Route Bean</em>'.
+ * @generated
+ */
+ RouteBean createRouteBean();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ EsbroutingPackage getEsbroutingPackage();
+
+} //EsbroutingFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingPackage.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,522 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * JBoss ESB Smooks Routing Components
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.EsbroutingFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface EsbroutingPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "esbrouting";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "esb";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EsbroutingPackage eINSTANCE =
org.jboss.tools.smooks.model.esbrouting.impl.EsbroutingPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl <em>ESB
Routing Document Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.esbrouting.impl.EsbroutingPackageImpl#getESBRoutingDocumentRoot()
+ * @generated
+ */
+ int ESB_ROUTING_DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ESB_ROUTING_DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Route Bean</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN = 3;
+
+ /**
+ * The number of structural features of the '<em>ESB Routing Document
Root</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ESB_ROUTING_DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl <em>Route
Bean</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl
+ * @see
org.jboss.tools.smooks.model.esbrouting.impl.EsbroutingPackageImpl#getRouteBean()
+ * @generated
+ */
+ int ROUTE_BEAN = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__MIXED = SmooksPackage.ELEMENT_VISITOR__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__ANY = SmooksPackage.ELEMENT_VISITOR__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__ANY_ATTRIBUTE = SmooksPackage.ELEMENT_VISITOR__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Condition</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__CONDITION = SmooksPackage.ELEMENT_VISITOR__CONDITION;
+
+ /**
+ * The feature id for the '<em><b>Target
Profile</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Bean Id Ref</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__BEAN_ID_REF = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Message Payload
Location</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT +
1;
+
+ /**
+ * The feature id for the '<em><b>Route Before</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__ROUTE_BEFORE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Route On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__ROUTE_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Route On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__ROUTE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>To Service
Category</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__TO_SERVICE_CATEGORY = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the '<em><b>To Service
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN__TO_SERVICE_NAME = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6;
+
+ /**
+ * The number of structural features of the '<em>Route Bean</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTE_BEAN_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 7;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot <em>ESB Routing
Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>ESB Routing Document
Root</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot
+ * @generated
+ */
+ EClass getESBRoutingDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getMixed
<em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getMixed()
+ * @see #getESBRoutingDocumentRoot()
+ * @generated
+ */
+ EAttribute getESBRoutingDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getXMLNSPrefixMap()
+ * @see #getESBRoutingDocumentRoot()
+ * @generated
+ */
+ EReference getESBRoutingDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getXSISchemaLocation
<em>XSI Schema Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getXSISchemaLocation()
+ * @see #getESBRoutingDocumentRoot()
+ * @generated
+ */
+ EReference getESBRoutingDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getRouteBean
<em>Route Bean</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Route
Bean</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot#getRouteBean()
+ * @see #getESBRoutingDocumentRoot()
+ * @generated
+ */
+ EReference getESBRoutingDocumentRoot_RouteBean();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean <em>Route Bean</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Route Bean</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean
+ * @generated
+ */
+ EClass getRouteBean();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getBeanIdRef <em>Bean Id
Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Bean Id
Ref</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean#getBeanIdRef()
+ * @see #getRouteBean()
+ * @generated
+ */
+ EAttribute getRouteBean_BeanIdRef();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getMessagePayloadLocation
<em>Message Payload Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Message Payload
Location</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean#getMessagePayloadLocation()
+ * @see #getRouteBean()
+ * @generated
+ */
+ EAttribute getRouteBean_MessagePayloadLocation();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#isRouteBefore <em>Route
Before</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Route
Before</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean#isRouteBefore()
+ * @see #getRouteBean()
+ * @generated
+ */
+ EAttribute getRouteBean_RouteBefore();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElement <em>Route On
Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Route On
Element</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElement()
+ * @see #getRouteBean()
+ * @generated
+ */
+ EAttribute getRouteBean_RouteOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElementNS <em>Route On
Element NS</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Route On Element
NS</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElementNS()
+ * @see #getRouteBean()
+ * @generated
+ */
+ EAttribute getRouteBean_RouteOnElementNS();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceCategory <em>To
Service Category</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>To Service
Category</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceCategory()
+ * @see #getRouteBean()
+ * @generated
+ */
+ EAttribute getRouteBean_ToServiceCategory();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceName <em>To Service
Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>To Service
Name</em>'.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceName()
+ * @see #getRouteBean()
+ * @generated
+ */
+ EAttribute getRouteBean_ToServiceName();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ EsbroutingFactory getEsbroutingFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl <em>ESB
Routing Document Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.esbrouting.impl.EsbroutingPackageImpl#getESBRoutingDocumentRoot()
+ * @generated
+ */
+ EClass ESB_ROUTING_DOCUMENT_ROOT = eINSTANCE.getESBRoutingDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ESB_ROUTING_DOCUMENT_ROOT__MIXED =
eINSTANCE.getESBRoutingDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getESBRoutingDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getESBRoutingDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the '<em><b>Route
Bean</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN =
eINSTANCE.getESBRoutingDocumentRoot_RouteBean();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl <em>Route
Bean</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl
+ * @see
org.jboss.tools.smooks.model.esbrouting.impl.EsbroutingPackageImpl#getRouteBean()
+ * @generated
+ */
+ EClass ROUTE_BEAN = eINSTANCE.getRouteBean();
+
+ /**
+ * The meta object literal for the '<em><b>Bean Id
Ref</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTE_BEAN__BEAN_ID_REF = eINSTANCE.getRouteBean_BeanIdRef();
+
+ /**
+ * The meta object literal for the '<em><b>Message Payload
Location</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION =
eINSTANCE.getRouteBean_MessagePayloadLocation();
+
+ /**
+ * The meta object literal for the '<em><b>Route
Before</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTE_BEAN__ROUTE_BEFORE = eINSTANCE.getRouteBean_RouteBefore();
+
+ /**
+ * The meta object literal for the '<em><b>Route On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTE_BEAN__ROUTE_ON_ELEMENT = eINSTANCE.getRouteBean_RouteOnElement();
+
+ /**
+ * The meta object literal for the '<em><b>Route On Element
NS</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTE_BEAN__ROUTE_ON_ELEMENT_NS =
eINSTANCE.getRouteBean_RouteOnElementNS();
+
+ /**
+ * The meta object literal for the '<em><b>To Service
Category</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTE_BEAN__TO_SERVICE_CATEGORY =
eINSTANCE.getRouteBean_ToServiceCategory();
+
+ /**
+ * The meta object literal for the '<em><b>To Service
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTE_BEAN__TO_SERVICE_NAME = eINSTANCE.getRouteBean_ToServiceName();
+
+ }
+
+} //EsbroutingPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/EsbroutingPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/RouteBean.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/RouteBean.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/RouteBean.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,277 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting;
+
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Route
Bean</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * JBoss ESB Async Router.
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.esbrouting.RouteBean#getBeanIdRef
<em>Bean Id Ref</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getMessagePayloadLocation
<em>Message Payload Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.esbrouting.RouteBean#isRouteBefore
<em>Route Before</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElement
<em>Route On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElementNS <em>Route On
Element NS</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceCategory <em>To
Service Category</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceName
<em>To Service Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean()
+ * @model extendedMetaData="name='routeBean'
kind='elementOnly'"
+ * @generated
+ */
+public interface RouteBean extends ElementVisitor {
+ /**
+ * Returns the value of the '<em><b>Bean Id
Ref</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Bean ID reference of the bean to be routed to the target Service.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Bean Id Ref</em>' attribute.
+ * @see #setBeanIdRef(String)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean_BeanIdRef()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='beanIdRef'"
+ * @generated
+ */
+ String getBeanIdRef();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getBeanIdRef <em>Bean Id
Ref</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Bean Id Ref</em>'
attribute.
+ * @see #getBeanIdRef()
+ * @generated
+ */
+ void setBeanIdRef(String value);
+
+ /**
+ * Returns the value of the '<em><b>Message Payload
Location</b></em>' attribute.
+ * The default value is <code>""</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * ESB Message.Body location on which the routed bean will be set.
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Message Payload Location</em>'
attribute.
+ * @see #isSetMessagePayloadLocation()
+ * @see #unsetMessagePayloadLocation()
+ * @see #setMessagePayloadLocation(String)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean_MessagePayloadLocation()
+ * @model default="" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='messagePayloadLocation'"
+ * @generated
+ */
+ String getMessagePayloadLocation();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getMessagePayloadLocation
<em>Message Payload Location</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Message Payload
Location</em>' attribute.
+ * @see #isSetMessagePayloadLocation()
+ * @see #unsetMessagePayloadLocation()
+ * @see #getMessagePayloadLocation()
+ * @generated
+ */
+ void setMessagePayloadLocation(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getMessagePayloadLocation
<em>Message Payload Location</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetMessagePayloadLocation()
+ * @see #getMessagePayloadLocation()
+ * @see #setMessagePayloadLocation(String)
+ * @generated
+ */
+ void unsetMessagePayloadLocation();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getMessagePayloadLocation
<em>Message Payload Location</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Message Payload
Location</em>' attribute is set.
+ * @see #unsetMessagePayloadLocation()
+ * @see #getMessagePayloadLocation()
+ * @see #setMessagePayloadLocation(String)
+ * @generated
+ */
+ boolean isSetMessagePayloadLocation();
+
+ /**
+ * Returns the value of the '<em><b>Route
Before</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Route on visitBefore of the routeOnElement.
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route Before</em>' attribute.
+ * @see #isSetRouteBefore()
+ * @see #unsetRouteBefore()
+ * @see #setRouteBefore(boolean)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean_RouteBefore()
+ * @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
+ * extendedMetaData="kind='attribute'
name='routeBefore'"
+ * @generated
+ */
+ boolean isRouteBefore();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#isRouteBefore <em>Route
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route Before</em>'
attribute.
+ * @see #isSetRouteBefore()
+ * @see #unsetRouteBefore()
+ * @see #isRouteBefore()
+ * @generated
+ */
+ void setRouteBefore(boolean value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#isRouteBefore <em>Route
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetRouteBefore()
+ * @see #isRouteBefore()
+ * @see #setRouteBefore(boolean)
+ * @generated
+ */
+ void unsetRouteBefore();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#isRouteBefore <em>Route
Before</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Route Before</em>'
attribute is set.
+ * @see #unsetRouteBefore()
+ * @see #isRouteBefore()
+ * @see #setRouteBefore(boolean)
+ * @generated
+ */
+ boolean isSetRouteBefore();
+
+ /**
+ * Returns the value of the '<em><b>Route On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Route on Element.
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route On Element</em>' attribute.
+ * @see #setRouteOnElement(String)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean_RouteOnElement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='routeOnElement'"
+ * @generated
+ */
+ String getRouteOnElement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElement <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route On Element</em>'
attribute.
+ * @see #getRouteOnElement()
+ * @generated
+ */
+ void setRouteOnElement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Route On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Route on Element Namespace.
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route On Element NS</em>'
attribute.
+ * @see #setRouteOnElementNS(String)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean_RouteOnElementNS()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='routeOnElementNS'"
+ * @generated
+ */
+ String getRouteOnElementNS();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getRouteOnElementNS <em>Route On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route On Element NS</em>'
attribute.
+ * @see #getRouteOnElementNS()
+ * @generated
+ */
+ void setRouteOnElementNS(String value);
+
+ /**
+ * Returns the value of the '<em><b>To Service
Category</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Target Service Category.
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>To Service Category</em>'
attribute.
+ * @see #setToServiceCategory(String)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean_ToServiceCategory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='toServiceCategory'"
+ * @generated
+ */
+ String getToServiceCategory();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceCategory <em>To
Service Category</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>To Service Category</em>'
attribute.
+ * @see #getToServiceCategory()
+ * @generated
+ */
+ void setToServiceCategory(String value);
+
+ /**
+ * Returns the value of the '<em><b>To Service
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Target Service Name.
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>To Service Name</em>' attribute.
+ * @see #setToServiceName(String)
+ * @see
org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#getRouteBean_ToServiceName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='toServiceName'"
+ * @generated
+ */
+ String getToServiceName();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean#getToServiceName <em>To Service
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>To Service Name</em>'
attribute.
+ * @see #getToServiceName()
+ * @generated
+ */
+ void setToServiceName(String value);
+
+} // RouteBean
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/RouteBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/ESBRoutingDocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/ESBRoutingDocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/ESBRoutingDocumentRootImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.impl;
+
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+import org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>ESB Routing Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.ESBRoutingDocumentRootImpl#getRouteBean
<em>Route Bean</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ESBRoutingDocumentRootImpl extends EObjectImpl implements
ESBRoutingDocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix
Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema
Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ESBRoutingDocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this,
EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__MIXED);
+ }
+ return mixed;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap<String, String> getXMLNSPrefixMap() {
+ if (xMLNSPrefixMap == null) {
+ xMLNSPrefixMap = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this,
EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ }
+ return xMLNSPrefixMap;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap<String, String> getXSISchemaLocation() {
+ if (xSISchemaLocation == null) {
+ xSISchemaLocation = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this,
EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RouteBean getRouteBean() {
+ return
(RouteBean)getMixed().get(EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRouteBean(RouteBean newRouteBean, NotificationChain
msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN,
newRouteBean, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteBean(RouteBean newRouteBean) {
+ ((FeatureMap.Internal)getMixed()).set(EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN,
newRouteBean);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN:
+ return basicSetRouteBean(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN:
+ return getRouteBean();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN:
+ setRouteBean((RouteBean)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN:
+ setRouteBean((RouteBean)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN:
+ return getRouteBean() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: ");
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ESBRoutingDocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/ESBRoutingDocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingFactoryImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,110 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.impl;
+
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.jboss.tools.smooks.model.esbrouting.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EsbroutingFactoryImpl extends EFactoryImpl implements EsbroutingFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static EsbroutingFactory init() {
+ try {
+ EsbroutingFactory theEsbroutingFactory =
(
EsbroutingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www...);
+ if (theEsbroutingFactory != null) {
+ return theEsbroutingFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new EsbroutingFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT: return
createESBRoutingDocumentRoot();
+ case EsbroutingPackage.ROUTE_BEAN: return createRouteBean();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ESBRoutingDocumentRoot createESBRoutingDocumentRoot() {
+ ESBRoutingDocumentRootImpl esbRoutingDocumentRoot = new ESBRoutingDocumentRootImpl();
+ return esbRoutingDocumentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RouteBean createRouteBean() {
+ RouteBeanImpl routeBean = new RouteBeanImpl();
+ return routeBean;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingPackage getEsbroutingPackage() {
+ return (EsbroutingPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static EsbroutingPackage getPackage() {
+ return EsbroutingPackage.eINSTANCE;
+ }
+
+} //EsbroutingFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingPackageImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,446 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+import org.jboss.tools.smooks.model.common.CommonPackage;
+import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl;
+import org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingFactory;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EsbroutingPackageImpl extends EPackageImpl implements EsbroutingPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass esbRoutingDocumentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass routeBeanEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private EsbroutingPackageImpl() {
+ super(eNS_URI, EsbroutingFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this
+ * model, and for any others upon which it depends. Simple
+ * dependencies are satisfied by calling this method on all
+ * dependent packages before doing anything else. This method drives
+ * initialization for interdependent packages directly, in parallel
+ * with this package, itself.
+ * <p>Of this package and its interdependencies, all packages which
+ * have not yet been registered by their URI values are first created
+ * and registered. The packages are then initialized in two steps:
+ * meta-model objects for all of the packages are created before any
+ * are initialized, since one package's meta-model objects may refer to
+ * those of another.
+ * <p>Invocation of this method will not affect any packages that have
+ * already been initialized.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static EsbroutingPackage init() {
+ if (isInited) return
(EsbroutingPackage)EPackage.Registry.INSTANCE.getEPackage(EsbroutingPackage.eNS_URI);
+
+ // Obtain or create and register package
+ EsbroutingPackageImpl theEsbroutingPackage =
(EsbroutingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
EsbroutingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
EsbroutingPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Obtain or create and register interdependencies
+ SmooksPackageImpl theSmooksPackage =
(SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI)
instanceof SmooksPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE);
+ CommonPackageImpl theCommonPackage =
(CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI)
instanceof CommonPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theEsbroutingPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theEsbroutingPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theEsbroutingPackage.freeze();
+
+ return theEsbroutingPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getESBRoutingDocumentRoot() {
+ return esbRoutingDocumentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getESBRoutingDocumentRoot_Mixed() {
+ return (EAttribute)esbRoutingDocumentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getESBRoutingDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)esbRoutingDocumentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getESBRoutingDocumentRoot_XSISchemaLocation() {
+ return (EReference)esbRoutingDocumentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getESBRoutingDocumentRoot_RouteBean() {
+ return (EReference)esbRoutingDocumentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRouteBean() {
+ return routeBeanEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouteBean_BeanIdRef() {
+ return (EAttribute)routeBeanEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouteBean_MessagePayloadLocation() {
+ return (EAttribute)routeBeanEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouteBean_RouteBefore() {
+ return (EAttribute)routeBeanEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouteBean_RouteOnElement() {
+ return (EAttribute)routeBeanEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouteBean_RouteOnElementNS() {
+ return (EAttribute)routeBeanEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouteBean_ToServiceCategory() {
+ return (EAttribute)routeBeanEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouteBean_ToServiceName() {
+ return (EAttribute)routeBeanEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingFactory getEsbroutingFactory() {
+ return (EsbroutingFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ esbRoutingDocumentRootEClass = createEClass(ESB_ROUTING_DOCUMENT_ROOT);
+ createEAttribute(esbRoutingDocumentRootEClass, ESB_ROUTING_DOCUMENT_ROOT__MIXED);
+ createEReference(esbRoutingDocumentRootEClass,
ESB_ROUTING_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(esbRoutingDocumentRootEClass,
ESB_ROUTING_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(esbRoutingDocumentRootEClass, ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN);
+
+ routeBeanEClass = createEClass(ROUTE_BEAN);
+ createEAttribute(routeBeanEClass, ROUTE_BEAN__BEAN_ID_REF);
+ createEAttribute(routeBeanEClass, ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION);
+ createEAttribute(routeBeanEClass, ROUTE_BEAN__ROUTE_BEFORE);
+ createEAttribute(routeBeanEClass, ROUTE_BEAN__ROUTE_ON_ELEMENT);
+ createEAttribute(routeBeanEClass, ROUTE_BEAN__ROUTE_ON_ELEMENT_NS);
+ createEAttribute(routeBeanEClass, ROUTE_BEAN__TO_SERVICE_CATEGORY);
+ createEAttribute(routeBeanEClass, ROUTE_BEAN__TO_SERVICE_NAME);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ SmooksPackage theSmooksPackage =
(SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI);
+ XMLTypePackage theXMLTypePackage =
(XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ routeBeanEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(esbRoutingDocumentRootEClass, ESBRoutingDocumentRoot.class,
"ESBRoutingDocumentRoot", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getESBRoutingDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getESBRoutingDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getESBRoutingDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getESBRoutingDocumentRoot_RouteBean(), this.getRouteBean(), null,
"routeBean", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(routeBeanEClass, RouteBean.class, "RouteBean", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRouteBean_BeanIdRef(), theXMLTypePackage.getString(),
"beanIdRef", null, 1, 1, RouteBean.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouteBean_MessagePayloadLocation(), theXMLTypePackage.getString(),
"messagePayloadLocation", "", 0, 1, RouteBean.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouteBean_RouteBefore(), theXMLTypePackage.getBoolean(),
"routeBefore", "false", 0, 1, RouteBean.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouteBean_RouteOnElement(), theXMLTypePackage.getString(),
"routeOnElement", null, 1, 1, RouteBean.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouteBean_RouteOnElementNS(), theXMLTypePackage.getString(),
"routeOnElementNS", null, 0, 1, RouteBean.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouteBean_ToServiceCategory(), theXMLTypePackage.getString(),
"toServiceCategory", null, 1, 1, RouteBean.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouteBean_ToServiceName(), theXMLTypePackage.getString(),
"toServiceName", null, 1, 1, RouteBean.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for
<b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (esbRoutingDocumentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getESBRoutingDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getESBRoutingDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getESBRoutingDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getESBRoutingDocumentRoot_RouteBean(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "routeBean",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"
+ });
+ addAnnotation
+ (routeBeanEClass,
+ source,
+ new String[] {
+ "name", "routeBean",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getRouteBean_BeanIdRef(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "beanIdRef"
+ });
+ addAnnotation
+ (getRouteBean_MessagePayloadLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "messagePayloadLocation"
+ });
+ addAnnotation
+ (getRouteBean_RouteBefore(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeBefore"
+ });
+ addAnnotation
+ (getRouteBean_RouteOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElement"
+ });
+ addAnnotation
+ (getRouteBean_RouteOnElementNS(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElementNS"
+ });
+ addAnnotation
+ (getRouteBean_ToServiceCategory(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "toServiceCategory"
+ });
+ addAnnotation
+ (getRouteBean_ToServiceName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "toServiceName"
+ });
+ }
+
+} //EsbroutingPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/EsbroutingPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/RouteBeanImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/RouteBeanImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/RouteBeanImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,557 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.impl;
+
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Route
Bean</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl#getBeanIdRef <em>Bean Id
Ref</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl#getMessagePayloadLocation
<em>Message Payload Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl#isRouteBefore <em>Route
Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl#getRouteOnElement
<em>Route On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl#getRouteOnElementNS
<em>Route On Element NS</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl#getToServiceCategory
<em>To Service Category</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl#getToServiceName <em>To
Service Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RouteBeanImpl extends ElementVisitorImpl implements RouteBean {
+ /**
+ * The default value of the '{@link #getBeanIdRef() <em>Bean Id
Ref</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBeanIdRef()
+ * @generated
+ * @ordered
+ */
+ protected static final String BEAN_ID_REF_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBeanIdRef() <em>Bean Id
Ref</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBeanIdRef()
+ * @generated
+ * @ordered
+ */
+ protected String beanIdRef = BEAN_ID_REF_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getMessagePayloadLocation() <em>Message
Payload Location</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessagePayloadLocation()
+ * @generated
+ * @ordered
+ */
+ protected static final String MESSAGE_PAYLOAD_LOCATION_EDEFAULT = "";
+
+ /**
+ * The cached value of the '{@link #getMessagePayloadLocation() <em>Message
Payload Location</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessagePayloadLocation()
+ * @generated
+ * @ordered
+ */
+ protected String messagePayloadLocation = MESSAGE_PAYLOAD_LOCATION_EDEFAULT;
+
+ /**
+ * This is true if the Message Payload Location attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean messagePayloadLocationESet;
+
+ /**
+ * The default value of the '{@link #isRouteBefore() <em>Route
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isRouteBefore()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean ROUTE_BEFORE_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isRouteBefore() <em>Route
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isRouteBefore()
+ * @generated
+ * @ordered
+ */
+ protected boolean routeBefore = ROUTE_BEFORE_EDEFAULT;
+
+ /**
+ * This is true if the Route Before attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean routeBeforeESet;
+
+ /**
+ * The default value of the '{@link #getRouteOnElement() <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROUTE_ON_ELEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouteOnElement() <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected String routeOnElement = ROUTE_ON_ELEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRouteOnElementNS() <em>Route On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROUTE_ON_ELEMENT_NS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouteOnElementNS() <em>Route On Element
NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected String routeOnElementNS = ROUTE_ON_ELEMENT_NS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getToServiceCategory() <em>To Service
Category</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getToServiceCategory()
+ * @generated
+ * @ordered
+ */
+ protected static final String TO_SERVICE_CATEGORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getToServiceCategory() <em>To Service
Category</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getToServiceCategory()
+ * @generated
+ * @ordered
+ */
+ protected String toServiceCategory = TO_SERVICE_CATEGORY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getToServiceName() <em>To Service
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getToServiceName()
+ * @generated
+ * @ordered
+ */
+ protected static final String TO_SERVICE_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getToServiceName() <em>To Service
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getToServiceName()
+ * @generated
+ * @ordered
+ */
+ protected String toServiceName = TO_SERVICE_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RouteBeanImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EsbroutingPackage.Literals.ROUTE_BEAN;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBeanIdRef() {
+ return beanIdRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBeanIdRef(String newBeanIdRef) {
+ String oldBeanIdRef = beanIdRef;
+ beanIdRef = newBeanIdRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EsbroutingPackage.ROUTE_BEAN__BEAN_ID_REF, oldBeanIdRef, beanIdRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getMessagePayloadLocation() {
+ return messagePayloadLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMessagePayloadLocation(String newMessagePayloadLocation) {
+ String oldMessagePayloadLocation = messagePayloadLocation;
+ messagePayloadLocation = newMessagePayloadLocation;
+ boolean oldMessagePayloadLocationESet = messagePayloadLocationESet;
+ messagePayloadLocationESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EsbroutingPackage.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION, oldMessagePayloadLocation,
messagePayloadLocation, !oldMessagePayloadLocationESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetMessagePayloadLocation() {
+ String oldMessagePayloadLocation = messagePayloadLocation;
+ boolean oldMessagePayloadLocationESet = messagePayloadLocationESet;
+ messagePayloadLocation = MESSAGE_PAYLOAD_LOCATION_EDEFAULT;
+ messagePayloadLocationESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
EsbroutingPackage.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION, oldMessagePayloadLocation,
MESSAGE_PAYLOAD_LOCATION_EDEFAULT, oldMessagePayloadLocationESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetMessagePayloadLocation() {
+ return messagePayloadLocationESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isRouteBefore() {
+ return routeBefore;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteBefore(boolean newRouteBefore) {
+ boolean oldRouteBefore = routeBefore;
+ routeBefore = newRouteBefore;
+ boolean oldRouteBeforeESet = routeBeforeESet;
+ routeBeforeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EsbroutingPackage.ROUTE_BEAN__ROUTE_BEFORE, oldRouteBefore, routeBefore,
!oldRouteBeforeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetRouteBefore() {
+ boolean oldRouteBefore = routeBefore;
+ boolean oldRouteBeforeESet = routeBeforeESet;
+ routeBefore = ROUTE_BEFORE_EDEFAULT;
+ routeBeforeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
EsbroutingPackage.ROUTE_BEAN__ROUTE_BEFORE, oldRouteBefore, ROUTE_BEFORE_EDEFAULT,
oldRouteBeforeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetRouteBefore() {
+ return routeBeforeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRouteOnElement() {
+ return routeOnElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteOnElement(String newRouteOnElement) {
+ String oldRouteOnElement = routeOnElement;
+ routeOnElement = newRouteOnElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT, oldRouteOnElement, routeOnElement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRouteOnElementNS() {
+ return routeOnElementNS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteOnElementNS(String newRouteOnElementNS) {
+ String oldRouteOnElementNS = routeOnElementNS;
+ routeOnElementNS = newRouteOnElementNS;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS, oldRouteOnElementNS,
routeOnElementNS));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getToServiceCategory() {
+ return toServiceCategory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setToServiceCategory(String newToServiceCategory) {
+ String oldToServiceCategory = toServiceCategory;
+ toServiceCategory = newToServiceCategory;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_CATEGORY, oldToServiceCategory,
toServiceCategory));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getToServiceName() {
+ return toServiceName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setToServiceName(String newToServiceName) {
+ String oldToServiceName = toServiceName;
+ toServiceName = newToServiceName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_NAME, oldToServiceName, toServiceName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EsbroutingPackage.ROUTE_BEAN__BEAN_ID_REF:
+ return getBeanIdRef();
+ case EsbroutingPackage.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION:
+ return getMessagePayloadLocation();
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_BEFORE:
+ return isRouteBefore() ? Boolean.TRUE : Boolean.FALSE;
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT:
+ return getRouteOnElement();
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS:
+ return getRouteOnElementNS();
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_CATEGORY:
+ return getToServiceCategory();
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_NAME:
+ return getToServiceName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EsbroutingPackage.ROUTE_BEAN__BEAN_ID_REF:
+ setBeanIdRef((String)newValue);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION:
+ setMessagePayloadLocation((String)newValue);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_BEFORE:
+ setRouteBefore(((Boolean)newValue).booleanValue());
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT:
+ setRouteOnElement((String)newValue);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS:
+ setRouteOnElementNS((String)newValue);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_CATEGORY:
+ setToServiceCategory((String)newValue);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_NAME:
+ setToServiceName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EsbroutingPackage.ROUTE_BEAN__BEAN_ID_REF:
+ setBeanIdRef(BEAN_ID_REF_EDEFAULT);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION:
+ unsetMessagePayloadLocation();
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_BEFORE:
+ unsetRouteBefore();
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT:
+ setRouteOnElement(ROUTE_ON_ELEMENT_EDEFAULT);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS:
+ setRouteOnElementNS(ROUTE_ON_ELEMENT_NS_EDEFAULT);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_CATEGORY:
+ setToServiceCategory(TO_SERVICE_CATEGORY_EDEFAULT);
+ return;
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_NAME:
+ setToServiceName(TO_SERVICE_NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EsbroutingPackage.ROUTE_BEAN__BEAN_ID_REF:
+ return BEAN_ID_REF_EDEFAULT == null ? beanIdRef != null :
!BEAN_ID_REF_EDEFAULT.equals(beanIdRef);
+ case EsbroutingPackage.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION:
+ return isSetMessagePayloadLocation();
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_BEFORE:
+ return isSetRouteBefore();
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT:
+ return ROUTE_ON_ELEMENT_EDEFAULT == null ? routeOnElement != null :
!ROUTE_ON_ELEMENT_EDEFAULT.equals(routeOnElement);
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS:
+ return ROUTE_ON_ELEMENT_NS_EDEFAULT == null ? routeOnElementNS != null :
!ROUTE_ON_ELEMENT_NS_EDEFAULT.equals(routeOnElementNS);
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_CATEGORY:
+ return TO_SERVICE_CATEGORY_EDEFAULT == null ? toServiceCategory != null :
!TO_SERVICE_CATEGORY_EDEFAULT.equals(toServiceCategory);
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_NAME:
+ return TO_SERVICE_NAME_EDEFAULT == null ? toServiceName != null :
!TO_SERVICE_NAME_EDEFAULT.equals(toServiceName);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (beanIdRef: ");
+ result.append(beanIdRef);
+ result.append(", messagePayloadLocation: ");
+ if (messagePayloadLocationESet) result.append(messagePayloadLocation); else
result.append("<unset>");
+ result.append(", routeBefore: ");
+ if (routeBeforeESet) result.append(routeBefore); else
result.append("<unset>");
+ result.append(", routeOnElement: ");
+ result.append(routeOnElement);
+ result.append(", routeOnElementNS: ");
+ result.append(routeOnElementNS);
+ result.append(", toServiceCategory: ");
+ result.append(toServiceCategory);
+ result.append(", toServiceName: ");
+ result.append(toServiceName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //RouteBeanImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/impl/RouteBeanImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/ESBRoutingDocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/ESBRoutingDocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/ESBRoutingDocumentRootItemProvider.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.provider;
+
+
+
+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.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingFactory;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ESBRoutingDocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ESBRoutingDocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use
for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns ESBRoutingDocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/ESBRoutingDocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_ESBRoutingDocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(ESBRoutingDocumentRoot.class)) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN,
+ EsbroutingFactory.eINSTANCE.createRouteBean()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Esbrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/ESBRoutingDocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/Esbrouting1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/Esbrouting1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/Esbrouting1EditPlugin.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the Esbrouting-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Esbrouting1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Esbrouting1EditPlugin INSTANCE = new Esbrouting1EditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Esbrouting1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/Esbrouting1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/EsbroutingItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/EsbroutingItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/EsbroutingItemProviderAdapterFactory.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,226 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.provider;
+
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.jboss.tools.smooks.model.esbrouting.util.EsbroutingAdapterFactory;
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to
{@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EsbroutingItemProviderAdapterFactory extends EsbroutingAdapterFactory
implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType
isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ESBRoutingDocumentRootItemProvider esbRoutingDocumentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createESBRoutingDocumentRootAdapter() {
+ if (esbRoutingDocumentRootItemProvider == null) {
+ esbRoutingDocumentRootItemProvider = new ESBRoutingDocumentRootItemProvider(this);
+ }
+
+ return esbRoutingDocumentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.esbrouting.RouteBean} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RouteBeanItemProvider routeBeanItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.esbrouting.RouteBean}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createRouteBeanAdapter() {
+ if (routeBeanItemProvider == null) {
+ routeBeanItemProvider = new RouteBeanItemProvider(this);
+ }
+
+ return routeBeanItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (esbRoutingDocumentRootItemProvider != null)
esbRoutingDocumentRootItemProvider.dispose();
+ if (routeBeanItemProvider != null) routeBeanItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/EsbroutingItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/RouteBeanItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/RouteBeanItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/RouteBeanItemProvider.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,303 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.provider;
+
+
+
+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.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.esbrouting.RouteBean} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class RouteBeanItemProvider
+ extends ElementVisitorItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RouteBeanItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addBeanIdRefPropertyDescriptor(object);
+ addMessagePayloadLocationPropertyDescriptor(object);
+ addRouteBeforePropertyDescriptor(object);
+ addRouteOnElementPropertyDescriptor(object);
+ addRouteOnElementNSPropertyDescriptor(object);
+ addToServiceCategoryPropertyDescriptor(object);
+ addToServiceNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Bean Id Ref feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addBeanIdRefPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RouteBean_beanIdRef_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_RouteBean_beanIdRef_feature", "_UI_RouteBean_type"),
+ EsbroutingPackage.Literals.ROUTE_BEAN__BEAN_ID_REF,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Message Payload Location feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addMessagePayloadLocationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RouteBean_messagePayloadLocation_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_RouteBean_messagePayloadLocation_feature",
"_UI_RouteBean_type"),
+ EsbroutingPackage.Literals.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Route Before feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRouteBeforePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RouteBean_routeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_RouteBean_routeBefore_feature", "_UI_RouteBean_type"),
+ EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_BEFORE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Route On Element feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRouteOnElementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RouteBean_routeOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_RouteBean_routeOnElement_feature", "_UI_RouteBean_type"),
+ EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_ON_ELEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Route On Element NS feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRouteOnElementNSPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RouteBean_routeOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_RouteBean_routeOnElementNS_feature", "_UI_RouteBean_type"),
+ EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the To Service Category feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addToServiceCategoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RouteBean_toServiceCategory_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_RouteBean_toServiceCategory_feature", "_UI_RouteBean_type"),
+ EsbroutingPackage.Literals.ROUTE_BEAN__TO_SERVICE_CATEGORY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the To Service Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addToServiceNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RouteBean_toServiceName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_RouteBean_toServiceName_feature", "_UI_RouteBean_type"),
+ EsbroutingPackage.Literals.ROUTE_BEAN__TO_SERVICE_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns RouteBean.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/RouteBean"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((RouteBean)object).getToServiceName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_RouteBean_type") :
+ getString("_UI_RouteBean_type") + " " + label;
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(RouteBean.class)) {
+ case EsbroutingPackage.ROUTE_BEAN__BEAN_ID_REF:
+ case EsbroutingPackage.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION:
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_BEFORE:
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT:
+ case EsbroutingPackage.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS:
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_CATEGORY:
+ case EsbroutingPackage.ROUTE_BEAN__TO_SERVICE_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Esbrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/provider/RouteBeanItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingAdapterFactory.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,217 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the
model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage
+ * @generated
+ */
+public class EsbroutingAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static EsbroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = EsbroutingPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the
model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EsbroutingSwitch<Adapter> modelSwitch =
+ new EsbroutingSwitch<Adapter>() {
+ @Override
+ public Adapter caseESBRoutingDocumentRoot(ESBRoutingDocumentRoot object) {
+ return createESBRoutingDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseRouteBean(RouteBean object) {
+ return createRouteBeanAdapter();
+ }
+ @Override
+ public Adapter caseAnyType(AnyType object) {
+ return createAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractAnyType(AbstractAnyType object) {
+ return createAbstractAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return createAbstractResourceConfigAdapter();
+ }
+ @Override
+ public Adapter caseElementVisitor(ElementVisitor object) {
+ return createElementVisitorAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot <em>ESB Routing
Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot
+ * @generated
+ */
+ public Adapter createESBRoutingDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.esbrouting.RouteBean <em>Route Bean</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.esbrouting.RouteBean
+ * @generated
+ */
+ public Adapter createRouteBeanAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.emf.ecore.xml.type.AnyType
+ * @generated
+ */
+ public Adapter createAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link common.AbstractAnyType
<em>Abstract Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see common.AbstractAnyType
+ * @generated
+ */
+ public Adapter createAbstractAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractResourceConfig
+ * @generated
+ */
+ public Adapter createAbstractResourceConfigAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link smooks.ElementVisitor
<em>Element Visitor</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.ElementVisitor
+ * @generated
+ */
+ public Adapter createElementVisitorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //EsbroutingAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceFactoryImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.util.EsbroutingResourceImpl
+ * @generated
+ */
+public class EsbroutingResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new EsbroutingResourceImpl(uri);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
+
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
+
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER,
Boolean.TRUE);
+ return result;
+ }
+
+} //EsbroutingResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.util.EsbroutingResourceFactoryImpl
+ * @generated
+ */
+public class EsbroutingResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public EsbroutingResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //EsbroutingResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingSwitch.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,220 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.esbrouting.ESBRoutingDocumentRoot;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage
+ * @generated
+ */
+public class EsbroutingSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static EsbroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingSwitch() {
+ if (modelPackage == null) {
+ modelPackage = EsbroutingPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return
+ eSuperTypes.isEmpty() ?
+ defaultCase(theEObject) :
+ doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case EsbroutingPackage.ESB_ROUTING_DOCUMENT_ROOT: {
+ ESBRoutingDocumentRoot esbRoutingDocumentRoot = (ESBRoutingDocumentRoot)theEObject;
+ T result = caseESBRoutingDocumentRoot(esbRoutingDocumentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case EsbroutingPackage.ROUTE_BEAN: {
+ RouteBean routeBean = (RouteBean)theEObject;
+ T result = caseRouteBean(routeBean);
+ if (result == null) result = caseElementVisitor(routeBean);
+ if (result == null) result = caseAbstractResourceConfig(routeBean);
+ if (result == null) result = caseAbstractAnyType(routeBean);
+ if (result == null) result = caseAnyType(routeBean);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ESB
Routing Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>ESB
Routing Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseESBRoutingDocumentRoot(ESBRoutingDocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Route
Bean</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Route
Bean</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRouteBean(RouteBean object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnyType(AnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractAnyType(AbstractAnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Element Visitor</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Element Visitor</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseElementVisitor(ElementVisitor object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case
anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //EsbroutingSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingXMLProcessor.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.esbrouting.util;
+
+
+import java.util.Map;
+
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EsbroutingXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EsbroutingXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ EsbroutingPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
EsbroutingResourceFactoryImpl factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected Map<String, Resource.Factory> getRegistrations() {
+ if (registrations == null) {
+ super.getRegistrations();
+ registrations.put(XML_EXTENSION, new EsbroutingResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new EsbroutingResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //EsbroutingXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/esbrouting/util/EsbroutingXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/impl/FreemarkerImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/impl/FreemarkerImpl.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/impl/FreemarkerImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -22,6 +22,7 @@
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.jboss.tools.smooks.model.freemarker.Freemarker;
+import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.freemarker.Template;
import org.jboss.tools.smooks.model.freemarker.Use;
@@ -155,6 +156,7 @@
*/
protected FreemarkerImpl() {
super();
+ setTemplate(FreemarkerFactory.eINSTANCE.createTemplate());
}
/**
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -34,6 +34,8 @@
import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
import org.jboss.tools.smooks.model.edi.EdiFactory;
import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingFactory;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory;
@@ -324,7 +326,12 @@
// for File routing
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
.createEntry(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
FileRoutingFactory.eINSTANCE.createOutputStream())));
+
+ // for ESB routing
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN,
EsbroutingFactory.eINSTANCE.createRouteBean())));
+
/***********************************************/
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/impl/XslImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/impl/XslImpl.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/impl/XslImpl.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -25,6 +25,7 @@
import org.jboss.tools.smooks.model.xsl.Template;
import org.jboss.tools.smooks.model.xsl.Use;
import org.jboss.tools.smooks.model.xsl.Xsl;
+import org.jboss.tools.smooks.model.xsl.XslFactory;
import org.jboss.tools.smooks.model.xsl.XslPackage;
@@ -155,6 +156,7 @@
*/
protected XslImpl() {
super();
+ setTemplate(XslFactory.eINSTANCE.createTemplate());
}
/**
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/routing-1.0.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/routing-1.0.xsd
(rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/routing-1.0.xsd 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
targetNamespace="http://www.jboss.org/xsd/jbossesb/smooks/routing-1....
+ elementFormDefault="qualified"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+
xmlns:routing="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0....
+
+ <xs:import
namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">JBoss ESB Smooks Routing
Components</xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="routeBean" type="routing:routeBean"
substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">JBoss ESB Async
Router.</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="routeBean">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">JBoss ESB Async
Router.</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:attribute name="beanIdRef" type="xs:string"
use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Bean ID reference
of the bean to be routed to the target Service.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="toServiceCategory"
type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Target Service
Category.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="toServiceName"
type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Target Service
Name.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="routeOnElement"
type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Route on
Element.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="routeOnElementNS"
type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Route on Element
Namespace.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="messagePayloadLocation"
type="xs:string" default="">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">ESB Message.Body
location on which the routed bean will be set.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="routeBefore" type="xs:boolean"
default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Route on
visitBefore of the routeOnElement.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/routing-1.0.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-05-25
07:57:24 UTC (rev 15480)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-05-25
08:02:20 UTC (rev 15481)
@@ -19,7 +19,8 @@
org.eclipse.emf.edit.ui,
org.eclipse.jdt.core,
org.eclipse.jdt.ui,
- org.eclipse.wst.validation
+ org.eclipse.wst.validation,
+ org.eclipse.pde.ui
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IPropertyUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IPropertyUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/IPropertyUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -28,8 +28,11 @@
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor);
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor);
public boolean ignoreProperty(EAttribute feature);
+
+ public List<AttributeFieldEditPart>
createExtendUIOnTop(AdapterFactoryEditingDomain editingDomain,
+ FormToolkit formToolkit, Composite detailsComposite, Object model,
SmooksMultiFormEditor formEditor);
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -26,6 +26,8 @@
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.FillLayout;
@@ -37,13 +39,12 @@
import org.eclipse.ui.forms.events.IHyperlinkListener;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
+import org.jboss.tools.smooks.configuration.editors.uitls.FieldAssistDisposer;
import org.jboss.tools.smooks.configuration.editors.uitls.FieldMarkerWrapper;
import org.jboss.tools.smooks.configuration.editors.uitls.IFieldDialog;
import org.jboss.tools.smooks.configuration.editors.uitls.IModelProcsser;
import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
-import org.jboss.tools.smooks.model.javabean.BindingsType;
-import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
@@ -130,7 +131,7 @@
return SmooksUIUtils.getJavaProject(model);
}
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return Collections.emptyList();
}
@@ -239,7 +240,7 @@
if (editValue != null) {
combo.setText(editValue.toString());
}
- List<String> list = getBeanIdList(smooksResourceList);
+ List<String> list = SmooksUIUtils.getBeanIdList(smooksResourceList);
for (Iterator<String> iterator = list.iterator(); iterator.hasNext();) {
String beanId = (String) iterator.next();
combo.add(beanId);
@@ -263,6 +264,20 @@
ip.setPropertyValue(cmodel, combo.getText());
}
});
+
+ final FieldAssistDisposer disposer = SmooksUIUtils.addBeanIdRefAssistToCombo(combo,
(EObject)model);
+
+ combo.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 editPart;
}
}
@@ -280,24 +295,23 @@
return null;
}
- protected List<String> getBeanIdList(SmooksResourceListType resourceList) {
- List<AbstractResourceConfig> rlist = resourceList.getAbstractResourceConfig();
- List<String> beanIdList = new ArrayList<String>();
- for (Iterator<?> iterator = rlist.iterator(); iterator.hasNext();) {
- AbstractResourceConfig abstractResourceConfig = (AbstractResourceConfig)
iterator.next();
- if (abstractResourceConfig instanceof BindingsType) {
- String beanId = ((BindingsType) abstractResourceConfig).getBeanId();
- if (beanId == null)
- continue;
- beanIdList.add(beanId);
- }
- }
- return beanIdList;
- }
public boolean ignoreProperty(EAttribute feature) {
return false;
}
+
+ public IItemPropertyDescriptor getPropertyDescriptor(AdapterFactoryEditingDomain
editingDomain,EAttribute attribute , Object model){
+ IItemPropertySource itemPropertySource = (IItemPropertySource)
editingDomain.getAdapterFactory().adapt(model,
+ IItemPropertySource.class);
+ List<IItemPropertyDescriptor> list =
itemPropertySource.getPropertyDescriptors(model);
+ for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ IItemPropertyDescriptor itemPropertyDescriptor = (IItemPropertyDescriptor)
iterator.next();
+ if(itemPropertyDescriptor.getFeature(model) == attribute){
+ return itemPropertyDescriptor;
+ }
+ }
+ return null;
+ }
protected List<AttributeFieldEditPart> createElementSelectionSection(String
sectionTitle,
AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit, Composite parent,
Object model,
@@ -372,4 +386,9 @@
return list;
}
+
+ public List<AttributeFieldEditPart>
createExtendUIOnTop(AdapterFactoryEditingDomain editingDomain,
+ FormToolkit formToolkit, Composite detailsComposite, Object model,
SmooksMultiFormEditor formEditor) {
+ return null;
+ }
}
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-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -30,6 +30,7 @@
import org.jboss.tools.smooks.configuration.editors.edi.SegmentsUICreator;
import org.jboss.tools.smooks.configuration.editors.edi.SubComponentUICreator;
import org.jboss.tools.smooks.configuration.editors.edireader.EDIReaderUICreator;
+import
org.jboss.tools.smooks.configuration.editors.esbrouter.RouteBeanPropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.filerouting.HighWaterMarkUICreator;
import org.jboss.tools.smooks.configuration.editors.filerouting.OutputStreamUICreator;
import org.jboss.tools.smooks.configuration.editors.freemarker.FreemarkerUICreator;
@@ -78,6 +79,7 @@
import org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl;
import org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl;
import org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl;
+import org.jboss.tools.smooks.model.esbrouting.impl.RouteBeanImpl;
import org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl;
import org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl;
import org.jboss.tools.smooks.model.freemarker.impl.FreemarkerImpl;
@@ -242,6 +244,8 @@
map.put(DirectImpl.class, new DirectUICreator());
map.put(DataSourceJndiImpl.class, new DataSourceJndiUICreator());
+ // for ESB router
+ map.put(RouteBeanImpl.class, new RouteBeanPropertyUICreator());
/*
* up is for smooks1.1
*/
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectoreSelectionDialog.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectoreSelectionDialog.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectoreSelectionDialog.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -234,14 +234,14 @@
}
});
}
-
- protected List<Object> generateInputData() {
+
+ public static List<Object> generateInputData(SmooksGraphicsExtType extType){
List<Object> list = new ArrayList<Object>();
- if (this.graphicsExt != null) {
- IJavaProject project = SmooksUIUtils.getJavaProject(graphicsExt);
+ if (extType != null) {
+ IJavaProject project = SmooksUIUtils.getJavaProject(extType);
try {
ProjectClassLoader classLoader = new ProjectClassLoader(project);
- List<InputType> inputLists = graphicsExt.getInput();
+ List<InputType> inputLists = extType.getInput();
for (Iterator<?> iterator = inputLists.iterator(); iterator.hasNext();) {
InputType inputType = (InputType) iterator.next();
String type = inputType.getType();
@@ -288,6 +288,10 @@
return list;
}
+ protected List<Object> generateInputData() {
+ return generateInputData(graphicsExt);
+ }
+
protected void showInputDataWizard() {
StructuredDataSelectionWizard wizard = new StructuredDataSelectionWizard();
if (this.editorPart != null) {
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -61,6 +61,7 @@
import org.jboss.tools.smooks.model.datasource.Direct;
import org.jboss.tools.smooks.model.dbrouting.Executor;
import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
import org.jboss.tools.smooks.model.fileRouting.OutputStream;
import org.jboss.tools.smooks.model.freemarker.Freemarker;
import org.jboss.tools.smooks.model.groovy.Groovy;
@@ -844,6 +845,9 @@
if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof Executor) {
return true;
}
+ if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof RouteBean) {
+ return true;
+ }
}
}
return false;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -72,6 +72,7 @@
import
org.jboss.tools.smooks.model.datasource.provider.DatasourceItemProviderAdapterFactory;
import
org.jboss.tools.smooks.model.dbrouting.provider.DbroutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.edi.provider.EdiItemProviderAdapterFactory;
+import
org.jboss.tools.smooks.model.esbrouting.provider.EsbroutingItemProviderAdapterFactory;
import
org.jboss.tools.smooks.model.fileRouting.provider.FileRoutingItemProviderAdapterFactory;
import
org.jboss.tools.smooks.model.freemarker.provider.FreemarkerItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
@@ -226,6 +227,7 @@
adapterFactory.addAdapterFactory(new GroovyItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new FileRoutingItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new EsbroutingItemProviderAdapterFactory());
BasicCommandStack commandStack = new BasicCommandStack();
handleCommandStack(commandStack);
editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new
HashMap<Resource, Boolean>());
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -118,6 +118,20 @@
detailsComposite.setLayout(layout);
IPropertyUICreator creator =
PropertyUICreatorManager.getInstance().getPropertyUICreator(getModel());
List<IItemPropertyDescriptor> propertyDes =
itemPropertySource.getPropertyDescriptors(getModel());
+ if (creator != null) {
+ List<AttributeFieldEditPart> list =
creator.createExtendUIOnTop((AdapterFactoryEditingDomain) formEditor
+ .getEditingDomain(), formToolkit, detailsComposite, getModel(), getFormEditor());
+ if (list != null) {
+ for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ AttributeFieldEditPart attributeFieldEditPart = (AttributeFieldEditPart)
iterator.next();
+ Object attribute = attributeFieldEditPart.getAttribute();
+ if (attribute != null) {
+ currentPropertyUIMap.put(attribute, attributeFieldEditPart);
+ }
+ }
+ }
+ }
+
for (int i = 0; i < propertyDes.size(); i++) {
IItemPropertyDescriptor pd = propertyDes.get(i);
EAttribute attribute = (EAttribute) pd.getFeature(getModel());
@@ -139,13 +153,13 @@
}
}
if (creator != null) {
- List<AttributeFieldEditPart> list =
creator.createExtendUI((AdapterFactoryEditingDomain) formEditor.getEditingDomain(),
formToolkit,
- detailsComposite, getModel(), getFormEditor());
- if(list != null){
+ List<AttributeFieldEditPart> list =
creator.createExtendUIOnBottom((AdapterFactoryEditingDomain) formEditor
+ .getEditingDomain(), formToolkit, detailsComposite, getModel(), getFormEditor());
+ if (list != null) {
for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
AttributeFieldEditPart attributeFieldEditPart = (AttributeFieldEditPart)
iterator.next();
Object attribute = attributeFieldEditPart.getAttribute();
- if(attribute != null){
+ if (attribute != null) {
currentPropertyUIMap.put(attribute, attributeFieldEditPart);
}
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/calc/CounterUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/calc/CounterUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/calc/CounterUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -77,7 +77,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Count On Element", editingdomain,
toolkit, parent, model, formEditor,
CalcPackage.Literals.COUNTER__COUNT_ON_ELEMENT,
CalcPackage.Literals.COUNTER__COUNT_ON_ELEMENT_NS);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/datasource/DirectUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/datasource/DirectUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/datasource/DirectUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -10,20 +10,45 @@
******************************************************************************/
package org.jboss.tools.smooks.configuration.editors.datasource;
+import java.lang.reflect.InvocationTargetException;
+import java.sql.Driver;
+import java.sql.SQLException;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
+import java.util.Properties;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.IProgressMonitor;
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.emf.edit.provider.IItemPropertySource;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.dialogs.ProgressMonitorDialog;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+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.SmooksConfigurationActivator;
import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
+import org.jboss.tools.smooks.configuration.editors.GraphicsConstants;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.configuration.editors.uitls.ProjectClassLoader;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.model.datasource.DatasourcePackage;
+import org.jboss.tools.smooks.model.datasource.Direct;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -86,7 +111,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
IItemPropertySource itemPropertySource = (IItemPropertySource)
editingdomain.getAdapterFactory().adapt(model,
IItemPropertySource.class);
@@ -102,11 +127,134 @@
createOnElementFeatureNS = itemPropertyDescriptor;
}
}
- if(createOnElementFeature == null || createOnElementFeatureNS == null){
+ if (createOnElementFeature == null || createOnElementFeatureNS == null) {
return Collections.emptyList();
}
- return this.createElementSelectionSection("Binding On Element",
editingdomain, toolkit, parent, model, formEditor,
- createOnElementFeature, createOnElementFeatureNS);
+ List<AttributeFieldEditPart> editPartList =
this.createElementSelectionSection("Binding On Element",
+ editingdomain, toolkit, parent, model, formEditor, createOnElementFeature,
createOnElementFeatureNS);
+
+ Composite spaceComposite = toolkit.createComposite(parent);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ gd.heightHint = 20;
+ spaceComposite.setLayoutData(gd);
+
+ Composite linkComposite = toolkit.createComposite(parent);
+ gd.horizontalSpan = 2;
+ linkComposite.setLayoutData(gd);
+ GridLayout gl = new GridLayout();
+ gl.numColumns = 2;
+ gl.marginHeight = 0;
+ gl.marginWidth = 0;
+ gl.horizontalSpacing = 2;
+ linkComposite.setLayout(gl);
+
+ gd = new GridData();
+ gd.verticalAlignment = GridData.CENTER;
+ Label imageLabel = toolkit.createLabel(linkComposite, "");
+ imageLabel.setLayoutData(gd);
+ imageLabel.setImage(SmooksConfigurationActivator.getDefault().getImageRegistry().get(
+ GraphicsConstants.IMAGE_JAVA_ARRAY));
+
+ gd = new GridData();
+ gd.verticalAlignment = GridData.CENTER;
+ gd.horizontalAlignment = GridData.BEGINNING;
+ Hyperlink testConnectLink = toolkit.createHyperlink(linkComposite, "DB Connection
Test", SWT.NONE);
+ testConnectLink.setLayoutData(gd);
+ final Object fm = model;
+ final Shell shell = parent.getShell();
+ testConnectLink.addHyperlinkListener(new IHyperlinkListener(){
+
+ /* (non-Javadoc)
+ * @see
org.eclipse.ui.forms.events.IHyperlinkListener#linkActivated(org.eclipse.ui.forms.events.HyperlinkEvent)
+ */
+ public void linkActivated(HyperlinkEvent e) {
+ if(fm instanceof Direct){
+
+ ProgressMonitorDialog dialog = new ProgressMonitorDialog(shell);
+ try {
+ dialog.run(true, true, new IRunnableWithProgress(){
+
+ /* (non-Javadoc)
+ * @see
org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public void run(IProgressMonitor monitor) throws InvocationTargetException,
+ InterruptedException {
+ monitor.beginTask("Test Connection", 2);
+ String driver = ((Direct)fm).getDriver();
+ String url = ((Direct)fm).getUrl();
+ String userName = ((Direct)fm).getUsername();
+ String password = ((Direct)fm).getPassword();
+ IResource resource = SmooksUIUtils.getResource((EObject)fm);
+ try {
+ if(monitor.isCanceled()){
+ throw new InterruptedException();
+ }
+ monitor.setTaskName("Load driver class and database connection
properties...");
+ ProjectClassLoader classLoader = new
ProjectClassLoader(JavaCore.create(resource.getProject()));
+ if(monitor.isCanceled()){
+ throw new InterruptedException();
+ }
+ Driver dri = (Driver) classLoader.loadClass(driver).newInstance();
+ monitor.worked(1);
+ if(monitor.isCanceled()){
+ throw new InterruptedException();
+ }
+ Properties pros = new Properties();
+ pros.setProperty("name", userName);
+ pros.setProperty("password", password);
+ if(monitor.isCanceled()){
+ throw new InterruptedException();
+ }
+ monitor.setTaskName("Try to connect database...");
+ dri.connect(url, pros);
+ monitor.worked(1);
+ } catch (JavaModelException e1) {
+ throw new InvocationTargetException(e1);
+ } catch (InstantiationException e1) {
+ throw new InvocationTargetException(e1);
+ } catch (IllegalAccessException e1) {
+ throw new InvocationTargetException(e1);
+ } catch (ClassNotFoundException e1) {
+ throw new InvocationTargetException(e1);
+ } catch (SQLException e1) {
+ throw new InvocationTargetException(e1);
+ }finally{
+ monitor.done();
+ }
+ }
+
+ });
+ } catch (InvocationTargetException e2) {
+ SmooksUIUtils.showErrorDialog(shell, SmooksUIUtils.createErrorStatus(e2));
+ return;
+ } catch (InterruptedException e2) {
+ MessageDialog.openConfirm(shell, "User Cancle", "Connection test was
cancled by users");
+ return;
+ }
+ MessageDialog.openConfirm(shell, "Test success", "Connection test
success");
+ }
+ }
+
+ /* (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
+
+ }
+
+ });
+ // testConnectLink.set
+ return editPartList;
}
@Override
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/esbrouter/RouteBeanPropertyUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/esbrouter/RouteBeanPropertyUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/esbrouter/RouteBeanPropertyUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,184 @@
+/*******************************************************************************
+ * 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.esbrouter;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.configuration.editors.uitls.IModelProcsser;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class RouteBeanPropertyUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.PropertyUICreator#
+ * createExtendUIOnTop
+ * (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 formToolkit, Composite detailsComposite, Object model,
SmooksMultiFormEditor formEditor) {
+ List<AttributeFieldEditPart> attributeEditPartList =
createElementSelectionSection("Route On Element",
+ editingDomain, formToolkit, detailsComposite, model, formEditor,
+ EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_ON_ELEMENT,
+ EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS);
+ return attributeEditPartList;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.smooks.configuration.editors.PropertyUICreator#ignoreProperty
+ * (org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ public boolean ignoreProperty(EAttribute feature) {
+ if (feature == EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_ON_ELEMENT) {
+ return true;
+ }
+ if (feature == EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_ON_ELEMENT_NS) {
+ return true;
+ }
+ if (feature == EsbroutingPackage.Literals.ROUTE_BEAN__TO_SERVICE_NAME) {
+ return true;
+ }
+ if (feature == EsbroutingPackage.Literals.ROUTE_BEAN__TO_SERVICE_CATEGORY) {
+ return true;
+ }
+ if (feature == EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_BEFORE) {
+ return true;
+ }
+ if (feature == EsbroutingPackage.Literals.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION) {
+ return true;
+ }
+ if (feature == SmooksPackage.Literals.ELEMENT_VISITOR__TARGET_PROFILE) {
+ return true;
+ }
+ return super.ignoreProperty(feature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.PropertyUICreator#
+ * isBeanIDRefFieldFeature(org.eclipse.emf.ecore.EAttribute)
+ */
+ @Override
+ protected boolean isBeanIDRefFieldFeature(EAttribute attribute) {
+ if (attribute == EsbroutingPackage.Literals.ROUTE_BEAN__BEAN_ID_REF) {
+ return true;
+ }
+ return super.isBeanIDRefFieldFeature(attribute);
+ }
+
+ /*
+ * (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, SmooksMultiFormEditor formEditor)
{
+ List<AttributeFieldEditPart> list = new
ArrayList<AttributeFieldEditPart>();
+ Section section = toolkit.createSection(parent, Section.TITLE_BAR);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ section.setText("Route To Serivce");
+ section.setLayoutData(gd);
+ FillLayout fl = new FillLayout();
+ fl.marginHeight = 0;
+ fl.marginWidth = 0;
+
+ section.setLayout(fl);
+ Composite composite = toolkit.createComposite(section);
+ section.setClient(composite);
+
+ GridLayout gl = new GridLayout();
+ gl.numColumns = 2;
+
+ composite.setLayout(gl);
+
+ AttributeFieldEditPart serviceCategoryEditPart =
SmooksUIUtils.createStringFieldEditor("Category", composite,
+ editingdomain, toolkit, getPropertyDescriptor(editingdomain,
+ EsbroutingPackage.Literals.ROUTE_BEAN__TO_SERVICE_CATEGORY, model), model, false,
false, false,
+ 0, null, SmooksUIUtils.VALUE_TYPE_VALUE, null);
+ list.add(serviceCategoryEditPart);
+
+ AttributeFieldEditPart serviceNameEditPart =
SmooksUIUtils.createStringFieldEditor("Name", composite,
+ editingdomain, toolkit, getPropertyDescriptor(editingdomain,
+ EsbroutingPackage.Literals.ROUTE_BEAN__TO_SERVICE_NAME, model), model, false,
false, false, 0,
+ null, SmooksUIUtils.VALUE_TYPE_VALUE, null);
+ list.add(serviceNameEditPart);
+
+ IModelProcsser processer = new IModelProcsser() {
+
+ public Object unwrapValue(Object model) {
+ if (model instanceof Boolean) {
+ if ((Boolean) model) {
+ return "TRUE";
+ } else {
+ return "FALSE";
+ }
+ }
+ return "FALSE";
+ }
+
+ public Object wrapValue(Object model) {
+ try {
+ return Boolean.parseBoolean(model.toString());
+ } catch (Throwable t) {
+ }
+ return Boolean.FALSE;
+ }
+
+ };
+ AttributeFieldEditPart routeBeforeEP = SmooksUIUtils.createChoiceFieldEditor(parent,
toolkit,
+ getPropertyDescriptor(editingdomain,
EsbroutingPackage.Literals.ROUTE_BEAN__ROUTE_BEFORE, model),
+ model, new String[] { "TRUE", "FALSE" }, processer, true);
+ list.add(routeBeforeEP);
+
+ list.add(SmooksUIUtils.createStringFieldEditor(parent, toolkit,
getPropertyDescriptor(editingdomain,
+ EsbroutingPackage.Literals.ROUTE_BEAN__MESSAGE_PAYLOAD_LOCATION, model), model,
false, false, null));
+ list.add(SmooksUIUtils.createStringFieldEditor(parent, toolkit,
getPropertyDescriptor(editingdomain,
+ SmooksPackage.Literals.ELEMENT_VISITOR__TARGET_PROFILE, model), model, false, false,
null));
+
+ return list;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/esbrouter/RouteBeanPropertyUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/FreemarkerUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/FreemarkerUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/FreemarkerUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -75,7 +75,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Apply On Element", editingdomain,
toolkit, parent, model, formEditor,
FreemarkerPackage.Literals.FREEMARKER__APPLY_ON_ELEMENT,
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/TemplateUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/TemplateUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/freemarker/TemplateUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -51,19 +51,20 @@
}
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit, Composite parent, Object model,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model,
SmooksMultiFormEditor formEditor) {
OpenEditorEditInnerContentsAction openCDATAEditorAction = new
OpenEditorEditInnerContentsAction(editingdomain,(AnyType) model,
SmooksUIUtils.VALUE_TYPE_CDATA, "flt");
- OpenEditorEditInnerContentsAction openCommentEditorAction = new
OpenEditorEditInnerContentsAction(editingdomain,(AnyType) model,
SmooksUIUtils.VALUE_TYPE_COMMENT, "flt");
+// OpenEditorEditInnerContentsAction openCommentEditorAction = new
OpenEditorEditInnerContentsAction(editingdomain,(AnyType) model,
SmooksUIUtils.VALUE_TYPE_COMMENT, "flt");
- SmooksUIUtils.createFileSelectionTextFieldEditor("Text Value", parent,
editingdomain, toolkit, null, model, SmooksUIUtils.VALUE_TYPE_TEXT,
- null, null);
- AttributeFieldEditPart cdatatext = SmooksUIUtils.createCDATAFieldEditor("Template
Contents(CDATA)", editingdomain, toolkit, parent, model, openCDATAEditorAction);
- AttributeFieldEditPart commenttext =
SmooksUIUtils.createCommentFieldEditor("Template Contents(Comment)",
editingdomain, toolkit, parent, model, openCommentEditorAction);
+ AttributeFieldEditPart cdatatext = SmooksUIUtils.createCDATAFieldEditor("Inline
Template", editingdomain, toolkit, parent, model, openCDATAEditorAction);
+// AttributeFieldEditPart commenttext =
SmooksUIUtils.createCommentFieldEditor("Template Contents(Comment)",
editingdomain, toolkit, parent, model, openCommentEditorAction);
openCDATAEditorAction.setRelateText((Text)cdatatext.getContentControl());
- openCommentEditorAction.setRelateText((Text)commenttext.getContentControl());
+// openCommentEditorAction.setRelateText((Text)commenttext.getContentControl());
+ SmooksUIUtils.createFileSelectionTextFieldEditor("External Template File",
parent, editingdomain, toolkit, null, model, SmooksUIUtils.VALUE_TYPE_TEXT,
+ null, null);
+
return Collections.emptyList();
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/GroovyUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/GroovyUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/GroovyUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -57,7 +57,7 @@
}
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Execute On Element", editingdomain,
toolkit, parent, model, formEditor,
GroovyPackage.eINSTANCE.getGroovy_ExecuteOnElement(), GroovyPackage.eINSTANCE
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/ScriptUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/ScriptUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/groovy/ScriptUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -45,7 +45,7 @@
}
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit, Composite parent, Object model,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model,
SmooksMultiFormEditor formEditor) {
OpenEditorEditInnerContentsAction action2 = new
OpenEditorEditInnerContentsAction(editingdomain,(AnyType) model,
SmooksUIUtils.VALUE_TYPE_COMMENT, "groovy");
AttributeFieldEditPart editPart = SmooksUIUtils.createCommentFieldEditor("Script
Contents", editingdomain, toolkit, parent, model, action2);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/BindingsPropertyUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/BindingsPropertyUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/BindingsPropertyUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -93,7 +93,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Create On Element", editingdomain,
toolkit, parent, model, formEditor,
JavabeanPackage.Literals.BINDINGS_TYPE__CREATE_ON_ELEMENT,
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-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanExpressionUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -44,7 +44,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
List<AttributeFieldEditPart> list = createElementSelectionSection("Execute
On Element", editingdomain, toolkit,
parent, model, formEditor,
JavabeanPackage.Literals.EXPRESSION_TYPE__EXEC_ON_ELEMENT,
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-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanValueUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -73,7 +73,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Data", editingdomain, toolkit, parent,
model, formEditor,
JavabeanPackage.eINSTANCE.getValueType_Data(),
JavabeanPackage.eINSTANCE.getValueType_DataNS());
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-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavabeanWiringUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -71,7 +71,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Wrie On Element", editingdomain,
toolkit, parent, model, formEditor,
JavabeanPackage.eINSTANCE.getWiringType_WireOnElement(),
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -65,7 +65,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Route On Element", editingdomain,
toolkit, parent, model, formEditor,
JmsroutingPackage.eINSTANCE.getJmsRouter_RouteOnElement(),
JmsroutingPackage.eINSTANCE
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ParamTypeUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ParamTypeUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ParamTypeUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -48,7 +48,7 @@
}
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
SmooksUIUtils.createMixedTextFieldEditor("Text Value", editingdomain,
toolkit, parent, model , false , 500,false,false,null,null);
SmooksUIUtils.createCDATAFieldEditor("CDATA Value", editingdomain, toolkit,
parent, model,null);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ResourceConfigTypeUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ResourceConfigTypeUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/ResourceConfigTypeUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -73,7 +73,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Selector", editingdomain, toolkit,
parent, model, formEditor,
SmooksPackage.eINSTANCE.getResourceConfigType_Selector(), SmooksPackage.eINSTANCE
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/SmooksResourceListTypeUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/SmooksResourceListTypeUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/smooks/SmooksResourceListTypeUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -63,7 +63,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Default Selector", editingdomain,
toolkit, parent, model, formEditor,
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/BeanIdRefProposalProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/BeanIdRefProposalProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/BeanIdRefProposalProvider.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,107 @@
+/*******************************************************************************
+ * 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.uitls;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.eclipse.jface.fieldassist.IContentProposalProvider;
+import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class BeanIdRefProposalProvider implements IContentProposalProvider {
+
+ private EObject model;
+
+ public BeanIdRefProposalProvider(EObject model){
+ this.model = model;
+ }
+ /* (non-Javadoc)
+ * @see
org.eclipse.jface.fieldassist.IContentProposalProvider#getProposals(java.lang.String,
int)
+ */
+ public IContentProposal[] getProposals(String contents, int position) {
+ List<IContentProposal> proposalList = new ArrayList<IContentProposal>();
+ SmooksResourceListType listType = getSmooksResourceList(model);
+ if(listType != null){
+ List<String> idList = SmooksUIUtils.getBeanIdList(listType);
+
+ for (Iterator<String> iterator = idList.iterator(); iterator.hasNext();) {
+ String id = (String) iterator.next();
+ if(id.toLowerCase().startsWith(contents.toLowerCase())){
+ proposalList.add(new BeanIDRefContentProposal(id));
+ }
+ }
+
+ return proposalList.toArray(new IContentProposal[]{});
+ }
+
+ return null;
+ }
+
+ protected SmooksResourceListType getSmooksResourceList(EObject model) {
+ EObject parent = model.eContainer();
+ while (parent != null && !(parent instanceof SmooksResourceListType)) {
+ parent = parent.eContainer();
+ }
+ if (parent instanceof SmooksResourceListType) {
+ return (SmooksResourceListType) parent;
+ }
+ return null;
+ }
+
+ private class BeanIDRefContentProposal implements IContentProposal{
+
+ private String id;
+
+ public BeanIDRefContentProposal(String id){
+ this.id = id;
+ }
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getContent()
+ */
+ public String getContent() {
+ // TODO Auto-generated method stub
+ return id;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getCursorPosition()
+ */
+ public int getCursorPosition() {
+ if(id != null){
+ return id.length();
+ }
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getDescription()
+ */
+ public String getDescription() {
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getLabel()
+ */
+ public String getLabel() {
+ return id;
+ }
+
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/BeanIdRefProposalProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/FieldAssistDisposer.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/FieldAssistDisposer.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/FieldAssistDisposer.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * 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.uitls;
+
+import org.eclipse.jface.fieldassist.IContentProposalListener;
+import org.eclipse.jface.fieldassist.IContentProposalListener2;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.ui.fieldassist.ContentAssistCommandAdapter;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class FieldAssistDisposer {
+ private ContentAssistCommandAdapter fAdapter;
+
+ private IContentProposalListener fListener;
+
+ private IContentProposalListener2 fListener2;
+
+ /**
+ *
+ */
+ public FieldAssistDisposer(ContentAssistCommandAdapter adapter, IContentProposalListener
listener,
+ IContentProposalListener2 listener2) {
+ fAdapter = adapter;
+ fListener = listener;
+ fListener2 = listener2;
+ }
+
+ /**
+ *
+ */
+ public void dispose() {
+ if (fAdapter == null) {
+ return;
+ }
+ // Dispose of the label provider
+ ILabelProvider labelProvider = fAdapter.getLabelProvider();
+ if ((labelProvider != null)) {
+ fAdapter.setLabelProvider(null);
+ labelProvider.dispose();
+ }
+ // Remove the listeners
+ if (fListener != null) {
+ fAdapter.removeContentProposalListener((IContentProposalListener) fListener);
+ fAdapter.removeContentProposalListener((IContentProposalListener2) fListener2);
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/FieldAssistDisposer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorConentProposalListener.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorConentProposalListener.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorConentProposalListener.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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.uitls;
+
+import org.eclipse.jface.fieldassist.ContentProposalAdapter;
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.eclipse.jface.fieldassist.IContentProposalListener;
+import org.eclipse.jface.fieldassist.IContentProposalListener2;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class SelectorConentProposalListener implements IContentProposalListener,
IContentProposalListener2 {
+
+ /* (non-Javadoc)
+ * @see
org.eclipse.jface.fieldassist.IContentProposalListener#proposalAccepted(org.eclipse.jface.fieldassist.IContentProposal)
+ */
+ public void proposalAccepted(IContentProposal proposal) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see
org.eclipse.jface.fieldassist.IContentProposalListener2#proposalPopupClosed(org.eclipse.jface.fieldassist.ContentProposalAdapter)
+ */
+ public void proposalPopupClosed(ContentProposalAdapter adapter) {
+
+ }
+
+ /* (non-Javadoc)
+ * @see
org.eclipse.jface.fieldassist.IContentProposalListener2#proposalPopupOpened(org.eclipse.jface.fieldassist.ContentProposalAdapter)
+ */
+ public void proposalPopupOpened(ContentProposalAdapter adapter) {
+
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorConentProposalListener.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposal.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposal.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposal.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,93 @@
+/*******************************************************************************
+ * 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.uitls;
+
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.jboss.tools.smooks.configuration.editors.IXMLStructuredObject;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class SelectorContentProposal implements IContentProposal {
+
+ private String content = null;
+ private IXMLStructuredObject node;
+
+
+
+ public SelectorContentProposal(IXMLStructuredObject node){
+ this.node = node;
+ this.content = SmooksUIUtils.generateFullPath(node, "/");
+ }
+
+
+ /**
+ * @return the node
+ */
+ public IXMLStructuredObject getNode() {
+ return node;
+ }
+
+
+ /**
+ * @param node the node to set
+ */
+ public void setNode(IXMLStructuredObject node) {
+ this.node = node;
+ }
+
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getContent()
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getCursorPosition()
+ */
+ public int getCursorPosition() {
+ if(content != null){
+ return content.length();
+ }
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getDescription()
+ */
+ public String getDescription() {
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getLabel()
+ */
+ public String getLabel() {
+ String content = this.getContent();
+// if(content != null){
+// String[] s = content.split("/");
+// if(s != null && s.length > 4){
+// String newContent = "";
+// for(int i = s.length - 1; i > 4 ; i --){
+// newContent = newContent + "/" + s[i];
+// }
+// newContent = "..." + newContent;
+//
+// return newContent;
+// }
+// }
+ return content;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposal.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposalProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposalProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposalProvider.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,125 @@
+/*******************************************************************************
+ * 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.uitls;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.eclipse.jface.fieldassist.IContentProposalProvider;
+import org.jboss.tools.smooks.configuration.editors.IXMLStructuredObject;
+import org.jboss.tools.smooks.configuration.editors.SelectoreSelectionDialog;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class SelectorContentProposalProvider implements IContentProposalProvider {
+
+ private SmooksGraphicsExtType extType;
+
+ public SelectorContentProposalProvider(SmooksGraphicsExtType extType) {
+ this.extType = extType;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.jface.fieldassist.IContentProposalProvider#getProposals(java
+ * .lang.String, int)
+ */
+ public IContentProposal[] getProposals(String contents, int position) {
+ List<Object> list = SelectoreSelectionDialog.generateInputData(extType);
+ List<IContentProposal> contentList = new ArrayList<IContentProposal>();
+ List<IXMLStructuredObject> models = new ArrayList<IXMLStructuredObject>();
+
+ IXMLStructuredObject currentNode = null;
+ int index = contents.lastIndexOf('/');
+ String path = contents;
+
+ for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ Object object = (Object) iterator.next();
+ if (object instanceof IXMLStructuredObject) {
+ try {
+ IXMLStructuredObject result = SmooksUIUtils.localXMLNodeWithPath(path,
+ (IXMLStructuredObject) object);
+ if (result != null) {
+ currentNode = result;
+ break;
+ }
+ } catch (Throwable t) {
+ continue;
+ }
+ }
+ }
+ if (currentNode == null && index != -1) {
+ if (index != -1) {
+ path = contents.substring(0, index);
+ }
+
+ for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ Object object = (Object) iterator.next();
+ if (object instanceof IXMLStructuredObject) {
+ try {
+ IXMLStructuredObject result = SmooksUIUtils.localXMLNodeWithPath(path,
+ (IXMLStructuredObject) object);
+ if (result != null) {
+ currentNode = result;
+ break;
+ }
+ } catch (Throwable t) {
+ continue;
+ }
+ }
+ }
+ }
+
+ if (currentNode == null) {
+ // SmooksUIUtils.g
+ for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ Object object = (Object) iterator.next();
+ if (object instanceof IXMLStructuredObject) {
+ models.add((IXMLStructuredObject) object);
+ }
+ }
+ } else {
+ models.add(currentNode);
+ }
+
+ List<IXMLStructuredObject> loadedModels =
SmooksUIUtils.loadSelectorObject(models);
+ for (Iterator<?> iterator = loadedModels.iterator(); iterator.hasNext();) {
+ IXMLStructuredObject structuredObject = (IXMLStructuredObject) iterator.next();
+ String fp = SmooksUIUtils.generateFullPath(structuredObject, "/");
+ if (fp == null)
+ continue;
+ fp = fp.trim();
+ if (fp.length() == 0)
+ continue;
+ if (currentNode != null) {
+ String p = SmooksUIUtils.generatePath(structuredObject, currentNode, "/",
true);
+ if (p.startsWith(contents) || p.startsWith("/" + contents) ||
fp.startsWith(contents)
+ || fp.startsWith("/" + contents)) {
+ SelectorContentProposal p1 = new SelectorContentProposal(structuredObject);
+ contentList.add(p1);
+ }
+ } else {
+ if (fp.startsWith(contents) || fp.startsWith("/" + contents)) {
+ SelectorContentProposal p1 = new SelectorContentProposal(structuredObject);
+ contentList.add(p1);
+ }
+ }
+ }
+ return contentList.toArray(new IContentProposal[] {});
+ }
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SelectorContentProposalProvider.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-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/SmooksUIUtils.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -14,6 +14,7 @@
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collections;
+import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
@@ -40,14 +41,29 @@
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jdt.core.search.IJavaSearchConstants;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.fieldassist.ComboContentAdapter;
+import org.eclipse.jface.fieldassist.ContentProposalAdapter;
+import org.eclipse.jface.fieldassist.ControlDecoration;
+import org.eclipse.jface.fieldassist.FieldDecoration;
+import org.eclipse.jface.fieldassist.FieldDecorationRegistry;
+import org.eclipse.jface.fieldassist.IContentProposalListener;
+import org.eclipse.jface.fieldassist.IContentProposalListener2;
+import org.eclipse.jface.fieldassist.IContentProposalProvider;
+import org.eclipse.jface.fieldassist.TextContentAdapter;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.pde.internal.ui.editor.contentassist.TypeContentProposalListener;
+import org.eclipse.pde.internal.ui.editor.contentassist.TypeContentProposalProvider;
+import org.eclipse.pde.internal.ui.editor.contentassist.TypeProposalLabelProvider;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
@@ -56,6 +72,7 @@
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Cursor;
+import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -71,6 +88,7 @@
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.fieldassist.ContentAssistCommandAdapter;
import org.eclipse.ui.forms.IFormColors;
import org.eclipse.ui.forms.events.HyperlinkEvent;
import org.eclipse.ui.forms.events.IHyperlinkListener;
@@ -97,6 +115,7 @@
import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
import
org.jboss.tools.smooks.model.graphics.ext.util.SmooksGraphicsExtResourceFactoryImpl;
import org.jboss.tools.smooks.model.javabean.BindingsType;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
import org.jboss.tools.smooks.model.smooks.ConditionType;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
import org.jboss.tools.smooks10.model.smooks.util.SmooksModelUtils;
@@ -125,6 +144,27 @@
public static final int SELECTOR_EXPAND_MAX_LEVEL = 5;
+ public static final char[] allEnglishCharas = new char[] { 'a', 'A',
'b', 'B', 'c', 'C', 'd', 'D', 'e',
'E', 'f',
+ 'F', 'g', 'G', 'h', 'H', 'i',
'I', 'j', 'J', 'k', 'K', 'l', 'L',
'm', 'M', 'n', 'N', 'o', 'O', 'p',
'P',
+ 'q', 'Q', 'r', 'R', 's', 'S',
't', 'T', 'u', 'U', 'v', 'V', 'w',
'W', 'x', 'X', 'y', 'Y' };
+
+ public static final String[] SELECTOR_SPERATORS = new String[]{" " ,
"/"};
+
+ public static List<String> getBeanIdList(SmooksResourceListType resourceList) {
+ List<AbstractResourceConfig> rlist = resourceList.getAbstractResourceConfig();
+ List<String> beanIdList = new ArrayList<String>();
+ for (Iterator<?> iterator = rlist.iterator(); iterator.hasNext();) {
+ AbstractResourceConfig abstractResourceConfig = (AbstractResourceConfig)
iterator.next();
+ if (abstractResourceConfig instanceof BindingsType) {
+ String beanId = ((BindingsType) abstractResourceConfig).getBeanId();
+ if (beanId == null)
+ continue;
+ beanIdList.add(beanId);
+ }
+ }
+ return beanIdList;
+ }
+
public static void createMixedTextFieldEditor(String label, AdapterFactoryEditingDomain
editingdomain,
FormToolkit toolkit, Composite parent, Object model, boolean linkLabel,
IHyperlinkListener listener) {
createMixedTextFieldEditor(label, editingdomain, toolkit, parent, model, false, 0,
linkLabel, false, listener,
@@ -605,29 +645,50 @@
public static AttributeFieldEditPart createSelectorFieldEditor(String labelText,
FormToolkit toolkit,
Composite parent, final IItemPropertyDescriptor propertyDescriptor, Object model,
final SmooksGraphicsExtType extType, final IEditorPart currentEditorPart) {
- return createDialogFieldEditor(labelText, parent, toolkit, propertyDescriptor,
"Browse", new IFieldDialog() {
- public Object open(Shell shell) {
- SelectoreSelectionDialog dialog = new SelectoreSelectionDialog(shell, extType,
currentEditorPart);
- if (dialog.open() == Dialog.OK) {
- Object currentSelection = dialog.getCurrentSelection();
- SelectorAttributes sa = dialog.getSelectorAttributes();
- if (currentSelection instanceof IXMLStructuredObject) {
- String s = SmooksUIUtils.generatePath((IXMLStructuredObject) currentSelection,
sa);
- return s;
+ AttributeFieldEditPart fieldEditPart = createDialogFieldEditor(labelText, parent,
toolkit, propertyDescriptor,
+ "Browse", new IFieldDialog() {
+ public Object open(Shell shell) {
+ SelectoreSelectionDialog dialog = new SelectoreSelectionDialog(shell, extType,
+ currentEditorPart);
+ if (dialog.open() == Dialog.OK) {
+ Object currentSelection = dialog.getCurrentSelection();
+ SelectorAttributes sa = dialog.getSelectorAttributes();
+ if (currentSelection instanceof IXMLStructuredObject) {
+ String s = SmooksUIUtils.generatePath((IXMLStructuredObject) currentSelection,
sa);
+ return s;
+ }
+ }
+ return null;
}
- }
- return null;
- }
- public IModelProcsser getModelProcesser() {
- return null;
- }
+ public IModelProcsser getModelProcesser() {
+ return null;
+ }
- public void setModelProcesser(IModelProcsser processer) {
+ public void setModelProcesser(IModelProcsser processer) {
+ }
+
+ }, (EObject) model);
+
+ SearchComposite sc = (SearchComposite) fieldEditPart.getContentControl();
+
+ final FieldAssistDisposer disposer = addSelectorFieldAssistToText(sc.getText(),
extType);
+ sc.addDisposeListener(new DisposeListener() {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse
+ * .swt.events.DisposeEvent)
+ */
+ public void widgetDisposed(DisposeEvent e) {
+ disposer.dispose();
}
- }, (EObject) model);
+ });
+ return fieldEditPart;
}
public static SmooksGraphicsExtType loadSmooksGraphicsExt(IFile file) throws IOException
{
@@ -660,6 +721,7 @@
public static AttributeFieldEditPart createJavaTypeSearchFieldEditor(Composite parent,
FormToolkit toolkit,
final IItemPropertyDescriptor propertyDescriptor, final EObject model) {
if (model instanceof EObject) {
+ IContentProposalProvider provider;
AttributeFieldEditPart editpart = new AttributeFieldEditPart();
final Resource resource = ((EObject) model).eResource();
URI uri = resource.getURI();
@@ -763,7 +825,20 @@
}
});
-
+ final TypeFieldAssistDisposer disposer =
SmooksUIUtils.addTypeFieldAssistToText(searchComposite
+ .getText(), workspaceResource.getProject(),
IJavaSearchConstants.CLASS_AND_INTERFACE);
+ classTextComposite.addDisposeListener(new DisposeListener() {
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.swt.events.DisposeListener#widgetDisposed
+ * (org.eclipse.swt.events.DisposeEvent)
+ */
+ public void widgetDisposed(DisposeEvent e) {
+ disposer.dispose();
+ }
+ });
toolkit.paintBordersFor(classTextComposite);
editpart.setContentControl(classTextComposite);
return editpart;
@@ -1098,7 +1173,7 @@
});
toolkit.paintBordersFor(classTextComposite);
- editpart.setContentControl(classTextComposite);
+ editpart.setContentControl(searchComposite);
return editpart;
}
@@ -1174,6 +1249,212 @@
}
}
+ public static void loadSelectorObject(IXMLStructuredObject model, List<String>
loadedModelName,
+ List<IXMLStructuredObject> loadedModels, int level) {
+ if (level >= SELECTOR_EXPAND_MAX_LEVEL)
+ return;
+ level++;
+ if (loadedModelName.contains(model.getNodeName())) {
+ return;
+ } else {
+ loadedModelName.add(model.getNodeName());
+ loadedModels.add(model);
+ List<IXMLStructuredObject> children = model.getChildren();
+ for (Iterator<?> iterator = children.iterator(); iterator.hasNext();) {
+ IXMLStructuredObject structuredObject = (IXMLStructuredObject) iterator.next();
+ loadSelectorObject(structuredObject, loadedModelName, loadedModels, level);
+ }
+ }
+ }
+
+ public static List<IXMLStructuredObject>
loadSelectorObject(List<IXMLStructuredObject> firstNodes) {
+ List<IXMLStructuredObject> loadedNodes = new
ArrayList<IXMLStructuredObject>();
+ for (Iterator<?> iterator = firstNodes.iterator(); iterator.hasNext();) {
+ IXMLStructuredObject firstNode = (IXMLStructuredObject) iterator.next();
+ loadSelectorObject(firstNode, new ArrayList<String>(), loadedNodes, 0);
+ }
+ return loadedNodes;
+ }
+
+ public static FieldAssistDisposer addSelectorFieldAssistToText(Text text,
SmooksGraphicsExtType extType) {
+ // Decorate the text widget with the light-bulb image denoting content
+ // assist
+ int bits = SWT.DOWN | SWT.LEFT;
+ ControlDecoration controlDecoration = new ControlDecoration(text, bits);
+ // Configure text widget decoration
+ // No margin
+ controlDecoration.setMarginWidth(0);
+ // Custom hover tip text
+ if (isLinuxOS()) {
+ controlDecoration.setDescriptionText("Content Assist Available (Ctrl +
space)");
+ } else {
+ controlDecoration.setDescriptionText("Content Assist Available (Alt + /)");
+ }
+ // Custom hover properties
+ controlDecoration.setShowHover(true);
+ controlDecoration.setShowOnlyOnFocus(true);
+ // Hover image to use
+ FieldDecoration contentProposalImage =
FieldDecorationRegistry.getDefault().getFieldDecoration(
+ FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
+ controlDecoration.setImage(contentProposalImage.getImage());
+
+ // Default text widget adapter for field assist
+ TextContentAdapter textContentAdapter = new TextContentAdapter();
+ // Content assist command
+ String command = "org.eclipse.ui.edit.text.contentAssist.proposals";
//$NON-NLS-1$
+ // Set auto activation character to be a '.'
+ char[] autoActivationChars = new char[] { '/' };
+
+ // Create the proposal provider
+ SelectorContentProposalProvider proposalProvider = new
SelectorContentProposalProvider(extType);
+ // Create the adapter
+ ContentAssistCommandAdapter adapter = new ContentAssistCommandAdapter(text,
textContentAdapter,
+ proposalProvider, command, autoActivationChars);
+ // Configure the adapter
+ // Add label provider
+ ILabelProvider labelProvider = new LabelProvider() {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object)
+ */
+ @Override
+ public String getText(Object element) {
+ if (element instanceof SelectorContentProposal) {
+ return ((SelectorContentProposal) element).getLabel();
+ }
+ return super.getText(element);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object
+ * )
+ */
+ @Override
+ public Image getImage(Object element) {
+ return super.getImage(element);
+ }
+
+ };
+ adapter.setLabelProvider(labelProvider);
+ // Replace text field contents with accepted proposals
+ adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
+ // Disable default filtering - custom filtering done
+ adapter.setFilterStyle(ContentProposalAdapter.FILTER_NONE);
+ // Add listeners required to reset state for custom filtering
+ SelectorConentProposalListener proposalListener = new
SelectorConentProposalListener();
+ adapter.addContentProposalListener((IContentProposalListener) proposalListener);
+ adapter.addContentProposalListener((IContentProposalListener2) proposalListener);
+
+ return new FieldAssistDisposer(adapter, (IContentProposalListener) proposalListener,
+ (IContentProposalListener2) proposalListener);
+
+ }
+
+ public static FieldAssistDisposer addBeanIdRefAssistToCombo(Combo combo, EObject model)
{
+ // Decorate the text widget with the light-bulb image denoting content
+ // assist
+ int bits = SWT.DOWN | SWT.LEFT;
+ ControlDecoration controlDecoration = new ControlDecoration(combo, bits);
+ // Configure text widget decoration
+ // No margin
+ controlDecoration.setMarginWidth(0);
+ // Custom hover tip text
+ if (isLinuxOS()) {
+ controlDecoration.setDescriptionText("Content Assist Available (Ctrl +
space)");
+ } else {
+ controlDecoration.setDescriptionText("Content Assist Available (Alt + /)");
+ }
+ // Custom hover properties
+ controlDecoration.setShowHover(true);
+ controlDecoration.setShowOnlyOnFocus(true);
+ // Hover image to use
+ FieldDecoration contentProposalImage =
FieldDecorationRegistry.getDefault().getFieldDecoration(
+ FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
+ controlDecoration.setImage(contentProposalImage.getImage());
+
+ // Default text widget adapter for field assist
+ ComboContentAdapter textContentAdapter = new ComboContentAdapter();
+ // Content assist command
+ String command = "org.eclipse.ui.edit.text.contentAssist.proposals";
//$NON-NLS-1$
+ // Set auto activation character to be a '.'
+
+ // Create the proposal provider
+ BeanIdRefProposalProvider proposalProvider = new BeanIdRefProposalProvider(model);
+ // Create the adapter
+ ContentAssistCommandAdapter adapter = new ContentAssistCommandAdapter(combo,
textContentAdapter,
+ proposalProvider, command, allEnglishCharas);
+ // Configure the adapter
+ // Add label provider
+ // ILabelProvider labelProvider = new LabelProvider();
+ // adapter.setLabelProvider(labelProvider);
+ // Replace text field contents with accepted proposals
+ adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
+ // Disable default filtering - custom filtering done
+ adapter.setFilterStyle(ContentProposalAdapter.FILTER_NONE);
+ // Add listeners required to reset state for custom filtering
+ SelectorConentProposalListener proposalListener = new
SelectorConentProposalListener();
+ adapter.addContentProposalListener((IContentProposalListener) proposalListener);
+ adapter.addContentProposalListener((IContentProposalListener2) proposalListener);
+
+ return new FieldAssistDisposer(adapter, (IContentProposalListener) proposalListener,
+ (IContentProposalListener2) proposalListener);
+ }
+
+ public static TypeFieldAssistDisposer addTypeFieldAssistToText(Text text, IProject
project, int searchScope) {
+ // Decorate the text widget with the light-bulb image denoting content
+ // assist
+ int bits = SWT.DOWN | SWT.LEFT;
+ ControlDecoration controlDecoration = new ControlDecoration(text, bits);
+ // Configure text widget decoration
+ // No margin
+ controlDecoration.setMarginWidth(0);
+ // Custom hover tip text
+ if (isLinuxOS()) {
+ controlDecoration.setDescriptionText("Content Assist Available (Ctrl +
space)");
+ } else {
+ controlDecoration.setDescriptionText("Content Assist Available (Alt + /)");
+ }
+ // Custom hover properties
+ controlDecoration.setShowHover(true);
+ controlDecoration.setShowOnlyOnFocus(true);
+ // Hover image to use
+ FieldDecoration contentProposalImage =
FieldDecorationRegistry.getDefault().getFieldDecoration(
+ FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
+ controlDecoration.setImage(contentProposalImage.getImage());
+
+ // Create the proposal provider
+ TypeContentProposalProvider proposalProvider = new TypeContentProposalProvider(project,
searchScope);
+ // Default text widget adapter for field assist
+ TextContentAdapter textContentAdapter = new TextContentAdapter();
+ // Content assist command
+ String command = "org.eclipse.ui.edit.text.contentAssist.proposals";
//$NON-NLS-1$
+ // Set auto activation character to be a '.'
+ char[] autoActivationChars = new char[] { '.' };
+ // Create the adapter
+ ContentAssistCommandAdapter adapter = new ContentAssistCommandAdapter(text,
textContentAdapter,
+ proposalProvider, command, autoActivationChars);
+ // Configure the adapter
+ // Add label provider
+ ILabelProvider labelProvider = new TypeProposalLabelProvider();
+ adapter.setLabelProvider(labelProvider);
+ // Replace text field contents with accepted proposals
+ adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
+ // Disable default filtering - custom filtering done
+ adapter.setFilterStyle(ContentProposalAdapter.FILTER_NONE);
+ // Add listeners required to reset state for custom filtering
+ TypeContentProposalListener proposalListener = new TypeContentProposalListener();
+ adapter.addContentProposalListener((IContentProposalListener) proposalListener);
+ adapter.addContentProposalListener((IContentProposalListener2) proposalListener);
+
+ return new TypeFieldAssistDisposer(adapter, proposalListener);
+ }
+
public static void showErrorDialog(Shell shell, Status status) {
ErrorDialog.openError(shell, "Error", "error", status);
//$NON-NLS-1$ //$NON-NLS-2$
}
@@ -1189,4 +1470,163 @@
return createErrorStatus(throwable, "Error"); //$NON-NLS-1$
}
+ private static boolean isAttributeName(String name) {
+ if (name == null)
+ return false;
+ return name.trim().startsWith("@");
+ }
+
+ private static String getRawAttributeName(String name) {
+ if (isAttributeName(name)) {
+ return name.trim().substring(1);
+ }
+ return name;
+ }
+
+ private static IXMLStructuredObject localXMLNodeWithNodeName(String name,
IXMLStructuredObject contextNode,
+ HashMap usedNodeMap) {
+ if (name == null || contextNode == null)
+ return null;
+ String nodeName = contextNode.getNodeName();
+ boolean isAttributeName = false;
+ String tempName = name;
+ if (isAttributeName(tempName)) {
+ isAttributeName = true;
+ tempName = getRawAttributeName(tempName);
+ }
+ boolean canCompare = true;
+ if (isAttributeName) {
+ if (!contextNode.isAttribute()) {
+ canCompare = false;
+ }
+ }
+
+ if (canCompare && tempName.equalsIgnoreCase(nodeName)) {
+ return contextNode;
+ }
+ usedNodeMap.put(contextNode.getID(), new Object());
+ List children = contextNode.getChildren();
+ IXMLStructuredObject result = null;
+ for (Iterator iterator = children.iterator(); iterator.hasNext();) {
+ IXMLStructuredObject child = (IXMLStructuredObject) iterator.next();
+ if (isAttributeName) {
+ if (!child.isAttribute())
+ continue;
+ }
+ if (tempName.equalsIgnoreCase(child.getNodeName())) {
+ result = child;
+ break;
+ }
+ }
+ if (result == null) {
+ for (Iterator iterator = children.iterator(); iterator.hasNext();) {
+ IXMLStructuredObject child = (IXMLStructuredObject) iterator.next();
+ // to avoid the "died loop"
+ if (usedNodeMap.get(child.getID()) != null) {
+ continue;
+ }
+ result = localXMLNodeWithNodeName(name, child, usedNodeMap);
+ if (result != null) {
+ return result;
+ }
+ }
+ }
+ return result;
+ }
+
+ public static IXMLStructuredObject localXMLNodeWithNodeName(String name,
IXMLStructuredObject contextNode) {
+ HashMap map = new HashMap();
+ IXMLStructuredObject node = localXMLNodeWithNodeName(name, contextNode, map);
+ map.clear();
+ map = null;
+ return node;
+ }
+
+ public static IXMLStructuredObject localXMLNodeWithPath(String path,
IXMLStructuredObject contextNode) {
+ if (path == null)
+ return null;
+ path = path.trim();
+ String[] sperators = SELECTOR_SPERATORS;
+ String sperator = null;
+ boolean hasSperator = false;
+ for (int i = 0; i < sperators.length; i++) {
+ sperator = sperators[i];
+ if (path.indexOf(sperator) != -1) {
+ hasSperator = true;
+ break;
+ }
+ }
+ if (!hasSperator)
+ sperator = null;
+ return localXMLNodeWithPath(path, contextNode, sperator, true);
+ }
+
+ public static IXMLStructuredObject localXMLNodeWithPath(String path,
IXMLStructuredObject contextNode,
+ String sperator, boolean throwException) {
+ if (contextNode == null || path == null)
+ return null;
+ if (sperator == null) {
+ sperator = " ";
+ }
+ if (path != null)
+ path = path.trim();
+ String[] pathes = path.split(sperator);
+ if (pathes != null && pathes.length > 0 && path.length() != 0) {
+ // to find the first node
+ // first time , we search the node via context
+ String firstNodeName = pathes[0];
+ int index = 0;
+ while (firstNodeName.length() == 0) {
+ index++;
+ firstNodeName = pathes[index];
+ }
+ IXMLStructuredObject firstModel = localXMLNodeWithNodeName(firstNodeName,
contextNode);
+
+ // if we can't find the node , to find it from the Root Parent node
+ if (firstModel == null) {
+ firstModel = localXMLNodeWithNodeName(firstNodeName, getRootParent(contextNode));
+ }
+
+ if (firstModel == null) {
+ if (throwException)
+ throw new RuntimeException("Can't find the node : " + firstNodeName);
+ else {
+ return null;
+ }
+ }
+ for (int i = index + 1; i < pathes.length; i++) {
+ firstModel = getChildNodeWithName(pathes[i], firstModel);
+ if (firstModel == null && throwException) {
+ throw new RuntimeException("Can't find the node : " + pathes[i] +
" from parent node "
+ + pathes[i - 1]);
+ }
+ }
+
+ return firstModel;
+ }
+ return null;
+ }
+
+ public static IXMLStructuredObject getChildNodeWithName(String name,
IXMLStructuredObject parent) {
+ String tempName = name;
+ boolean isAttribute = false;
+ if (isAttributeName(tempName)) {
+ isAttribute = true;
+ tempName = getRawAttributeName(tempName);
+ }
+ List<IXMLStructuredObject> children = parent.getChildren();
+ if (children == null)
+ return null;
+ for (Iterator iterator = children.iterator(); iterator.hasNext();) {
+ IXMLStructuredObject structuredObject = (IXMLStructuredObject) iterator.next();
+ if (isAttribute) {
+ if (!structuredObject.isAttribute())
+ continue;
+ }
+ if (tempName.equalsIgnoreCase(structuredObject.getNodeName())) {
+ return structuredObject;
+ }
+ }
+ return null;
+ }
}
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/Test.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/Test.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/Test.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * 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.uitls;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class Test {
+ public static void main(String[] args) {
+ int i = 97;
+ for (i = 97; i < 122; i++) {
+ char c = (char) i;
+ String s = new String(new char[]{c});
+ System.out.print("'"+s+"'," + "'" +
s.toUpperCase() +"',");
+ }
+ }
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/Test.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/TypeFieldAssistDisposer.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/TypeFieldAssistDisposer.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/TypeFieldAssistDisposer.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * 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.uitls;
+
+import org.eclipse.jface.fieldassist.IContentProposalListener;
+import org.eclipse.jface.fieldassist.IContentProposalListener2;
+import org.eclipse.pde.internal.ui.editor.contentassist.TypeContentProposalListener;
+import org.eclipse.ui.fieldassist.ContentAssistCommandAdapter;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class TypeFieldAssistDisposer extends FieldAssistDisposer{
+
+
+ public TypeFieldAssistDisposer(ContentAssistCommandAdapter adapter,
IContentProposalListener listener,
+ IContentProposalListener2 listener2) {
+ super(adapter, listener, listener2);
+ }
+
+ /**
+ *
+ */
+ public TypeFieldAssistDisposer(ContentAssistCommandAdapter adapter,
TypeContentProposalListener listener) {
+ super(adapter,listener,listener);
+ }
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/TypeFieldAssistDisposer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/xsl/TemplateUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/xsl/TemplateUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/xsl/TemplateUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -67,16 +67,16 @@
}
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit, Composite parent, Object model,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model,
SmooksMultiFormEditor formEditor) {
OpenEditorEditInnerContentsAction openCdataEditorAction = new
OpenEditorEditInnerContentsAction(editingdomain,(AnyType) model,
SmooksUIUtils.VALUE_TYPE_CDATA, "xsl");
- OpenEditorEditInnerContentsAction openCommentEditorAction = new
OpenEditorEditInnerContentsAction(editingdomain,(AnyType) model,
SmooksUIUtils.VALUE_TYPE_COMMENT, "xsl");
- SmooksUIUtils.createFileSelectionTextFieldEditor("Text Value", parent,
editingdomain, toolkit, null, model, SmooksUIUtils.VALUE_TYPE_TEXT,
+// OpenEditorEditInnerContentsAction openCommentEditorAction = new
OpenEditorEditInnerContentsAction(editingdomain,(AnyType) model,
SmooksUIUtils.VALUE_TYPE_COMMENT, "xsl");
+ AttributeFieldEditPart text1 = SmooksUIUtils.createCDATAFieldEditor("Inline
Template", editingdomain, toolkit, parent, model, openCdataEditorAction);
+// AttributeFieldEditPart text2 = SmooksUIUtils.createCommentFieldEditor("Template
Contents (Comment)", editingdomain, toolkit, parent, model,
openCommentEditorAction);
+ openCdataEditorAction.setRelateText((Text)text1.getContentControl());
+// openCommentEditorAction.setRelateText((Text)text2.getContentControl());
+ SmooksUIUtils.createFileSelectionTextFieldEditor("External Template File",
parent, editingdomain, toolkit, null, model, SmooksUIUtils.VALUE_TYPE_TEXT,
null, null);
- AttributeFieldEditPart text1 = SmooksUIUtils.createCDATAFieldEditor("Template
Contents (CDATA)", editingdomain, toolkit, parent, model, openCdataEditorAction);
- AttributeFieldEditPart text2 = SmooksUIUtils.createCommentFieldEditor("Template
Contents (Comment)", editingdomain, toolkit, parent, model,
openCommentEditorAction);
- openCdataEditorAction.setRelateText((Text)text1.getContentControl());
- openCommentEditorAction.setRelateText((Text)text2.getContentControl());
return Collections.emptyList();
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/xsl/XslUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/xsl/XslUICreator.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/xsl/XslUICreator.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -63,7 +63,7 @@
* org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
*/
@Override
- public List<AttributeFieldEditPart> createExtendUI(AdapterFactoryEditingDomain
editingdomain, FormToolkit toolkit,
+ public List<AttributeFieldEditPart>
createExtendUIOnBottom(AdapterFactoryEditingDomain editingdomain, FormToolkit toolkit,
Composite parent, Object model, SmooksMultiFormEditor formEditor) {
return createElementSelectionSection("Apply On Element", editingdomain,
toolkit, parent, model, formEditor,
XslPackage.Literals.XSL__APPLY_ON_ELEMENT,
XslPackage.Literals.XSL__APPLY_ON_ELEMENT_NS);
Added:
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model/configfiles/smooks112/route-to-02_Low_Price_Service.xml
===================================================================
---
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model/configfiles/smooks112/route-to-02_Low_Price_Service.xml
(rev 0)
+++
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model/configfiles/smooks112/route-to-02_Low_Price_Service.xml 2009-05-25
08:02:20 UTC (rev 15481)
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<smooks-resource-list
xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+
xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd"
+
xmlns:esbr="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd...
+
+ <!--
+ At the end of every order-item, route the order item XML
("02_XML_OrderItem") to the
+ "02_Low_Price" Service, if the total is 20 or less...
+ -->
+ <esbr:routeBean beanIdRef="02_XML_OrderItem"
toServiceCategory="HugeQS" toServiceName="02_Low_Price"
routeOnElement="order-item">
+ <condition><!-- product.LISTPRICE * orderItem.quantity <= 17.00
--></condition>
+ </esbr:routeBean>
+
+ <!--
+ At the end of every order-item, generate an <ord> split message for the
"02_XML" Service
+ and bind it back into the bean context under a bean ID of
"02_XML_OrderItem". 02_XML_OrderItem
+ will be router by the FragmentRouter (configured above)..
+ -->
+ <ftl:freemarker applyOnElement="order-item">
+ <ftl:template><!--<ord id="${orderDetail.orderNum?c}"
date="${orderDetail.date?string("yyyy-MM-dd")}">
+ <customer>
+ <name>${accounts[0].LASTNAME}, ${accounts[0].FIRSTNAME}</name>
+ <addr1>${accounts[0].ADDR1}</addr1>
+ <addr2>${accounts[0].ADDR2}</addr2>
+ <city>${accounts[0].CITY}</city>
+ <state>${accounts[0].STATE}</state>
+ <zip>${accounts[0].ZIP}</zip>
+ </customer>
+ <productid>${orderItem.productId}</productid>
+ <quantity>${orderItem.quantity?c}</quantity>
+ <price>${product.LISTPRICE?c}</price>
+ <title>${product.NAME} (${product.ATTR1})</title>
+</ord>--></ftl:template>
+ <ftl:use>
+ <ftl:bindTo id="02_XML_OrderItem" />
+ </ftl:use>
+ </ftl:freemarker>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model/configfiles/smooks112/route-to-02_Low_Price_Service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model11/AbstractSmooks11ModelTestCase.java
===================================================================
---
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model11/AbstractSmooks11ModelTestCase.java 2009-05-25
07:57:24 UTC (rev 15480)
+++
trunk/smooks/tests/org.jboss.tools.smooks.test/src/org/jboss/tools/smooks/test/model11/AbstractSmooks11ModelTestCase.java 2009-05-25
08:02:20 UTC (rev 15481)
@@ -37,6 +37,7 @@
import
org.jboss.tools.smooks.model.dbrouting.provider.DbroutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.edi.EdiPackage;
import org.jboss.tools.smooks.model.edi.provider.EdiItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
import
org.jboss.tools.smooks.model.fileRouting.provider.FileRoutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
@@ -92,7 +93,7 @@
Registry.INSTANCE.put(JsonPackage.eNS_URI, JsonPackage.eINSTANCE);
Registry.INSTANCE.put(MEdiPackage.eNS_URI, MEdiPackage.eINSTANCE);
Registry.INSTANCE.put(XslPackage.eNS_URI, XslPackage.eINSTANCE);
-
+ Registry.INSTANCE.put(EsbroutingPackage.eNS_URI, EsbroutingPackage.eINSTANCE);
Registry.INSTANCE.put(org.jboss.tools.smooks10.model.smooks.SmooksPackage.eNS_URI,
org.jboss.tools.smooks10.model.smooks.SmooksPackage.eINSTANCE);
}