Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 159063 Details for
Bug 302654
support for Bugzilla 3.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
commited patch
patch302654.txt (text/plain), 5.67 KB, created by
Frank Becker
on 2010-02-13 17:34:53 EST
(
hide
)
Description:
commited patch
Filename:
MIME Type:
Creator:
Frank Becker
Created:
2010-02-13 17:34:53 EST
Size:
5.67 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.bugzilla.core >Index: src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java,v >retrieving revision 1.20 >diff -u -r1.20 BugzillaAttribute.java >--- src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java 20 Aug 2009 20:35:44 -0000 1.20 >+++ src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java 13 Feb 2010 22:31:13 -0000 >@@ -185,7 +185,10 @@ > > BUGS(Messages.BugzillaAttribute_used_by_search_engine_bugs, "bugs", null, false, false), //$NON-NLS-1$ > >- QUERY_TIMESTAMP(Messages.BugzillaAttribute_Query_Timestamp, "query_timestamp", null, false, false); //$NON-NLS-1$ >+ QUERY_TIMESTAMP(Messages.BugzillaAttribute_Query_Timestamp, "query_timestamp", null, false, false), //$NON-NLS-1$ >+ >+ // new in Bugzilla 3.6 >+ ATTACHER(Messages.BugzillaAttribute_Attacher, "attacher", null, false, false); //$NON-NLS-1$ > > private final boolean isHidden; > >Index: src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java,v >retrieving revision 1.11 >diff -u -r1.11 Messages.java >--- src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java 24 Jan 2010 14:30:04 -0000 1.11 >+++ src/org/eclipse/mylyn/internal/bugzilla/core/Messages.java 13 Feb 2010 22:31:13 -0000 >@@ -177,6 +177,8 @@ > > public static String BugzillaAttribute_Worked; > >+ public static String BugzillaAttribute_Attacher; >+ > public static String BugzillaAttachmentMapper_Author; > > public static String BugzillaAttachmentMapper_Content_Type; >Index: src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java,v >retrieving revision 1.53 >diff -u -r1.53 SaxMultiBugReportContentHandler.java >--- src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java 24 Jan 2010 14:30:04 -0000 1.53 >+++ src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java 13 Feb 2010 22:31:13 -0000 >@@ -11,6 +11,8 @@ > > package org.eclipse.mylyn.internal.bugzilla.core; > >+import java.text.ParseException; >+import java.text.SimpleDateFormat; > import java.util.ArrayList; > import java.util.HashMap; > import java.util.List; >@@ -75,6 +77,8 @@ > > private final BugzillaRepositoryConnector connector; > >+ private final SimpleDateFormat simpleFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm"); //$NON-NLS-1$ >+ > public SaxMultiBugReportContentHandler(TaskAttributeMapper mapper, TaskDataCollector collector, > Map<String, TaskData> taskDataMap, List<BugzillaCustomField> customFields, > BugzillaRepositoryConnector connector) { >@@ -341,7 +345,14 @@ > attachment.setToken(null); > break; > case DATE: >- // ignore >+ if (attachment != null) { >+ try { >+ attachment.setCreationDate(simpleFormatter.parse(parsedText)); >+ break; >+ } catch (ParseException e) { >+ } catch (NumberFormatException e) { >+ } >+ } > break; > case DESC: > if (attachment != null) { >@@ -457,6 +468,14 @@ > token = parsedText; > } > break; >+ case ATTACHER: >+ if (attachment != null) { >+ IRepositoryPerson author = repositoryTaskData.getAttributeMapper().getTaskRepository().createPerson( >+ parsedText); >+ author.setName(parsedText); >+ attachment.setAuthor(author); >+ } >+ break; > default: > TaskAttribute defaultAttribute = repositoryTaskData.getRoot().getMappedAttribute(tag.getKey()); > if (defaultAttribute == null) { >@@ -521,10 +540,12 @@ > repositoryTaskData, TaskAttribute.TYPE_ATTACHMENT); > for (TaskAttribute attachment : taskAttachments) { > BugzillaAttachmentMapper attachmentMapper = BugzillaAttachmentMapper.createFrom(attachment); >- TaskCommentMapper taskComment = attachIdToComment.get(attachmentMapper.getAttachmentId()); >- if (taskComment != null) { >- attachmentMapper.setAuthor(taskComment.getAuthor()); >- attachmentMapper.setCreationDate(taskComment.getCreationDate()); >+ if (attachmentMapper.getAuthor() == null || attachmentMapper.getCreationDate() == null) { >+ TaskCommentMapper taskComment = attachIdToComment.get(attachmentMapper.getAttachmentId()); >+ if (taskComment != null) { >+ attachmentMapper.setAuthor(taskComment.getAuthor()); >+ attachmentMapper.setCreationDate(taskComment.getCreationDate()); >+ } > } > attachmentMapper.setUrl(repositoryTaskData.getRepositoryUrl() > + IBugzillaConstants.URL_GET_ATTACHMENT_SUFFIX + attachmentMapper.getAttachmentId()); >Index: src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties,v >retrieving revision 1.15 >diff -u -r1.15 messages.properties >--- src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties 24 Jan 2010 14:30:04 -0000 1.15 >+++ src/org/eclipse/mylyn/internal/bugzilla/core/messages.properties 13 Feb 2010 22:31:13 -0000 >@@ -84,6 +84,7 @@ > BugzillaAttribute_who=who > BugzillaAttribute_who_name=who_name > BugzillaAttribute_Worked=Worked: >+BugzillaAttribute_BugzillaAttribute_Attacher=Attacher > > BugzillaAttachmentMapper_Author=Attachment Author: > BugzillaAttachmentMapper_Content_Type=Content Type:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 302654
: 159063 |
159064
|
166121
|
166122
|
166129
|
166130
|
167561
|
167562
|
168437
|
168438