Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2008-09-08 19:14:02 -0400
committerrelves2008-09-08 19:14:02 -0400
commitb421a075d10f054487e8f02380e500ccf776091d (patch)
tree2d65883152ce70b582de3bd6bfaa2465bfcbb564
parentd50d5ad8e20a5313696d889a639ce236da35d588 (diff)
downloadorg.eclipse.mylyn.tasks-b421a075d10f054487e8f02380e500ccf776091d.tar.gz
org.eclipse.mylyn.tasks-b421a075d10f054487e8f02380e500ccf776091d.tar.xz
org.eclipse.mylyn.tasks-b421a075d10f054487e8f02380e500ccf776091d.zip
NEW - bug 238678: The workweek progress bar appears to be broken in 3.0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=238678
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java8
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java2
2 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
index 8e0912e0f..a1eb903dd 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
@@ -761,8 +761,12 @@ public class TaskActivityManager implements ITaskActivityManager {
return false;
}
- public Set<ITask> getScheduledForThisWeek() {
- return getScheduledTasks(TaskActivityUtil.getCurrentWeek());
+ /**
+ * Note: Returns all task scheduled for a SPECIFIC day this week. Not those in the "This Week" / Someday bin
+ */
+ public Set<ITask> getScheduledForADayThisWeek() {
+ DateRange current = TaskActivityUtil.getCurrentWeek();
+ return getScheduledTasks(current.getStartDate(), current.getEndDate());
}
public TaskActivationHistory getTaskActivationHistory() {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
index e8d1eaf6c..890dbfe7a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
@@ -220,7 +220,7 @@ public class TaskListFilteredTree extends AbstractFilteredTree {
return;
}
- Set<ITask> tasksThisWeek = TasksUiPlugin.getTaskActivityManager().getScheduledForThisWeek();
+ Set<ITask> tasksThisWeek = TasksUiPlugin.getTaskActivityManager().getScheduledForADayThisWeek();
totalTasks = tasksThisWeek.size();
completeTime = 0;

Back to the top