Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-03-05 04:34:24 -0500
committerspingel2011-03-05 04:34:24 -0500
commit2a587c3ca490979be8ac4c5eef173307781e64a3 (patch)
treec64d52d73beff2a10db4ea85bfa4d1c6c370b249
parent618b49eac9c0635bf85b76af9c6f632b044abcfe (diff)
downloadorg.eclipse.mylyn.incubator-2a587c3ca490979be8ac4c5eef173307781e64a3.tar.gz
org.eclipse.mylyn.incubator-2a587c3ca490979be8ac4c5eef173307781e64a3.tar.xz
org.eclipse.mylyn.incubator-2a587c3ca490979be8ac4c5eef173307781e64a3.zip
NEW - bug 334962: filter subtasks of tasks not matched by queries
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334962
-rw-r--r--org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java
index e7f39fa9..a7e386d2 100644
--- a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java
+++ b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/IncomingTaskListContentProvider.java
@@ -15,6 +15,7 @@ import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
+import org.eclipse.jface.viewers.TreePath;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.AbstractTaskContainer;
import org.eclipse.mylyn.internal.tasks.core.Person;
@@ -71,6 +72,11 @@ public class IncomingTaskListContentProvider extends TaskListContentProvider {
}
@Override
+ public Object[] getChildren(TreePath parentPath) {
+ return getChildren(parentPath.getLastSegment());
+ }
+
+ @Override
public Object[] getChildren(Object parent) {
Set<ITask> children = new HashSet<ITask>();
if (parent instanceof Person) {

Back to the top