Author: scabanovich
Date: 2007-10-16 10:34:22 -0400 (Tue, 16 Oct 2007)
New Revision: 4233
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/NewProjectRegisterPage.java
Log:
JBIDE-682
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/NewProjectRegisterPage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/NewProjectRegisterPage.java 2007-10-16
14:34:15 UTC (rev 4232)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/NewProjectRegisterPage.java 2007-10-16
14:34:22 UTC (rev 4233)
@@ -106,6 +106,12 @@
public void loadServletVersion() {
String currentServletVersion =
support.getPropertyEditorAdapterByName("servletVersion").getStringValue(true);
+ String vs = context.getServletVersion();
+ if(vs != null && vs.length() > 0 &&
!vs.equals(currentServletVersion)) {
+ context.setServletVersion(vs);
+ support.getPropertyEditorAdapterByName("servletVersion").setValue(vs);
+ }
+
if(context != null && context.getProjectTemplate() != null) {
String prefServletVersion =
context.getProjectTemplate().getProjectVersion().getPreferredServletVersion();
if(prefServletVersion != null) {