Author: scabanovich
Date: 2007-10-24 10:15:58 -0400 (Wed, 24 Oct 2007)
New Revision: 4462
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/NewProjectRegisterPage.java
Log:
JBIDE-1139
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-24
14:01:06 UTC (rev 4461)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/NewProjectRegisterPage.java 2007-10-24
14:15:58 UTC (rev 4462)
@@ -12,6 +12,7 @@
import org.jboss.tools.common.model.ui.attribute.XAttributeSupport;
import org.jboss.tools.common.model.ui.util.ModelUtilities;
+import org.eclipse.jface.dialogs.DialogPage;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
@@ -131,15 +132,20 @@
try {
appRegister.commit();
String msg = appRegister.getErrorMessage();
+ String wrn = null;
if(msg == null) {
- msg = context.validateServletVersion();
+ wrn = context.validateServletVersion();
}
if(msg != null) {
setErrorMessage(msg);
return false;
+ } else if(wrn != null) {
+ setErrorMessage(null);
+ setMessage(wrn, DialogPage.WARNING);
+ } else {
+ setErrorMessage(null);
+ setMessage(null);
}
- setErrorMessage(null);
- setMessage(null);
return true;
} finally {
lock = false;
Show replies by date