### Eclipse Workspace Patch 1.0 #P org.jboss.tools.deltacloud.integration Index: src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java =================================================================== --- src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java (revision 29564) +++ src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java (working copy) @@ -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);