Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-02-02 21:14:44 -0500
committermkersten2007-02-02 21:14:44 -0500
commit560f3c15a9afdbc96193c470d97fba4d4c5afa74 (patch)
treeb16cad87f9c5aca1bebb0752761947e6fb0ac28d /org.eclipse.mylyn.tasks.core
parent659b4103bc130df902f8a7b26641b0fa8c8c4513 (diff)
downloadorg.eclipse.mylyn.tasks-560f3c15a9afdbc96193c470d97fba4d4c5afa74.tar.gz
org.eclipse.mylyn.tasks-560f3c15a9afdbc96193c470d97fba4d4c5afa74.tar.xz
org.eclipse.mylyn.tasks-560f3c15a9afdbc96193c470d97fba4d4c5afa74.zip
NEW - bug 135668: [activity] support integrating activity monitoring outside of the workbench
https://bugs.eclipse.org/bugs/show_bug.cgi?id=135668
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
index 69aa7b39b..3d3e19891 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
@@ -20,6 +20,7 @@ import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.concurrent.CopyOnWriteArraySet;
import org.eclipse.mylar.context.core.MylarStatusHandler;
@@ -34,7 +35,7 @@ public class TaskList {
private int lastTaskNum = 0;
- private List<ITaskListChangeListener> changeListeners = new ArrayList<ITaskListChangeListener>();
+ private Set<ITaskListChangeListener> changeListeners = new CopyOnWriteArraySet<ITaskListChangeListener>();
private Map<String, ITask> tasks;
@@ -487,8 +488,8 @@ public class TaskList {
*
* @return unmodifiable collection of ITaskActivityListeners
*/
- public List<ITaskListChangeListener> getChangeListeners() {
- return Collections.unmodifiableList(changeListeners);
+ public Set<ITaskListChangeListener> getChangeListeners() {
+ return Collections.unmodifiableSet(changeListeners);
}
/**

Back to the top