Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2010-06-08 19:18:08 +0000
committermkersten2010-06-08 19:18:08 +0000
commit92c3e14e1b36e450cd3b44d4894e8b6872494e81 (patch)
treea3fb8964dbc34723b0a0028f2aa23c1b1dadf38f /org.eclipse.mylyn.tasks.core
parent9f1f53d0d2295b4bca5f55b37f423673c1e6fd1a (diff)
downloadorg.eclipse.mylyn.tasks-92c3e14e1b36e450cd3b44d4894e8b6872494e81.tar.gz
org.eclipse.mylyn.tasks-92c3e14e1b36e450cd3b44d4894e8b6872494e81.tar.xz
org.eclipse.mylyn.tasks-92c3e14e1b36e450cd3b44d4894e8b6872494e81.zip
RESOLVED - bug 316166: provide a colour setting for tasks that are overdue but not owned by the user
https://bugs.eclipse.org/bugs/show_bug.cgi?id=316166
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java11
1 files changed, 11 insertions, 0 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 9ad6bfcc8..cc9fa245b 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
@@ -660,11 +660,22 @@ public class TaskActivityManager implements ITaskActivityManager {
return false;
}
+ /**
+ * Tests if the task is owned by the current user and overdue.
+ */
public boolean isOverdue(ITask task) {
return (!task.isCompleted() && task.getDueDate() != null && new Date().after(task.getDueDate()))
&& repositoryManager.isOwnedByUser(task);
}
+ /**
+ * Tests whether the task is owned by another user and overdue.
+ */
+ public boolean isOverdueForOther(ITask task) {
+ return (!task.isCompleted() && task.getDueDate() != null && new Date().after(task.getDueDate()))
+ && !repositoryManager.isOwnedByUser(task);
+ }
+
public boolean isOwnedByUser(ITask task) {
return repositoryManager.isOwnedByUser(task);
}

Back to the top