Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-01-11 19:15:45 +0000
committerspingel2011-01-11 19:15:45 +0000
commita5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953 (patch)
treec2b0833bb4fce9957eb074175d28c731a3ca7da4 /org.eclipse.mylyn.tasks.ui
parent4fb4f49101946473a6149349dc4c767badc8f813 (diff)
downloadorg.eclipse.mylyn.tasks-a5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953.tar.gz
org.eclipse.mylyn.tasks-a5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953.tar.xz
org.eclipse.mylyn.tasks-a5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953.zip
NEW - bug 331571: [api] tasks framework should invoke updateTaskFromTaskData() for new tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331571
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
index ff46733c0..0aafd3fea 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
@@ -831,6 +831,9 @@ public class TasksUiInternal {
}
ITaskDataWorkingCopy workingCopy = TasksUi.getTaskDataManager().createWorkingCopy(task, taskData);
workingCopy.save(null, null);
+ TaskRepository taskRepository = TasksUi.getRepositoryManager().getRepository(taskData.getConnectorKind(),
+ taskData.getRepositoryUrl());
+ connector.updateNewTaskFromTaskData(taskRepository, task, taskData);
TaskRepository localTaskRepository = TasksUi.getRepositoryManager().getRepository(task.getConnectorKind(),
task.getRepositoryUrl());
TaskEditorInput editorInput = new TaskEditorInput(localTaskRepository, task);

Back to the top