Author: rob.stryker(a)jboss.com
Date: 2011-02-24 01:18:39 -0500 (Thu, 24 Feb 2011)
New Revision: 29306
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 to maintenance branch
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-02-24
06:05:34 UTC (rev 29305)
+++
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-24
06:18:39 UTC (rev 29306)
@@ -248,17 +248,25 @@
private void verifyPageComplete() {
boolean complete = true;
+ String error = null;
if( createServer.getSelection()) {
if( deployOnlyRadio.getSelection()) {
complete = !deployFolderText.getText().equals("");
+ if( !complete )
+ error = "The deploy folder must not be empty";
} else if( autoScanCheck.getSelection()) {
int index = autoLocalRuntimeCombo.getSelectionIndex();
complete = index != -1 && !remoteDetailsLoc.getText().equals("");
+ if( !complete )
+ 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 )
+ error = "Please select a local runtime. The created server will be of the same
version as the local runtime.";
}
}
+ setErrorMessage(error);
setPageComplete(complete);
}
Show replies by date