Author: scabanovich
Date: 2009-01-20 07:50:17 -0500 (Tue, 20 Jan 2009)
New Revision: 13147
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java
Log:
JBIDE-3589
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java 2009-01-20
10:58:03 UTC (rev 13146)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java 2009-01-20
12:50:17 UTC (rev 13147)
@@ -298,7 +298,7 @@
onRuntimeChange(value);
}
}
-
+
void onRuntimeChange(String value) {
value = (value == null) ? "" : value.trim();
if(value.equals(context.getRuntimeName())) return;
@@ -383,6 +383,7 @@
if(runtime == null) return -1;
p.setProperty("value", runtime.getName());
initRuntimeValue();
+ context.setRuntimeName(""); //prepare for change
return 0;
}