Author: adietish
Date: 2012-05-07 09:20:14 -0400 (Mon, 07 May 2012)
New Revision: 40819
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
Log:
[JBIDE-10851] displaying page description when mandatory input fields/combos are empty
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-05-07
13:10:41 UTC (rev 40818)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-05-07
13:20:14 UTC (rev 40819)
@@ -119,7 +119,7 @@
public ApplicationConfigurationWizardPage(IWizard wizard,
OpenShiftExpressApplicationWizardModel wizardModel) {
super("Setup OpenShift Application",
- "Enter a name and select a type for your new OpenShift application.",
+ "Select an existing or create a new OpenShift Application.",
"Setup OpenShift Application", wizard);
try {
this.pageModel = new ApplicationConfigurationWizardPageModel(wizardModel);
@@ -947,8 +947,7 @@
return ValidationStatus.ok();
}
if (applicationName.isEmpty()) {
- return ValidationStatus.cancel(
- "Select an alphanumerical name and a type for the application to
create.");
+ return ValidationStatus.cancel(getDescription());
}
if (!StringUtils.isAlphaNumeric(applicationName)) {
return ValidationStatus.error(
@@ -997,8 +996,7 @@
return ValidationStatus.ok();
}
if (StringUtils.isEmpty(cartridge)) {
- return OpenShiftUIActivator
- .createCancelStatus("Select an alphanumerical name and a type for the
application to create.");
+ return ValidationStatus.cancel(getDescription());
}
return ValidationStatus.ok();
}
Show replies by date