Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-05-18 20:07:32 -0400
committerJaxsun McCarthy Huggan2016-06-14 18:49:22 -0400
commit58364eba5fc175eb77d98c96f30976bd60b22b39 (patch)
tree2ef4249defd01550c4818bfdf280c752318d98a1
parent5a6fd14e29e39048c4421e89d0d760938da4e398 (diff)
downloadorg.eclipse.mylyn.tasks-58364eba5fc175eb77d98c96f30976bd60b22b39.tar.gz
org.eclipse.mylyn.tasks-58364eba5fc175eb77d98c96f30976bd60b22b39.tar.xz
org.eclipse.mylyn.tasks-58364eba5fc175eb77d98c96f30976bd60b22b39.zip
319889: TaskCompletionFilter hides Completed category
Change-Id: I6d7731f7dc8a7291f39142f6c0483a086a698716 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=319889 Signed-off-by: Jaxsun McCarthy Huggan <jaxsun.mccarthy@tasktop.com>
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskCompletionFilter.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskCompletionFilter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskCompletionFilter.java
index 381a5c8eb..2eeb24505 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskCompletionFilter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskCompletionFilter.java
@@ -14,6 +14,7 @@ import java.util.Collection;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.ui.views.PresentationFilter;
+import org.eclipse.mylyn.internal.tasks.ui.views.TaskScheduleContentProvider.Completed;
import org.eclipse.mylyn.tasks.core.ITask;
/**
@@ -33,10 +34,14 @@ public class TaskCompletionFilter extends AbstractTaskListFilter {
return true;
}
}
- // hide completed task
+ // hide completed task
return false;
}
}
+ // hide the completed category when not showing completed tasks
+ if (element instanceof Completed) {
+ return false;
+ }
return true;
}

Back to the top