Author: akazakov
Date: 2008-07-22 09:44:55 -0400 (Tue, 22 Jul 2008)
New Revision: 9202
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2489 Rolled back incorrect fix because it broke
conversation generating for seam 1.2 from JBDS.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java 2008-07-22
12:16:16 UTC (rev 9201)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java 2008-07-22
13:44:55 UTC (rev 9202)
@@ -68,12 +68,13 @@
static {
// initialize war files mapping
- // seam-gen uses @interfaceName@ as class name since 2.0.1
- // but seam-gen 2.0.0 uses @beanName@ (it's a bug of 2.0.0)
- // So we expect seam-gen 2.0.1 or higher here.
ACTION_MAPPING.add(new FileMapping(
"${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME +
"}/seam-gen/src/ConversationJavaBean.java", //$NON-NLS-1$ //$NON-NLS-2$
- "${" + IParameter.SEAM_PROJECT_SRC_ACTION + "}/${" +
ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_PATH + "}/${" +
IParameter.SEAM_LOCAL_INTERFACE_NAME +"}.java", //$NON-NLS-1$ //$NON-NLS-2$
//$NON-NLS-3$ //$NON-NLS-4$
+ // seam-gen uses @interfaceName@ as class name since 2.0.1
+ // but seam-gen 2.0.0 and lower uses @beanName@ (looks like a bug)
+ // So if we want it works for 2.0.* we should uncomment the following line:
+ // "${" + IParameter.SEAM_PROJECT_SRC_ACTION + "}/${" +
ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_PATH + "}/${" +
IParameter.SEAM_LOCAL_INTERFACE_NAME +"}.java", //$NON-NLS-1$ //$NON-NLS-2$
//$NON-NLS-3$ //$NON-NLS-4$
+ "${" + IParameter.SEAM_PROJECT_SRC_ACTION + "}/${" +
ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_PATH + "}/${" +
IParameter.SEAM_BEAN_NAME +"}.java", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
//$NON-NLS-4$
FileMapping.TYPE.WAR,
false));
ACTION_MAPPING.add(new FileMapping(