Author: adietish
Date: 2011-03-14 05:49:55 -0400 (Mon, 14 Mar 2011)
New Revision: 29748
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
[JBIDE-8093] added detailed error notification for all errors
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
---
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-03-14
09:39:28 UTC (rev 29747)
+++
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-03-14
09:49:55 UTC (rev 29748)
@@ -251,19 +251,26 @@
String error = null;
if( createServer.getSelection()) {
if( deployOnlyRadio.getSelection()) {
- complete = !deployFolderText.getText().equals("");
- if( !complete )
+ if(deployFolderText.getText().equals("")) {
error = "The deploy folder must not be empty";
+ }
} else if( autoScanCheck.getSelection()) {
- int index = autoLocalRuntimeCombo.getSelectionIndex();
- complete = index != -1 && !remoteDetailsLoc.getText().equals("");
- if( !complete )
+ if (remoteDetailsLoc.getText().equals("")) {
+ error = "You must fill in a path to fetch the server configuration from";
+ }
+ else if(autoLocalRuntimeCombo.getSelectionIndex() == -1) {
error = "Please select a local runtime. The created server will be of the same
version as the local runtime.";
+ }
} else if( hardCodeServerDetails.getSelection()) {
- int index = localRuntimeCombo.getSelectionIndex();
- complete = index != -1 && !serverHomeText.getText().equals("")
&& !serverConfigText.getText().equals("");
- if( !complete )
+ if (serverHomeText.getText().equals("")) {
+ error = "You must set a server home directory";
+ }
+ else if (serverConfigText.getText().equals("")) {
+ error = "You must select a server configuration";
+ }
+ else if (localRuntimeCombo.getSelectionIndex() == -1) {
error = "Please select a local runtime. The created server will be of the same
version as the local runtime.";
+ }
}
}
setErrorMessage(error);
Show replies by date