Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-13 20:16:55 -0500
committermkersten2005-11-13 20:16:55 -0500
commit8e3c8a125b76b510b956d5831faa01c774d78358 (patch)
tree327d52b6bad634fba21318e2998dfde4a8597ae2 /org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist
parent8bb2562e67033f820cbda60f5cf69d21ebe18834 (diff)
downloadorg.eclipse.mylyn.tasks-8e3c8a125b76b510b956d5831faa01c774d78358.tar.gz
org.eclipse.mylyn.tasks-8e3c8a125b76b510b956d5831faa01c774d78358.tar.xz
org.eclipse.mylyn.tasks-8e3c8a125b76b510b956d5831faa01c774d78358.zip
Fixed Bug 115705: dynamic change set in a sync view is not refreshed on task change
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist')
-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