summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-05-23 15:48:45 (EDT)
committerGerrit Code Review @ Eclipse.org2013-05-31 13:16:54 (EDT)
commitf0f3e34ca584dc582bdd0670a737315da71b0321 (patch)
treedb313cdad1c358c61e9d1f472cb44d7578185670
parentdd372b0ff771b60311a739f7c260dc8d0000619a (diff)
downloadorg.eclipse.mylyn.tasks-f0f3e34ca584dc582bdd0670a737315da71b0321.zip
org.eclipse.mylyn.tasks-f0f3e34ca584dc582bdd0670a737315da71b0321.tar.gz
org.eclipse.mylyn.tasks-f0f3e34ca584dc582bdd0670a737315da71b0321.tar.bz2
347517: TaskWorkingSetPage should give focus to the tree when it isrefs/changes/89/13089/2
opened Bug: 347517 Change-Id: If4da7e1e903a29113fba141a3ab1d6191a2888b7 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=347517
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetPage.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetPage.java
index 3b1b0a5..5cbec3e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2009 Eugene Kuleshov and others.
+ * Copyright (c) 2004, 2013 Eugene Kuleshov and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -413,7 +413,6 @@ public class TaskWorkingSetPage extends WizardPage implements IWorkingSetPage {
validateInput();
}
});
- text.setFocus();
// text.setBackground(FieldAssistColors.getRequiredFieldBackgroundColor(text));
label = new Label(composite, SWT.WRAP);
@@ -496,6 +495,9 @@ public class TaskWorkingSetPage extends WizardPage implements IWorkingSetPage {
if (workingSet != null) {
text.setText(workingSet.getName());
+ treeViewer.getControl().setFocus();
+ } else {
+ text.setFocus();
}
setPageComplete(false);