Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-03-10 03:44:50 -0500
committerspingel2011-03-10 03:44:50 -0500
commit416ec8340bbe29f7ef1ae583173cf60939eb3746 (patch)
treeddd3fe61730d7c766dc32257db40a64a912fd8a1
parentbf812266f8d7a1f266fef63d25debec8114f0cde (diff)
downloadorg.eclipse.mylyn.tasks-416ec8340bbe29f7ef1ae583173cf60939eb3746.tar.gz
org.eclipse.mylyn.tasks-416ec8340bbe29f7ef1ae583173cf60939eb3746.tar.xz
org.eclipse.mylyn.tasks-416ec8340bbe29f7ef1ae583173cf60939eb3746.zip
NEW - bug 326432: Add "Clear" action to the Unmatched container
https://bugs.eclipse.org/bugs/show_bug.cgi?id=326432
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/DeleteAction.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/DeleteAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/DeleteAction.java
index 7c5e68281..d17326f6d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/DeleteAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/DeleteAction.java
@@ -269,7 +269,13 @@ public class DeleteAction extends BaseSelectionListenerAction {
// support both the unmatched and the unsubmitted
if (toDelete.size() == 1) {
// loop to ensure that all subtasks are deleted as well
- performDeletion(((AutomaticRepositoryTaskContainer) selectedObject).getChildren());
+ for (int i = 0; i < 5; i++) {
+ Collection<ITask> children = ((AutomaticRepositoryTaskContainer) selectedObject).getChildren();
+ if (children.isEmpty()) {
+ break;
+ }
+ performDeletion(children);
+ }
}
}
}

Back to the top