From f0f3e34ca584dc582bdd0670a737315da71b0321 Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Thu, 23 May 2013 12:48:45 -0700 Subject: 347517: TaskWorkingSetPage should give focus to the tree when it is opened Bug: 347517 Change-Id: If4da7e1e903a29113fba141a3ab1d6191a2888b7 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=347517 --- .../mylyn/internal/tasks/ui/workingsets/TaskWorkingSetPage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'org.eclipse.mylyn.tasks.ui/src') 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 3b1b0a52c..5cbec3e4c 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); -- cgit v1.2.3