Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-12-12 20:16:25 -0500
committerrelves2006-12-12 20:16:25 -0500
commitb2e6278d67beee6a1147548bc54df5a72d7ec475 (patch)
tree6a218525d7357e49b1d5e980219c4d3ab6ff6de1
parentc5aff4a79ec1f9c2b4406fc905715431bc63dec6 (diff)
downloadorg.eclipse.mylyn.tasks-b2e6278d67beee6a1147548bc54df5a72d7ec475.tar.gz
org.eclipse.mylyn.tasks-b2e6278d67beee6a1147548bc54df5a72d7ec475.tar.xz
org.eclipse.mylyn.tasks-b2e6278d67beee6a1147548bc54df5a72d7ec475.zip
NEW - bug 166088: Cannot set focus to bug editor via keybinding
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166088
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
index 61d4318ad..7875d9549 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
@@ -74,7 +74,7 @@ public class TaskEditor extends FormEditor {
private IEditorPart contentOutlineProvider = null;
- private int browserPageIndex;
+ private int browserPageIndex = -1;
public TaskEditor() {
super();
@@ -288,11 +288,13 @@ public class TaskEditor extends FormEditor {
@Override
public void setFocus() {
- if (this.getActivePage() > -1) {
+ if (this.getActivePage() > -1 && this.getActivePage() != browserPageIndex) {
IFormPage page = this.getPages()[this.getActivePage()];
if (page != null) {
page.setFocus();
}
+ } else if(this.getActivePage() == browserPageIndex) {
+ webBrowser.setFocus();
}
}

Back to the top