Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-02-16 18:54:59 -0500
committerrelves2007-02-16 18:54:59 -0500
commit77a8a63d395ff75acf9360752c998cadbd20e8f3 (patch)
treee14cfc6f36787e4f278cf67aeb668f476b999cc1
parent2b41d2417d3016deed243c3ff418bdb0e1680f86 (diff)
downloadorg.eclipse.mylyn.tasks-77a8a63d395ff75acf9360752c998cadbd20e8f3.tar.gz
org.eclipse.mylyn.tasks-77a8a63d395ff75acf9360752c998cadbd20e8f3.tar.xz
org.eclipse.mylyn.tasks-77a8a63d395ff75acf9360752c998cadbd20e8f3.zip
NEW - bug 158921: improve task editor information density
https://bugs.eclipse.org/bugs/show_bug.cgi?id=158921
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
index a3a0af6b9..f9a9367cb 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
@@ -203,18 +203,12 @@ public class TasksUiUtil {
.getRepositoryTaskData(repositoryTask.getHandleIdentifier()));
}
TasksUiUtil.openEditor(task, true, false);
- TasksUiPlugin.getSynchronizationManager().setTaskRead(repositoryTask, true);
TasksUiPlugin.getSynchronizationManager().synchronize(connector, repositoryTask, false, null);
} else {
Job refreshJob = TasksUiPlugin.getSynchronizationManager().synchronize(connector,
repositoryTask, true, new JobChangeAdapter() {
@Override
public void done(IJobChangeEvent event) {
- // Mark read here too so that hits get
- // marked as read upon opening
- // TODO: if synch job failed, don't mark
- // read
- TasksUiPlugin.getSynchronizationManager().setTaskRead(repositoryTask, true);
TasksUiUtil.openEditor(task, false);
}
});
@@ -270,6 +264,9 @@ public class TasksUiUtil {
TaskEditor taskEditor = (TaskEditor) part;
taskEditor.setFocusOfActivePage();
}
+ if (task instanceof AbstractRepositoryTask) {
+ TasksUiPlugin.getSynchronizationManager().setTaskRead((AbstractRepositoryTask) task, true);
+ }
}
}
});
@@ -278,6 +275,9 @@ public class TasksUiUtil {
if (window != null) {
IWorkbenchPage page = window.getActivePage();
openEditor(editorInput, TaskListPreferenceConstants.TASK_EDITOR_ID, page);
+ if (task instanceof AbstractRepositoryTask) {
+ TasksUiPlugin.getSynchronizationManager().setTaskRead((AbstractRepositoryTask) task, true);
+ }
} else {
MylarStatusHandler.log("Unable to open editor for " + task.getSummary(), TasksUiUtil.class);
}

Back to the top