Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-06-05 06:47:36 +0000
committerrelves2007-06-05 06:47:36 +0000
commit1c05fbc4544a8503486bc7f8e6e2853280ecb65d (patch)
tree54f162620f862b7ec1ec2aacb844ae9b5477000e /org.eclipse.mylyn.bugzilla.core
parent242a26e7c4cf2dee305707ddf7513f7082f7e020 (diff)
downloadorg.eclipse.mylyn.tasks-1c05fbc4544a8503486bc7f8e6e2853280ecb65d.tar.gz
org.eclipse.mylyn.tasks-1c05fbc4544a8503486bc7f8e6e2853280ecb65d.tar.xz
org.eclipse.mylyn.tasks-1c05fbc4544a8503486bc7f8e6e2853280ecb65d.zip
NEW - bug 161734: [api] clean up schitzophrenia between tasks and hits
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161734
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java5
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java2
2 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
index bb1234e07..6cd999308 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
@@ -371,7 +371,10 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
Map<String, RepositoryTaskData> hits = client.getTaskData(ids);
for (RepositoryTaskData data : hits.values()) {
- resultCollector.accept(data);
+ if (data != null) {
+ taskDataHandler.configureTaskData(repository, data);
+ resultCollector.accept(data);
+ }
}
} catch (UnrecognizedReponseException e) {
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
index bf05cc090..9196b640a 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
@@ -131,7 +131,7 @@ public class BugzillaTaskDataHandler implements ITaskDataHandler {
return getAttributeFactory(taskData.getRepositoryUrl(), taskData.getRepositoryKind(), taskData.getTaskKind());
}
- private void configureTaskData(TaskRepository repository, RepositoryTaskData taskData) throws CoreException {
+ public void configureTaskData(TaskRepository repository, RepositoryTaskData taskData) throws CoreException {
connector.updateAttributeOptions(repository, taskData);
addValidOperations(taskData, repository.getUserName());
}

Back to the top