Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2009-10-02 20:24:59 +0000
committerfbecker2009-10-02 20:24:59 +0000
commit0680038bab07835148d9d8942962737a45add5dc (patch)
tree5e7f39766d95ec6d5478530986d0bc95050d151e /org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
parent131696d6a498bebfe6a05e967f5b6c0e1ce5076d (diff)
downloadorg.eclipse.mylyn.tasks-0680038bab07835148d9d8942962737a45add5dc.tar.gz
org.eclipse.mylyn.tasks-0680038bab07835148d9d8942962737a45add5dc.tar.xz
org.eclipse.mylyn.tasks-0680038bab07835148d9d8942962737a45add5dc.zip
ASSIGNED - bug 289663: remove circular dependency between BugzillaCorePlugin and BugzillaTaskDataHandler
https://bugs.eclipse.org/bugs/show_bug.cgi?id=289663
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
index 800860a61..3a3458ae4 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
@@ -74,11 +74,15 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
private boolean bugParseErrorOccurred;
+ private final BugzillaRepositoryConnector connector;
+
public SaxMultiBugReportContentHandler(TaskAttributeMapper mapper, TaskDataCollector collector,
- Map<String, TaskData> taskDataMap, List<BugzillaCustomField> customFields) {
+ Map<String, TaskData> taskDataMap, List<BugzillaCustomField> customFields,
+ BugzillaRepositoryConnector connector) {
this.taskDataMap = taskDataMap;
this.customFields = customFields;
this.collector = collector;
+ this.connector = connector;
}
public boolean errorOccurred() {
@@ -177,7 +181,7 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
if (attributes != null && attributes.getLength() > 0) {
String name = attributes.getValue(ATTRIBUTE_NAME);
if (name != null) {
- BugzillaFlagMapper mapper = new BugzillaFlagMapper();
+ BugzillaFlagMapper mapper = new BugzillaFlagMapper(connector);
String requestee = attributes.getValue("requestee"); //$NON-NLS-1$
mapper.setRequestee(requestee);
String setter = attributes.getValue("setter"); //$NON-NLS-1$
@@ -468,7 +472,7 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
}
private void updateCustomFields(TaskData taskData) {
- RepositoryConfiguration config = BugzillaCorePlugin.getRepositoryConfiguration(repositoryTaskData.getRepositoryUrl());
+ RepositoryConfiguration config = connector.getRepositoryConfiguration(repositoryTaskData.getRepositoryUrl());
if (config != null) {
for (BugzillaCustomField bugzillaCustomField : config.getCustomFields()) {

Back to the top