summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-02-24 07:40:53 (EST)
committerSteffen Pingel2012-02-24 07:40:53 (EST)
commit14c951535f824a1031036fb4e456605bdeb7fd1e (patch)
tree07596eb47ee599f7a55a3814ed146dac5a537892
parentdd272410ed09dec302025f9fc5ffcf65ab092b77 (diff)
downloadorg.eclipse.mylyn.tasks-14c951535f824a1031036fb4e456605bdeb7fd1e.zip
org.eclipse.mylyn.tasks-14c951535f824a1031036fb4e456605bdeb7fd1e.tar.gz
org.eclipse.mylyn.tasks-14c951535f824a1031036fb4e456605bdeb7fd1e.tar.bz2
NEW - bug 358554: [api] provide an extensible store for task-related
information https://bugs.eclipse.org/bugs/show_bug.cgi?id=358554 Change-Id: I102ca9e1178ed0267cf49f0e2d872f1382429f24
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ClearContextHandler.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskMigrator.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ClearContextHandler.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ClearContextHandler.java
index 46373bb..3aab00b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ClearContextHandler.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/context/ClearContextHandler.java
@@ -39,8 +39,7 @@ public class ClearContextHandler extends AbstractTaskHandler {
return;
}
- TasksUiPlugin.getDefault();
- TasksUiPlugin.getContextStore().deleteContext(task);
+ TasksUiPlugin.getContextStore().clearContext(task);
TasksUiInternal.getTaskList().notifyElementChanged(task);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskMigrator.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskMigrator.java
index 6cf7ff1..370ca6a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskMigrator.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskMigrator.java
@@ -188,7 +188,7 @@ public class TaskMigrator {
}
// migrate context
- TasksUiPlugin.getContextStore().copyContext(oldTask, newTask);
+ TasksUiPlugin.getContextStore().moveContext(oldTask, newTask);
}
public static boolean isActive() {