Author: akazakov
Date: 2009-10-09 13:30:22 -0400 (Fri, 09 Oct 2009)
New Revision: 18018
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5010
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2009-10-09 17:22:13 UTC (rev
18017)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2009-10-09 17:30:22 UTC (rev
18018)
@@ -272,6 +272,20 @@
id="jst.seam21.preset">
</preset>
</template>
+
+ <template
+ id="template.jst.seam22">
+ <label>
+ Seam 2.2 Web Project
+ </label>
+ <fixed
+ facet="jst.java"/>
+ <fixed
+ facet="jst.web"/>
+ <preset
+ id="jst.seam22.preset">
+ </preset>
+ </template>
</extension>
<extension
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-10-09
17:22:13 UTC (rev 18017)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-10-09
17:30:22 UTC (rev 18018)
@@ -132,12 +132,14 @@
private static final String templateJstSeam1 = "template.jst.seam";
//$NON-NLS-1$
private static final String templateJstSeam2 = "template.jst.seam2";
//$NON-NLS-1$
private static final String templateJstSeam21 = "template.jst.seam21";
//$NON-NLS-1$
+ private static final String templateJstSeam22 = "template.jst.seam22";
//$NON-NLS-1$
private static final Map<String, String> templates = new HashMap<String,
String>();
static {
templates.put("jst.seam.preset", templateJstSeam1); //$NON-NLS-1$
templates.put("jst.seam2.preset", templateJstSeam2); //$NON-NLS-1$
templates.put("jst.seam21.preset", templateJstSeam21); //$NON-NLS-1$
+ templates.put("jst.seam22.preset", templateJstSeam22); //$NON-NLS-1$
}
private void setSeamConfigTemplate(String seamConfigTemplate) {
@@ -244,11 +246,13 @@
seamConfigTemplate = templateJstSeam1;
} else if(runtime.getVersion()==SeamVersion.SEAM_2_0) {
seamConfigTemplate = templateJstSeam2;
+ } else if(runtime.getVersion()==SeamVersion.SEAM_2_1) {
+ seamConfigTemplate = templateJstSeam21;
} else {
- seamConfigTemplate = templateJstSeam21;
+ seamConfigTemplate = templateJstSeam22;
}
} else {
- seamConfigTemplate = templateJstSeam21;
+ seamConfigTemplate = templateJstSeam22;
}
}
return ProjectFacetsManager.getTemplate(seamConfigTemplate);