Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-03-04 01:52:05 +0000
committerspingel2011-03-04 01:52:05 +0000
commit506903f9a34ac54f97b60bdae327d2f22503f4f0 (patch)
treed1248899e04f78b6dceea239a94832de632691a2 /org.eclipse.mylyn.tasks.core
parentc6199eb84a3f25a9acb7985a4d4f8d497c15b37d (diff)
downloadorg.eclipse.mylyn.tasks-506903f9a34ac54f97b60bdae327d2f22503f4f0.tar.gz
org.eclipse.mylyn.tasks-506903f9a34ac54f97b60bdae327d2f22503f4f0.tar.xz
org.eclipse.mylyn.tasks-506903f9a34ac54f97b60bdae327d2f22503f4f0.zip
NEW - bug 338499: support hiding of queries
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338499
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java7
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITasksCoreConstants.java2
2 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
index 00a4f0403..a632c09bf 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
@@ -13,9 +13,9 @@ package org.eclipse.mylyn.internal.tasks.core;
import java.util.Collections;
import java.util.Date;
-import java.util.HashSet;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.CopyOnWriteArraySet;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IStatus;
@@ -52,7 +52,7 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
private boolean reminded = false;
- private final Set<AbstractTaskContainer> containers = new HashSet<AbstractTaskContainer>();
+ private final Set<AbstractTaskContainer> containers = new CopyOnWriteArraySet<AbstractTaskContainer>();
// ************ Synch ****************
@@ -317,7 +317,8 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
}
public Set<AbstractTaskContainer> getParentContainers() {
- return new HashSet<AbstractTaskContainer>(containers);
+ //return new HashSet<AbstractTaskContainer>(containers);
+ return containers;
}
@Override
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITasksCoreConstants.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITasksCoreConstants.java
index 62e61444d..3ff03b8c7 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITasksCoreConstants.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITasksCoreConstants.java
@@ -59,6 +59,8 @@ public interface ITasksCoreConstants {
public static final String ATTRIBUTE_OUTGOING_NEW_CONNECTOR_KIND = "outgoingNewConnectorKind"; //$NON-NLS-1$
+ public static final String ATTRIBUTE_HIDDEN = "task.common.hidden"; //$NON-NLS-1$
+
public static final String ATTRIBUTE_TASK_EXTENDED_TOOLTIP = "task.common.extended.tooltip"; //$NON-NLS-1$
public static final String ATTRIBUTE_TASK_SUPPRESS_INCOMING = "task.common.suppress.incoming"; //$NON-NLS-1$

Back to the top