Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITask.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java7
2 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITask.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITask.java
index e06ef0d89..a2d886202 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITask.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITask.java
@@ -26,6 +26,8 @@ import org.eclipse.mylar.tasklist.internal.TaskCategory;
*/
public interface ITask extends Serializable, ITaskListElement {
+ public abstract String getHandleIdentifier();
+
public abstract String getPath();
public abstract void setPath(String path);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java
index fbfd9d420..488ab16a8 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java
@@ -100,9 +100,10 @@ public class Task implements ITask {
}
}
- public String getHandle() {
+ public String getHandleIdentifier() {
return handle;
}
+
public void setHandle(String id) {
this.handle = id;
}
@@ -207,7 +208,7 @@ public class Task implements ITask {
@Override
public boolean equals(Object obj) {
if (obj instanceof Task && obj != null) {
- return this.getHandle().compareTo(((Task)obj).getHandle()) == 0;
+ return this.getHandleIdentifier().compareTo(((Task)obj).getHandleIdentifier()) == 0;
} else {
return false;
}
@@ -215,7 +216,7 @@ public class Task implements ITask {
@Override
public int hashCode() {
- return this.getHandle().hashCode();
+ return this.getHandleIdentifier().hashCode();
}
public boolean isCompleted() {
return completed;

Back to the top