Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-06-08 19:21:38 -0400
committerspingel2010-06-08 19:21:38 -0400
commitf6f486ef4d5448b64067844beebbde9fe5df2acc (patch)
tree937aad9dfa429cf05367526a7d97bf4c2a6d696b /org.eclipse.mylyn.tasks.ui
parentcf4482b773431d43b73cb81cb6157219e1ad02cd (diff)
downloadorg.eclipse.mylyn.tasks-f6f486ef4d5448b64067844beebbde9fe5df2acc.tar.gz
org.eclipse.mylyn.tasks-f6f486ef4d5448b64067844beebbde9fe5df2acc.tar.xz
org.eclipse.mylyn.tasks-f6f486ef4d5448b64067844beebbde9fe5df2acc.zip
RESOLVED - bug 314166: improve scheduled presentation bins and sort order
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314166
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskScheduleContentProvider.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskScheduleContentProvider.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskScheduleContentProvider.java
index fb8a2326f..2994c9fd5 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskScheduleContentProvider.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskScheduleContentProvider.java
@@ -260,6 +260,11 @@ public class TaskScheduleContentProvider extends TaskListContentProvider impleme
}
private boolean include(ITask task) {
+ // ensure that completed tasks always show somewhere
+ if (task.isCompleted()) {
+ return true;
+ }
+
DateRange scheduledForDate = ((AbstractTask) task).getScheduledForDate();
// in focused mode fewer container are displayed, include additional tasks
@@ -293,11 +298,7 @@ public class TaskScheduleContentProvider extends TaskListContentProvider impleme
return true;
}
}
-
- if(task.isCompleted()){
- // make sure that all completed tasks are included
- return true;
- }
+
return false;
}

Back to the top