Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-06-14 11:44:23 -0400
committerGerrit Code Review @ Eclipse.org2013-08-26 12:52:14 -0400
commita9e5559103c66f88e7201426ffb1fb49466d1905 (patch)
treee911da36559198b21567e0cd3154a1a00e544146 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parentb6df73eaa3a745d5d8eafad6461b9445274ff059 (diff)
downloadorg.eclipse.mylyn.tasks-a9e5559103c66f88e7201426ffb1fb49466d1905.tar.gz
org.eclipse.mylyn.tasks-a9e5559103c66f88e7201426ffb1fb49466d1905.tar.xz
org.eclipse.mylyn.tasks-a9e5559103c66f88e7201426ffb1fb49466d1905.zip
337999: Undo mark as read command
Bug: 337999 Change-Id: I1694d6dae1a1d0808a3f7d18debd3129131580d2 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=337999 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com> Also-by: Sam Davis <sam.davis@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java
index efd35a50f..40897abf7 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataManager.java
@@ -458,12 +458,13 @@ public class TaskDataManager implements ITaskDataManager {
}
/**
- * @param task
+ * @param itask
* repository task to mark as read or unread
* @param read
* true to mark as read, false to mark as unread
+ * @return true if synchronization state has been changed
*/
- public void setTaskRead(final ITask itask, final boolean read) {
+ public boolean setTaskRead(final ITask itask, final boolean read) {
final AbstractTask task = (AbstractTask) itask;
Assert.isNotNull(task);
final boolean changed[] = new boolean[1];
@@ -504,6 +505,7 @@ public class TaskDataManager implements ITaskDataManager {
if (changed[0]) {
taskList.notifyElementChanged(task);
}
+ return changed[0];
}
void putEdits(final ITask itask, final TaskData editsData) throws CoreException {

Back to the top