Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2009-10-01 15:56:06 -0400
committersminto2009-10-01 15:56:06 -0400
commit056183deebeee9808033cc2f5b2519d101bc2653 (patch)
tree2302956e15adb05769c0ce7609ed9dbd81780484 /org.eclipse.mylyn.tasks.core
parent675a3577aa7970e588da385dd8820781f92ed171 (diff)
downloadorg.eclipse.mylyn.tasks-056183deebeee9808033cc2f5b2519d101bc2653.tar.gz
org.eclipse.mylyn.tasks-056183deebeee9808033cc2f5b2519d101bc2653.tar.xz
org.eclipse.mylyn.tasks-056183deebeee9808033cc2f5b2519d101bc2653.zip
NEW - bug 166272: Deleted tasks are not removed from task history
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166272
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
index 9172aefa8..0915842a0 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
@@ -29,6 +29,7 @@ import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.core.StatusHandler;
+import org.eclipse.mylyn.internal.tasks.core.TaskContainerDelta.Kind;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITaskActivationListener;
import org.eclipse.mylyn.tasks.core.ITaskActivityListener;
@@ -78,6 +79,9 @@ public class TaskActivityManager implements ITaskActivityManager {
for (TaskContainerDelta taskContainerDelta : containers) {
if (taskContainerDelta.getKind() == TaskContainerDelta.Kind.ROOT) {
reloadPlanningData();
+ } else if (!taskContainerDelta.isTransient() && Kind.DELETED == taskContainerDelta.getKind()
+ && taskContainerDelta.getElement() instanceof ITask && taskActivationHistory != null) {
+ taskActivationHistory.removeTask((ITask) taskContainerDelta.getElement());
}
}
}
@@ -103,7 +107,6 @@ public class TaskActivityManager implements ITaskActivityManager {
* Set the first day of the week (Calendar.SUNDAY | Calendar.MONDAY)
*
* @see http://en.wikipedia.org/wiki/Days_of_the_week#First_day_of_the_week
- *
* @param startDay
* (Calendar.SUNDAY | Calendar.MONDAY)
*/

Back to the top