Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-02-21 07:59:03 +0000
committerFrank Becker2012-02-21 07:59:03 +0000
commit5b126670ee3f8f3b8e69517a96b7d9f94f99acbc (patch)
treed984ade9eec43b1ed058ed7c54051838781a7272 /org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
parente87b60aee18c81693c4b05cd784848a08bae2be7 (diff)
downloadorg.eclipse.mylyn.tasks-5b126670ee3f8f3b8e69517a96b7d9f94f99acbc.tar.gz
org.eclipse.mylyn.tasks-5b126670ee3f8f3b8e69517a96b7d9f94f99acbc.tar.xz
org.eclipse.mylyn.tasks-5b126670ee3f8f3b8e69517a96b7d9f94f99acbc.zip
ASSIGNED - bug 372068: DELTA_TS is used for task and attachments
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372068 Change-Id: I2a76249bdd841f80578e4ce7fe6d69417a952742
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.java17
1 files changed, 17 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 070d4a299..aedf7d494 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
@@ -393,6 +393,23 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
attachment.setContentType(parsedText);
}
break;
+ case DELTA_TS:
+ if (attachment != null) {
+ try {
+ if (parsedText != null) {
+ try {
+ attachment.setDeltaDate(simpleFormatter.parse(parsedText));
+ } catch (ParseException e) {
+ }
+ }
+ } catch (NumberFormatException e) {
+ // ignore
+ }
+ } else {
+ createAttrribute(parsedText, tag);
+ }
+ break;
+
case SIZE:
if (attachment != null) {
try {

Back to the top