Author: adietish
Date: 2011-12-07 08:33:52 -0500 (Wed, 07 Dec 2011)
New Revision: 37055
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
Log:
[JBIDE-10171] now disabling the label "Existing Project", too, if the user has
chosen a non-jbossas-70 application
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-12-07
13:10:47 UTC (rev 37054)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-12-07
13:33:52 UTC (rev 37055)
@@ -125,6 +125,11 @@
existingProjectLabel.setText("Existing Project");
GridDataFactory
.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(existingProjectLabel);
+ ValueBindingBuilder
+ .bind(WidgetProperties.enabled().observe(existingProjectLabel))
+ .notUpdating(newProjectObservable)
+ .converting(new InvertingBooleanConverter())
+ .in(dbc);
Text newProjectText = new Text(projectGroup, SWT.BORDER);
newProjectText.setEditable(false);
GridDataFactory.fillDefaults()
@@ -472,8 +477,8 @@
*/
if (Boolean.TRUE.equals(newProjectObservable.getValue())) {
return ValidationStatus.ok();
- }
-
+ }
+
if (newProjectNameObservable.getValue() != null
&& (!((String) newProjectNameObservable.getValue()).isEmpty())) {
return ValidationStatus.ok();
Show replies by date