Author: scabanovich
Date: 2009-11-26 12:02:14 -0500 (Thu, 26 Nov 2009)
New Revision: 18863
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
16:52:57 UTC (rev 18862)
+++
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBListsFormLayoutData.java 2009-11-26
17:02:14 UTC (rev 18863)
@@ -22,6 +22,7 @@
import org.jboss.tools.common.model.ui.forms.IFormData;
import org.jboss.tools.common.model.ui.forms.ModelFormLayoutData;
import org.jboss.tools.esb.core.model.ESBConstants;
+import org.jboss.tools.esb.core.model.converters.ConverterConstants;
/**
* @author Viacheslav Kabanovich
@@ -165,4 +166,36 @@
FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddObjectPath")
//$NON-NLS-1$
);
+ static IFormData ALIAS_LIST_DEFINITION = new FormData(
+ "Alias List", //$NON-NLS-1$
+ ModelFormLayoutData.EMPTY_DESCRIPTION,
+ new FormAttributeData[]{new FormAttributeData("name", 100)},
+ new String[]{ConverterConstants.ALIAS_ENTITY},
+ FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAlias")
//$NON-NLS-1$
+ );
+
+ static IFormData ATTRIBUTE_ALIAS_LIST_DEFINITION = new FormData(
+ "Attribute Alias List", //$NON-NLS-1$
+ ModelFormLayoutData.EMPTY_DESCRIPTION,
+ new FormAttributeData[]{new FormAttributeData("name", 100)},
+ new String[]{ConverterConstants.ATTRIBUTE_ALIAS_ENTITY},
+ FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAttributeAlias")
//$NON-NLS-1$
+ );
+
+ static IFormData FIELD_ALIAS_LIST_DEFINITION = new FormData(
+ "Field Alias List", //$NON-NLS-1$
+ ModelFormLayoutData.EMPTY_DESCRIPTION,
+ new FormAttributeData[]{new FormAttributeData("alias", 100)},
+ new String[]{ConverterConstants.FIELD_ALIAS_ENTITY},
+ FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddFieldAlias")
//$NON-NLS-1$
+ );
+
+ static IFormData BPM_VAR_LIST_DEFINITION = new FormData(
+ "BPM Var List", //$NON-NLS-1$
+ ModelFormLayoutData.EMPTY_DESCRIPTION,
+ new FormAttributeData[]{new FormAttributeData("esb", 50), new
FormAttributeData("bpm", 50)},
+ new String[]{ConverterConstants.BPM_VAR_ENTITY},
+ FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddBPMVar")
//$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
16:52:57 UTC (rev 18862)
+++
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/form/ESBXMLFormLayoutData.java 2009-11-26
17:02:14 UTC (rev 18863)
@@ -17,6 +17,7 @@
import org.jboss.tools.common.model.util.ClassLoaderUtil;
import org.jboss.tools.common.model.ui.forms.*;
import org.jboss.tools.esb.core.model.ESBConstants;
+import org.jboss.tools.esb.core.model.converters.ConverterConstants;
/**
* @author Viacheslav Kabanovich
@@ -73,9 +74,22 @@
if(entityName.startsWith(PREACTION_PREFIX)) {
if(entity.getChild(ENT_ESB_ROUTE_TO) != null) {
list.add(ESBListsFormLayoutData.ESB_ROUTE_LIST_DEFINITION);
- } else if(entity.getChild(ENT_ESB_OBJECT_PATH) != null) {
+ }
+ if(entity.getChild(ENT_ESB_OBJECT_PATH) != null) {
list.add(ESBListsFormLayoutData.ESB_OBJECT_PATH_LIST_DEFINITION);
}
+ if(entity.getChild(ConverterConstants.ALIAS_ENTITY) != null) {
+ list.add(ESBListsFormLayoutData.ALIAS_LIST_DEFINITION);
+ }
+ if(entity.getChild(ConverterConstants.ATTRIBUTE_ALIAS_ENTITY) != null) {
+ list.add(ESBListsFormLayoutData.ATTRIBUTE_ALIAS_LIST_DEFINITION);
+ }
+ if(entity.getChild(ConverterConstants.FIELD_ALIAS_ENTITY) != null) {
+ list.add(ESBListsFormLayoutData.FIELD_ALIAS_LIST_DEFINITION);
+ }
+ if(entity.getChild(ConverterConstants.BPM_VAR_ENTITY) != null) {
+ list.add(ESBListsFormLayoutData.BPM_VAR_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);