Author: adietish
Date: 2011-10-05 13:08:37 -0400 (Wed, 05 Oct 2011)
New Revision: 35382
Modified:
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/DataBindingUtils.java
Log:
[JBIDE-9793] fixed delete button enablement
Modified:
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java
===================================================================
---
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java 2011-10-05
17:07:37 UTC (rev 35381)
+++
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java 2011-10-05
17:08:37 UTC (rev 35382)
@@ -114,13 +114,13 @@
Button deleteButton = new Button(container, SWT.PUSH);
deleteButton.setText("&Delete");
GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).hint(80,
30).applyTo(deleteButton);
- DataBindingUtils.bindEnablementToValidationStatus(deleteButton, dbc,
selectedApplicationBinding);
+ DataBindingUtils.bindEnablementToValidationStatus(deleteButton, IStatus.INFO, dbc,
selectedApplicationBinding);
deleteButton.addSelectionListener(onDelete(dbc));
Button detailsButton = new Button(container, SWT.PUSH);
detailsButton.setText("De&tails");
GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.CENTER).hint(80,
30).applyTo(detailsButton);
- DataBindingUtils.bindEnablementToValidationStatus(detailsButton, dbc, IStatus.INFO,
selectedApplicationBinding);
+ DataBindingUtils.bindEnablementToValidationStatus(detailsButton, IStatus.INFO, dbc ,
selectedApplicationBinding);
detailsButton.addSelectionListener(onDetails(dbc));
}
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/DataBindingUtils.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/DataBindingUtils.java 2011-10-05
17:07:37 UTC (rev 35381)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/databinding/DataBindingUtils.java 2011-10-05
17:08:37 UTC (rev 35382)
@@ -46,11 +46,11 @@
*/
public static void bindEnablementToValidationStatus(final Control control,
DataBindingContext dbc, Binding... bindings) {
- bindEnablementToValidationStatus(control, dbc, IStatus.ERROR, bindings);
+ bindEnablementToValidationStatus(control, IStatus.ERROR, dbc, bindings);
}
- public static void bindEnablementToValidationStatus(final Control control,
- DataBindingContext dbc, int severity, Binding... bindings) {
+ public static void bindEnablementToValidationStatus(final Control control, int
severity,
+ DataBindingContext dbc, Binding... bindings) {
dbc.bindValue(
WidgetProperties.enabled().observe(control),
createAggregateValidationStatus(dbc, bindings),
Show replies by date