Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-06-21 22:28:12 -0400
committerGerrit Code Review @ Eclipse.org2016-07-26 12:33:06 -0400
commit19c93331f06f1452647d82d9388c14d1415de3bf (patch)
treed62d68c78e4487b2d3c41144139ec555cd04095d /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parentacb48310b78598fc0f37ac3bf1b262bc0ee7feb5 (diff)
downloadorg.eclipse.mylyn.tasks-19c93331f06f1452647d82d9388c14d1415de3bf.tar.gz
org.eclipse.mylyn.tasks-19c93331f06f1452647d82d9388c14d1415de3bf.tar.xz
org.eclipse.mylyn.tasks-19c93331f06f1452647d82d9388c14d1415de3bf.zip
496452: Support import/export of TaskCategories
Change-Id: I075632b251a0e7f41d2e7b16808bba4e9774f088 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=496452
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/TransferList.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TransferList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TransferList.java
index 95516d1d0..56095732d 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TransferList.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TransferList.java
@@ -22,7 +22,7 @@ import org.eclipse.mylyn.tasks.core.ITask;
/**
* Used to externalize queries.
- *
+ *
* @author Steffen
*/
public class TransferList implements ITransferList {
@@ -58,7 +58,10 @@ public class TransferList implements ITransferList {
}
public boolean addTask(ITask task, AbstractTaskContainer parentContainer) {
- tasks.add((AbstractTask) task);
+ if (!tasks.contains(task)) {
+ tasks.add((AbstractTask) task);
+ }
+ parentContainer.internalAddChild((AbstractTask) task);
return true;
}

Back to the top