Author: adietish
Date: 2012-07-31 11:13:41 -0400 (Tue, 31 Jul 2012)
New Revision: 42816
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java
Log:
[JBIDE-12241] revalidating repo path when page gets activated
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java 2012-07-31
15:05:32 UTC (rev 42815)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java 2012-07-31
15:13:41 UTC (rev 42816)
@@ -63,6 +63,7 @@
private Button useDefaultRepoPathButton;
private Text remoteNameText;
private Label remoteNameLabel;
+ private RepoPathValidationStatusProvider repoPathValidator;
public GitCloningSettingsWizardPage(OpenShiftExpressApplicationWizard wizard,
IOpenShiftExpressWizardModel wizardModel) {
super(
@@ -129,7 +130,7 @@
GitCloningSettingsWizardPageModel.PROPERTY_APPLICATION_NAME).observe(pageModel);
final IObservableValue newProjectModelObservable = BeanProperties.value(
GitCloningSettingsWizardPageModel.PROPERTY_NEW_PROJECT).observe(pageModel);
- RepoPathValidationStatusProvider repoPathValidator =
+ this.repoPathValidator =
new RepoPathValidationStatusProvider(repoPathObservable,
applicationNameModelObservable, newProjectModelObservable);
dbc.addValidationStatusProvider(repoPathValidator);
ControlDecorationSupport.create(repoPathValidator, SWT.LEFT | SWT.TOP);
@@ -223,6 +224,7 @@
protected void onPageActivated(DataBindingContext dbc) {
enableWidgets(pageModel.isNewProject());
+ repoPathValidator.forceRevalidate();
}
@Override
@@ -288,6 +290,11 @@
}
return ValidationStatus.ok();
}
+
+ public void forceRevalidate() {
+ revalidate();
+ }
+
}
/**
Show replies by date