Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-25 22:39:15 -0400
committermkersten2007-06-25 22:39:15 -0400
commit0cc86411184e44a32cd31ac1082bc0d191f1b4bd (patch)
treea3efede84fc0dddea55bb0256bde18e6cde763d9
parent5b579dc8932d947b67f1ee755989a4386b56ec25 (diff)
downloadorg.eclipse.mylyn.tasks-0cc86411184e44a32cd31ac1082bc0d191f1b4bd.tar.gz
org.eclipse.mylyn.tasks-0cc86411184e44a32cd31ac1082bc0d191f1b4bd.tar.xz
org.eclipse.mylyn.tasks-0cc86411184e44a32cd31ac1082bc0d191f1b4bd.zip
Incomplete - bug 193059: switch task working set to match active task
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193059
-rw-r--r--org.eclipse.mylyn.tasks.ui/icons/etool16/person-me-narrow.gifbin293 -> 308 bytes
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetUpdater.java31
2 files changed, 26 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/icons/etool16/person-me-narrow.gif b/org.eclipse.mylyn.tasks.ui/icons/etool16/person-me-narrow.gif
index 268540fff..f6b28a3b9 100644
--- a/org.eclipse.mylyn.tasks.ui/icons/etool16/person-me-narrow.gif
+++ b/org.eclipse.mylyn.tasks.ui/icons/etool16/person-me-narrow.gif
Binary files differ
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetUpdater.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetUpdater.java
index 9239ca27d..43aa2a173 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetUpdater.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetUpdater.java
@@ -16,9 +16,12 @@ import java.util.Set;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.mylyn.internal.tasks.core.ScheduledTaskContainer;
import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryQuery;
+import org.eclipse.mylyn.tasks.core.AbstractTask;
import org.eclipse.mylyn.tasks.core.AbstractTaskContainer;
+import org.eclipse.mylyn.tasks.core.ITaskActivityListener;
import org.eclipse.mylyn.tasks.core.ITaskListChangeListener;
import org.eclipse.mylyn.tasks.core.TaskContainerDelta;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
@@ -29,12 +32,18 @@ import org.eclipse.ui.IWorkingSetUpdater;
* @author Eugene Kuleshov
* @author Mik Kersten
*/
-public class TaskWorkingSetUpdater implements IWorkingSetUpdater, ITaskListChangeListener {
+public class TaskWorkingSetUpdater implements IWorkingSetUpdater, ITaskListChangeListener, ITaskActivityListener {
private List<IWorkingSet> workingSets = new ArrayList<IWorkingSet>();
public TaskWorkingSetUpdater() {
TasksUiPlugin.getTaskListManager().getTaskList().addChangeListener(this);
+ TasksUiPlugin.getTaskListManager().addActivityListener(this);
+ }
+
+ public void dispose() {
+ TasksUiPlugin.getTaskListManager().getTaskList().removeChangeListener(this);
+ TasksUiPlugin.getTaskListManager().removeActivityListener(this);
}
public void add(IWorkingSet workingSet) {
@@ -78,10 +87,6 @@ public class TaskWorkingSetUpdater implements IWorkingSetUpdater, ITaskListChang
}
}
- public void dispose() {
- TasksUiPlugin.getTaskListManager().getTaskList().removeChangeListener(this);
- }
-
public void containersChanged(Set<TaskContainerDelta> delta) {
for (TaskContainerDelta taskContainerDelta : delta) {
if (taskContainerDelta.getContainer() instanceof TaskCategory
@@ -109,4 +114,20 @@ public class TaskWorkingSetUpdater implements IWorkingSetUpdater, ITaskListChang
}
}
}
+
+ public void activityChanged(ScheduledTaskContainer week) {
+ // ignore
+ }
+
+ public void taskActivated(AbstractTask task) {
+
+ }
+
+ public void taskDeactivated(AbstractTask task) {
+ // ignore
+ }
+
+ public void taskListRead() {
+ // ignore
+ }
}

Back to the top