Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-04-05 20:09:20 +0000
committerfbecker2010-04-05 20:09:20 +0000
commit96759761b0ec784d40bf77c2cefc21f1cf1ea81c (patch)
tree7d02cd490a5ec4edc8c42fc7167225b3a74bbb7e /org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
parent3967e27d7de7b0e8ba56b906c9570364fea9d854 (diff)
downloadorg.eclipse.mylyn.tasks-96759761b0ec784d40bf77c2cefc21f1cf1ea81c.tar.gz
org.eclipse.mylyn.tasks-96759761b0ec784d40bf77c2cefc21f1cf1ea81c.tar.xz
org.eclipse.mylyn.tasks-96759761b0ec784d40bf77c2cefc21f1cf1ea81c.zip
RESOLVED - bug 307655: add an attribute for the the duplicated bug id in a duplicate bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=307655
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, 10 insertions, 0 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 33762fa15..f1217c63c 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
@@ -455,6 +455,16 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
}
}
break;
+ case DUP_ID:
+ TaskAttribute duplicateOf = repositoryTaskData.getRoot().getMappedAttribute(tag.getKey());
+ if (duplicateOf == null) {
+ BugzillaTaskDataHandler.createAttribute(repositoryTaskData, tag).setValue(parsedText);
+ } else {
+ if (duplicateOf.getValue().equals("")) { //$NON-NLS-1$
+ duplicateOf.setValue(parsedText);
+ }
+ }
+ break;
case UNKNOWN:
//ignore
break;

Back to the top