Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractQueryHit.java7
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java2
2 files changed, 3 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractQueryHit.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractQueryHit.java
index 949711f58..1c0f8d734 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractQueryHit.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractQueryHit.java
@@ -34,14 +34,11 @@ public abstract class AbstractQueryHit implements ITaskListElement {
private AbstractRepositoryQuery parent;
- private String handleIDentifier;
-
protected AbstractQueryHit(TaskList taskList, String repositoryUrl, String description, String id) {
this.taskList = taskList;
this.repositoryUrl = repositoryUrl;
this.description = description;
this.id = id;
- this.handleIDentifier = AbstractRepositoryTask.getHandle(repositoryUrl, id);
}
public AbstractRepositoryQuery getParent() {
@@ -112,10 +109,8 @@ public abstract class AbstractQueryHit implements ITaskListElement {
public String getHandleIdentifier() {
if (task != null) {
return task.getHandleIdentifier();
- } else {
- return handleIDentifier;
}
-// return AbstractRepositoryTask.getHandle(repositoryUrl, id);
+ return AbstractRepositoryTask.getHandle(repositoryUrl, id);
}
/**
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
index 2818e7673..8a68bf7d0 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
@@ -108,7 +108,9 @@ public class TaskList {
if (query.getRepositoryUrl().equals(oldUrl)) {
query.setRepositoryUrl(newUrl);
for (AbstractQueryHit hit : query.getHits()) {
+ queryHits.remove(hit.getHandleIdentifier());
hit.setRepositoryUrl(newUrl);
+ queryHits.put(hit.getHandleIdentifier(), hit);
}
for (ITaskListChangeListener listener : changeListeners) {
listener.containerInfoChanged(query);

Back to the top