Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-02-07 20:41:40 -0500
committerspingel2008-02-07 20:41:40 -0500
commitb3676ece7dab1639e8912e368f025bdcc8b95ccb (patch)
tree27d0271f75b527d370e9a0a325f33c4dd0297bf9 /org.eclipse.mylyn.trac.core
parent6f6968df4942c10f07e5886e8575f7d6389d59eb (diff)
downloadorg.eclipse.mylyn.tasks-b3676ece7dab1639e8912e368f025bdcc8b95ccb.tar.gz
org.eclipse.mylyn.tasks-b3676ece7dab1639e8912e368f025bdcc8b95ccb.tar.xz
org.eclipse.mylyn.tasks-b3676ece7dab1639e8912e368f025bdcc8b95ccb.zip
NEW - bug 218125: support attachment sizes for Trac
https://bugs.eclipse.org/bugs/show_bug.cgi?id=218125
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
index 9da8a0e91..d97d52092 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
@@ -146,6 +146,8 @@ public class TracTaskDataHandler extends AbstractTaskDataHandler {
taskAttachment.setAttributeValue(Attribute.DESCRIPTION.getTracKey(), attachments[i].getDescription());
taskAttachment.setAttributeValue(RepositoryTaskAttribute.ATTACHMENT_FILENAME,
attachments[i].getFilename());
+ taskAttachment.setAttributeValue(RepositoryTaskAttribute.ATTACHMENT_SIZE,
+ attachments[i].getSize() + "");
taskAttachment.setAttributeValue(RepositoryTaskAttribute.USER_OWNER, attachments[i].getAuthor());
if (attachments[i].getCreated() != null) {
if (lastChanged == null || attachments[i].getCreated().after(lastChanged)) {

Back to the top