Author: scabanovich
Date: 2009-11-26 12:57:51 -0500 (Thu, 26 Nov 2009)
New Revision: 18865
Modified:
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBListsFormLayoutData.java
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBXMLFormLayoutData.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5199
Modified:
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBListsFormLayoutData.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBListsFormLayoutData.java 2009-11-26
17:57:01 UTC (rev 18864)
+++
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBListsFormLayoutData.java 2009-11-26
17:57:51 UTC (rev 18865)
@@ -198,4 +198,20 @@
FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddBPMVar")
//$NON-NLS-1$
);
+ static IFormData NAMESPACE_LIST_DEFINITION = new FormData(
+ "Namespace List", //$NON-NLS-1$
+ ModelFormLayoutData.EMPTY_DESCRIPTION,
+ new FormAttributeData[]{new FormAttributeData("namespace uri", 100)},
+ new String[]{ConverterConstants.NAMESPACE_ENTITY},
+ FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddNamespace")
//$NON-NLS-1$
+ );
+
+ static IFormData ROUTER_NAMESPACE_LIST_DEFINITION = new FormData(
+ "Namespace List", //$NON-NLS-1$
+ ModelFormLayoutData.EMPTY_DESCRIPTION,
+ new FormAttributeData[]{new FormAttributeData("prefix", 50), new
FormAttributeData("uri", 50)},
+ new String[]{ConverterConstants.ROUTER_NAMESPACE_ENTITY},
+ FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddNamespace")
//$NON-NLS-1$
+ );
+
}
Modified:
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBXMLFormLayoutData.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBXMLFormLayoutData.java 2009-11-26
17:57:01 UTC (rev 18864)
+++
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBXMLFormLayoutData.java 2009-11-26
17:57:51 UTC (rev 18865)
@@ -90,6 +90,12 @@
if(entity.getChild(ConverterConstants.BPM_VAR_ENTITY) != null) {
list.add(ESBListsFormLayoutData.BPM_VAR_LIST_DEFINITION);
}
+ if(entity.getChild(ConverterConstants.NAMESPACE_ENTITY) != null) {
+ list.add(ESBListsFormLayoutData.NAMESPACE_LIST_DEFINITION);
+ }
+ if(entity.getChild(ConverterConstants.ROUTER_NAMESPACE_ENTITY) != null) {
+ list.add(ESBListsFormLayoutData.ROUTER_NAMESPACE_LIST_DEFINITION);
+ }
//do nothing; when specific children exist use specific forms
} else if(entity.getChild(ENT_ESB_PROPERTY) != null) {
list.add(ESBListsFormLayoutData.ESB_PROPERTY_LIST_DEFINITION);