Author: xcoulon
Date: 2012-03-02 03:49:53 -0500 (Fri, 02 Mar 2012)
New Revision: 39243
Modified:
branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationSelectionDialog.java
Log:
Fixed - JBIDE-10856
Application selection UI issues
Modified:
branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationSelectionDialog.java
===================================================================
---
branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationSelectionDialog.java 2012-03-02
08:37:09 UTC (rev 39242)
+++
branches/jbosstools-3.3.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationSelectionDialog.java 2012-03-02
08:49:53 UTC (rev 39243)
@@ -39,6 +39,7 @@
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TableViewerColumn;
import org.eclipse.jface.viewers.ViewerCell;
+import org.eclipse.jface.wizard.IWizard;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -64,6 +65,7 @@
private final ApplicationSelectionDialogModel dialogModel;
private final DataBindingContext dbc;
+ private final IWizard wizard;
private TableViewer tableViewer;
public ApplicationSelectionDialog(OpenShiftExpressApplicationWizard wizard, IApplication
selectedApplication,
@@ -71,6 +73,7 @@
super(parentShell);
this.dialogModel = new ApplicationSelectionDialogModel(wizard.getWizardModel());
this.dialogModel.setSelectedApplication(selectedApplication);
+ this.wizard = wizard;
this.dbc = new DataBindingContext();
}
@@ -142,7 +145,7 @@
refreshButton.addSelectionListener(onRefresh(dbc));
Button detailsButton = new Button(dialogArea, SWT.PUSH);
- detailsButton.setText("De&tails");
+ detailsButton.setText("De&tails...");
GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.TOP).grab(false, true).hint(80,
SWT.DEFAULT)
.applyTo(detailsButton);
DataBindingUtils.bindEnablementToValidationStatus(detailsButton, IStatus.OK, dbc,
selectedApplicationBinding);
@@ -241,8 +244,9 @@
return Status.OK_STATUS;
}
- }, null, dbc);
+ }, wizard.getContainer(), dbc);
} catch (Exception e) {
+ Logger.error("Failed to refresh applications list", e);
// ignore
}
}
Show replies by date