Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-12-22 18:51:28 -0500
committermkersten2006-12-22 18:51:28 -0500
commitf5118110a7fb5759ffcc83e07461795f690ad9e3 (patch)
tree7aacdaaf63761a52acf3c7557d3e162ddf4bc2e7 /org.eclipse.mylyn.tasks.core
parente2d57bbef2ffbc2297050d1ad567804aafd42d47 (diff)
downloadorg.eclipse.mylyn.tasks-f5118110a7fb5759ffcc83e07461795f690ad9e3.tar.gz
org.eclipse.mylyn.tasks-f5118110a7fb5759ffcc83e07461795f690ad9e3.tar.xz
org.eclipse.mylyn.tasks-f5118110a7fb5759ffcc83e07461795f690ad9e3.zip
RESOLVED - bug 168776: Changing server in task repository does not update servers in tasks and hits
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168776
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