Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-02-16 21:11:56 -0500
committerrelves2007-02-16 21:11:56 -0500
commit928535da825634030c1046c75a9767f27941f862 (patch)
tree75066ec472a8c298259427ef0394edce971c172c
parent1c1feaf6b24c1f81312e70ebb50705926f5e611b (diff)
downloadorg.eclipse.mylyn.tasks-928535da825634030c1046c75a9767f27941f862.tar.gz
org.eclipse.mylyn.tasks-928535da825634030c1046c75a9767f27941f862.tar.xz
org.eclipse.mylyn.tasks-928535da825634030c1046c75a9767f27941f862.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/internal/tasks/ui/AddExistingTaskJob.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java
index 35736203a..9c893785b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java
@@ -65,12 +65,16 @@ public class AddExistingTaskJob extends Job {
try {
monitor.beginTask("Retrieving task...", IProgressMonitor.UNKNOWN);
final ITask newTask = connector.createTaskFromExistingKey(repository, taskId);
+
if (newTask instanceof AbstractRepositoryTask) {
+ // TODO: encapsulate in abstract connector
AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask) newTask;
- TasksUiPlugin.getSynchronizationManager().synchronize(connector, repositoryTask, true, null);
- TasksUiPlugin.getSynchronizationManager().setTaskRead(repositoryTask, true);
+ TasksUiPlugin.getDefault().getTaskDataManager().push(newTask.getHandleIdentifier(),
+ repositoryTask.getTaskData());
}
+
if (newTask != null) {
+ TasksUiUtil.refreshAndOpenTaskListElement(newTask);
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
@@ -87,7 +91,6 @@ public class AddExistingTaskJob extends Job {
}
TasksUiPlugin.getTaskListManager().getTaskList().moveToContainer(category, newTask);
taskListView.getViewer().setSelection(new StructuredSelection(newTask));
- TasksUiUtil.openEditor(newTask, false, false);
}
});

Back to the top