Author: adietish
Date: 2012-02-15 18:25:45 -0500 (Wed, 15 Feb 2012)
New Revision: 38791
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
Log:
[JBIDE-10914] disabling the whole application configuration widgets again if you check
*use existing* since this issue turned out to be invalid
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-02-15
23:15:44 UTC (rev 38790)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-02-15
23:25:45 UTC (rev 38791)
@@ -68,6 +68,7 @@
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
@@ -79,6 +80,7 @@
import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
import org.jboss.tools.openshift.express.internal.ui.utils.StringUtils;
import org.jboss.tools.openshift.express.internal.ui.utils.UIUtils;
+import org.jboss.tools.openshift.express.internal.ui.utils.UIUtils.IWidgetVisitor;
import org.jboss.tools.openshift.express.internal.ui.wizard.CreationLogDialog.LogEntry;
import com.openshift.express.client.Cartridge;
@@ -364,10 +366,13 @@
existingAppNameText.setEnabled(useExisting);
browseAppsButton.setEnabled(useExisting);
- newAppNameLabel.setEnabled(!useExisting);
- newAppNameText.setEnabled(!useExisting);
- newAppTypeLabel.setEnabled(!useExisting);
- newAppCartridgeCombo.setEnabled(!useExisting);
+ UIUtils.doForAllChildren(new IWidgetVisitor() {
+
+ @Override
+ public void visit(Control control) {
+ control.setEnabled(!useExisting);
+ }
+ }, newAppConfigurationGroup);
}
private void fillCartridgesCombo(DataBindingContext dbc, Combo cartridgesCombo) {
Show replies by date