Author: rob.stryker(a)jboss.com
Date: 2011-02-03 16:15:04 -0500 (Thu, 03 Feb 2011)
New Revision: 28984
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
JBIDE-8093 - trunk - error messages in launch instance wizard
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-03
21:11:14 UTC (rev 28983)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-02-03
21:15:04 UTC (rev 28984)
@@ -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