[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: RES: [mylyn-integrators] Download Attachment
|
Tiago,
The final method AbstractAttachmentHandler.getContextAttachments() is
where this takes place (if
attachment.getDescription().equals(MYLAR_CONTEXT_DESCRIPTION)). Where
MYLAR_CONTEXT_DESCRIPTION = "mylyn/context/zip". So if the task data
for your bug has an attachment with a description equal to the above it
will turn up as an available context in the Retrieve... context table.
-Rob
Tiago Augusto wrote:
Rob, i know that, I have already study the bugzila class the extends
AbstractAttachmentHandler. I I have my own.
But the real problem is: When I click in the "Retrieve..." from the task
popup menu, Its show me a dialog with a table, and I supposed, in that table
it should have a list of context file attached to the repository but the
table is empty.
And I don't know how I can retrieve the list of attachments to be show.
-----Mensagem original-----
De: mylyn-integrators-bounces@xxxxxxxxxxx
[mailto:mylyn-integrators-bounces@xxxxxxxxxxx] Em nome de Robert Elves
Enviada em: sexta-feira, 16 de novembro de 2007 15:48
Para: Mylyn Integrators list
Assunto: Re: [mylyn-integrators] Download Attachment
Tiago,
From the Mylyn framework perspective your best solution is to implement
the AbstractAttachmentHandler.getAttachmentAsStream() method. So you
must provide an InputStream source for the attachment on your
repository. If you have a look at the bugzilla source you will see an
example of how this is achieved using HttpClient's Get method
(BugzillaClient.getAttachmentData()). If this doesn't get you started,
consider posting more details about the api offered by your repository.
-Rob
Tiago Augusto wrote:
Hi to all, I need to download de attachment, that I send to my
repository but I can't figured out how I can do that. Anyone know the
point I need do implement do make this works? Any help is welcome.
My repository is form my company, so it is not bugzilla or other, I am
developing a new integration.
Tiago Augusto Nogueira Coelho
eCompany Process - Scrum Master
+55 (31) 3555-0050
tiago@xxxxxxxxxxxxxxxxx <mailto:tiago@xxxxxxxxxxxxxxxxx>
Powerlogic S.A.
------------------------------------------------------------------------
_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
--
Robert Elves
Mylyn Committer, http://eclipse.org/mylyn