[jbosstools-commits] JBoss Tools SVN: r40848 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue May 8 10:30:32 EDT 2012


Author: adietish
Date: 2012-05-08 10:30:32 -0400 (Tue, 08 May 2012)
New Revision: 40848

Modified:
   trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
Log:
[JBIDE-11796] passing dbc to WizardUtils#runInWizard(job, dbc) so that button-enablement is restored correctly after job is finished

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-08 14:28:08 UTC (rev 40847)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java	2012-05-08 14:30:32 UTC (rev 40848)
@@ -174,7 +174,7 @@
 
 		this.browseAppsButton = new Button(existingAppSelectionGroup, SWT.NONE);
 		browseAppsButton.setText("Browse...");
-		browseAppsButton.addSelectionListener(onBrowseApps());
+		browseAppsButton.addSelectionListener(onBrowseApps(dbc));
 		GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).hint(100, SWT.DEFAULT).span(1, 1).grab(false, false)
 				.applyTo(browseAppsButton);
 		// observe the list of application, get notified once they have been
@@ -203,7 +203,7 @@
 		adapter.setProposals(pageModel.getApplicationNames());
 	}
 
-	private SelectionListener onBrowseApps() {
+	private SelectionListener onBrowseApps(final DataBindingContext dbc) {
 		return new SelectionAdapter() {
 
 			@Override
@@ -232,7 +232,7 @@
 							}
 						};
 						try {
-							WizardUtils.runInWizard(j, getContainer());
+							WizardUtils.runInWizard(j, getContainer(), dbc);
 						} catch(InvocationTargetException ite) {
 						} catch(InterruptedException ie) {
 						}



More information about the jbosstools-commits mailing list