Author: dgolovin
Date: 2007-10-01 17:36:34 -0400 (Mon, 01 Oct 2007)
New Revision: 3931
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizardPage1.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizardPage1.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizardPage1.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-976
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizardPage1.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizardPage1.java 2007-10-01
19:34:27 UTC (rev 3930)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizardPage1.java 2007-10-01
21:36:34 UTC (rev 3931)
@@ -47,7 +47,7 @@
setDefaultValue(IParameter.SEAM_PAGE_NAME, "");
} else {
String valueU = value.substring(0,1).toUpperCase() + value.substring(1);
- setDefaultValue(IParameter.SEAM_LOCAL_INTERFACE_NAME, isWar()?valueU :"I" +
valueU);
+ setDefaultValue(IParameter.SEAM_LOCAL_INTERFACE_NAME, valueU);
setDefaultValue(IParameter.SEAM_BEAN_NAME, valueU+"Bean");
String valueL = value.substring(0,1).toLowerCase() + value.substring(1);
setDefaultValue(IParameter.SEAM_METHOD_NAME, valueL);
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizardPage1.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizardPage1.java 2007-10-01
19:34:27 UTC (rev 3930)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizardPage1.java 2007-10-01
21:36:34 UTC (rev 3931)
@@ -67,7 +67,7 @@
setDefaultValue(IParameter.SEAM_PAGE_NAME, "");
} else {
String valueU = value.substring(0,1).toUpperCase() + value.substring(1);
- setDefaultValue(IParameter.SEAM_LOCAL_INTERFACE_NAME, "I" + valueU);
+ setDefaultValue(IParameter.SEAM_LOCAL_INTERFACE_NAME, valueU);
setDefaultValue(IParameter.SEAM_BEAN_NAME, valueU+"Bean");
String valueL = value.substring(0,1).toLowerCase() + value.substring(1);
setDefaultValue(IParameter.SEAM_METHOD_NAME, valueL);
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java 2007-10-01
19:34:27 UTC (rev 3930)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java 2007-10-01
21:36:34 UTC (rev 3931)
@@ -61,15 +61,14 @@
if(event.getNewValue()==null||"".equals(event.getNewValue().toString().trim()))
{
setDefaultValue(IParameter.SEAM_COMPONENT_NAME, "");
setDefaultValue(IParameter.SEAM_LOCAL_INTERFACE_NAME, "");
- setDefaultValue(IParameter.SEAM_BEAN_NAME, "");
- setDefaultValue(IParameter.SEAM_METHOD_NAME, "");
+ setDefaultValue(IParameter.SEAM_METHOD_NAME, "");
setDefaultValue(IParameter.SEAM_PAGE_NAME, "");
} else {
String value = event.getNewValue().toString();
String valueU = value.substring(0,1).toUpperCase() + value.substring(1);
String valueL = value.substring(0,1).toLowerCase() + value.substring(1);
- setDefaultValue(IParameter.SEAM_MASTER_PAGE_NAME, valueL+"-edit");
- setDefaultValue(IParameter.SEAM_PAGE_NAME, valueL+"-list");
+ setDefaultValue(IParameter.SEAM_MASTER_PAGE_NAME, valueL);
+ setDefaultValue(IParameter.SEAM_PAGE_NAME, valueL+"List");
}
}
@@ -79,7 +78,6 @@
if(errors.size()>0) {
setErrorMessage(errors.get(IValidator.DEFAULT_ERROR).toString());
setPageComplete(false);
- getEditor(IParameter.SEAM_BEAN_NAME).setEnabled(false);
return;
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizardPage1.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizardPage1.java 2007-10-01
19:34:27 UTC (rev 3930)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizardPage1.java 2007-10-01
21:36:34 UTC (rev 3931)
@@ -46,7 +46,7 @@
setDefaultValue(IParameter.SEAM_PAGE_NAME, "");
} else {
String valueU = value.substring(0,1).toUpperCase() + value.substring(1);
- setDefaultValue(IParameter.SEAM_LOCAL_INTERFACE_NAME, isWar()?valueU :"I" +
valueU);
+ setDefaultValue(IParameter.SEAM_LOCAL_INTERFACE_NAME, valueU);
setDefaultValue(IParameter.SEAM_BEAN_NAME, valueU+"Bean");
String valueL = value.substring(0,1).toLowerCase() + value.substring(1);
setDefaultValue(IParameter.SEAM_METHOD_NAME, valueL);