Author: scabanovich
Date: 2010-03-12 09:24:26 -0500 (Fri, 12 Mar 2010)
New Revision: 20799
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFileFormLayoutData.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFormLayoutData.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppListsFormLayoutData.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5975
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFileFormLayoutData.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFileFormLayoutData.java 2010-03-12
13:16:53 UTC (rev 20798)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFileFormLayoutData.java 2010-03-12
14:24:26 UTC (rev 20799)
@@ -58,10 +58,4 @@
FILE_25_ENTITY, new String[]{null},
createFileDefinitions(Messages.WebAppFileFormLayoutData_WebDesc25, FILE_25_ENTITY)
);
- public static IFormData FILE_WEB_APP_30_DEFINITION = new FormData(
- FILE_30_ENTITY, new String[]{null},
createFileDefinitions(Messages.WebAppFileFormLayoutData_WebDesc30, FILE_30_ENTITY)
- );
-
-
-
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFormLayoutData.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFormLayoutData.java 2010-03-12
13:16:53 UTC (rev 20798)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppFormLayoutData.java 2010-03-12
14:24:26 UTC (rev 20799)
@@ -65,7 +65,6 @@
WebAppFileFormLayoutData.FILE_WEB_APP_23_DEFINITION,
WebAppFileFormLayoutData.FILE_WEB_APP_24_DEFINITION,
WebAppFileFormLayoutData.FILE_WEB_APP_25_DEFINITION,
- WebAppFileFormLayoutData.FILE_WEB_APP_30_DEFINITION,
};
private static Map FORM_LAYOUT_DEFINITION_MAP = Collections.synchronizedMap(new
ArrayToMap(FORM_LAYOUT_DEFINITIONS));
@@ -104,6 +103,10 @@
IFormData g = ModelFormLayoutData.createGeneralFormData(entity);
if(g != null) list.add(g);
+ if(entity.getName().startsWith("FileWebApp")) {
+ list.add(WebAppFileFormLayoutData.CONTEXT_PARAM_FOLDER_DEFINITION);
+ }
+
for (int i = 0; i < entity.getChildren().length; i++) {
String ce = entity.getChildren()[i].getName();
if(WebAppListsFormLayoutData.singleChildLists.containsKey(ce)) {
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppListsFormLayoutData.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppListsFormLayoutData.java 2010-03-12
13:16:53 UTC (rev 20798)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/webapp/form/WebAppListsFormLayoutData.java 2010-03-12
14:24:26 UTC (rev 20799)
@@ -18,6 +18,8 @@
import org.jboss.tools.common.model.ui.forms.FormLayoutDataUtil;
import org.jboss.tools.common.model.ui.forms.IFormData;
import org.jboss.tools.common.model.ui.forms.ModelFormLayoutData;
+import org.jboss.tools.jst.web.model.helpers.WebAppHelper;
+import org.jboss.tools.jst.web.ui.Messages;
/**
* @author Viacheslav Kabanovich
@@ -83,6 +85,11 @@
createOneAttributeSingleChildList(
"Cookie Configs", "name", "WebAppCookieConfig",
"CreateActions.CreateCookieConfig" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
//$NON-NLS-4$
);
+
+ createTwoAttributeSingleChildList(
+ Messages.WebAppFileFormLayoutData_ContextParams, "param-name", 40,
"param-value", WebAppHelper.CONTEXT_PARAM_ENTITY,
"CreateActions.CreateContextParam" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ );
+
}