Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-06-08 20:15:22 -0400
committerspingel2010-06-08 20:15:22 -0400
commita2d9ef55f67cf98607e97aa77020ae1d83297182 (patch)
tree3b4c8ab26e2608ac174093c398bf7fcc11314c29
parentf6f486ef4d5448b64067844beebbde9fe5df2acc (diff)
downloadorg.eclipse.mylyn.tasks-a2d9ef55f67cf98607e97aa77020ae1d83297182.tar.gz
org.eclipse.mylyn.tasks-a2d9ef55f67cf98607e97aa77020ae1d83297182.tar.xz
org.eclipse.mylyn.tasks-a2d9ef55f67cf98607e97aa77020ae1d83297182.zip
VERIFIED - bug 314166: improve scheduled presentation bins and sort order
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314166
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskScheduleContentProvider.java20
1 files changed, 7 insertions, 13 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 2994c9fd5..c484fb40c 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
@@ -70,7 +70,7 @@ public class TaskScheduleContentProvider extends TaskListContentProvider impleme
END_OF_TIME = TaskActivityUtil.getCalendar();
END_OF_TIME.add(Calendar.YEAR, 5000);
END_OF_TIME.getTime();
- unscheduled = new Unscheduled(taskActivityManager, new DateRange(END_OF_TIME));
+ unscheduled = new Unscheduled();
INCOMING_TIME = TaskActivityUtil.getCalendar();
INCOMING_TIME.setTimeInMillis(END_OF_TIME.getTimeInMillis() - 1);
@@ -221,23 +221,17 @@ public class TaskScheduleContentProvider extends TaskListContentProvider impleme
// ignore
}
- public class Unscheduled extends ScheduledTaskContainer {
+ public class Unscheduled extends StateTaskContainer {
- public Unscheduled(TaskActivityManager activityManager, DateRange range) {
- super(activityManager, range, Messages.TaskScheduleContentProvider_Unscheduled);
+ public Unscheduled() {
+ super(new DateRange(END_OF_TIME), Messages.TaskScheduleContentProvider_Unscheduled);
}
@Override
- public Collection<ITask> getChildren() {
- Set<ITask> children = new HashSet<ITask>();
- for (AbstractTask task : TasksUiPlugin.getTaskList().getAllTasks()) {
- if (task.getDueDate() == null && task.getScheduledForDate() == null && !task.isCompleted()
- && task.getSynchronizationState().isSynchronized()) {
- children.add(task);
- }
- }
- return children;
+ protected boolean select(ITask task) {
+ return task.getSynchronizationState() == SynchronizationState.SYNCHRONIZED && !task.isCompleted();
}
+
}
private abstract class StateTaskContainer extends ScheduledTaskContainer {

Back to the top