Author: adietish
Date: 2012-02-15 16:11:20 -0500 (Wed, 15 Feb 2012)
New Revision: 38777
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java
Log:
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-02-15
21:07:01 UTC (rev 38776)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java 2012-02-15
21:11:20 UTC (rev 38777)
@@ -46,6 +46,7 @@
import org.jboss.tools.openshift.egit.core.EGitUtils;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
import org.jboss.tools.openshift.express.internal.ui.utils.StringUtils;
+import org.jboss.tools.openshift.express.internal.ui.utils.UIUtils;
/**
* @author Andre Dietisheim
@@ -119,13 +120,7 @@
.notUpdating(useDefaultRepoModelObservable).converting(new
InvertingBooleanConverter()).in(dbc);
// move focus to the project location text control when not choosing the
// 'Use default location' option.
- useDefaultRepoPathButton.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- repoPathText.setFocus();
- repoPathText.selectAll();
- }
- });
+ UIUtils.focusOnSelection(useDefaultRepoPathButton, repoPathText);
dbc.addValidationStatusProvider(
new RepoPathValidationStatusProvider(isDefaultRepoObservable, repoPathObservable));