Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-06-01 12:48:33 -0400
committerrelves2007-06-01 12:48:33 -0400
commit818244dab9446648676db1aa3bed1194084dc787 (patch)
tree30b110c2961e45bfadb1250161fa2be5fd3379db
parent9a7a39d6dd4b0eb70d31c0f9add7ca267c99cbdf (diff)
downloadorg.eclipse.mylyn.tasks-818244dab9446648676db1aa3bed1194084dc787.tar.gz
org.eclipse.mylyn.tasks-818244dab9446648676db1aa3bed1194084dc787.tar.xz
org.eclipse.mylyn.tasks-818244dab9446648676db1aa3bed1194084dc787.zip
NEW - bug 161734: [api] clean up schitzophrenia between tasks and hits
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161734
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java
index 2d4778b9c..c34b4d98a 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java
@@ -13,6 +13,7 @@ package org.eclipse.mylar.tasks.core;
import java.io.Serializable;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -268,6 +269,10 @@ public class RepositoryTaskAttribute implements Serializable {
return true;
}
+ public void clearMetaData() {
+ metaData.clear();
+ }
+
public void putMetaDataValue(String key, String value) {
metaData.put(key, value);
}
@@ -279,5 +284,8 @@ public class RepositoryTaskAttribute implements Serializable {
public void removeMetaDataValue(String key) {
metaData.remove(key);
}
-
+
+ public Map<String, String> getMetaData() {
+ return Collections.unmodifiableMap(metaData);
+ }
}

Back to the top