summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-14 20:49:53 (EDT)
committer Chris Aniszczyk2011-04-15 11:10:47 (EDT)
commit23fc43bc827c21cc96b2aca0f242f3de4e1d2a63 (patch)
treeb6c8a69258fd4a8f90575e846e9803ee4ef1e812
parent8ed530d0cf51ce71b120de3ac1c9ec3d2c4769c2 (diff)
downloadegit-github-23fc43bc827c21cc96b2aca0f242f3de4e1d2a63.zip
egit-github-23fc43bc827c21cc96b2aca0f242f3de4e1d2a63.tar.gz
egit-github-23fc43bc827c21cc96b2aca0f242f3de4e1d2a63.tar.bz2
Set task attachment id to be gist file namerefs/changes/33/3133/2
File names are unique in gists and attachment ids are required to be able to navigate from the outline view to a specific row in the attachments table. Change-Id: Ie27ed8f7bd5b324b2f59eeee5102ad67e221648f Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
index 5ae7ef6..c77efdc 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
@@ -146,6 +146,7 @@ public class GistTaskDataHandler extends AbstractTaskDataHandler {
attachmentMapper.setLength((long) file.getSize());
attachmentMapper.setPatch(false);
attachmentMapper.setAuthor(reporterPerson);
+ attachmentMapper.setAttachmentId(file.getFilename());
TaskAttribute attribute = data.getRoot().createAttribute(
TaskAttribute.PREFIX_ATTACHMENT + count);
attachmentMapper.applyTo(attribute);