[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: RES: RES: RES: [mylyn-integrators] Download Attachment
|
Glad to here that helped Tiago. Feel free to add any additional
documentation directly to the wiki and we can revise it there.
-Rob
Tiago Augusto wrote:
Rob, Thank you for the help, it really helps me :).
If you need help with the attachment documentation, I can do this, I send
you the text.
-----Mensagem original-----
De: mylyn-integrators-bounces@xxxxxxxxxxx
[mailto:mylyn-integrators-bounces@xxxxxxxxxxx] Em nome de Robert Elves
Enviada em: quinta-feira, 22 de novembro de 2007 13:53
Para: Mylyn Integrators list
Assunto: Re: RES: RES: [mylyn-integrators] Download Attachment
Tiago,
The details of how to accomplish this 'should' be located here:
http://wiki.eclipse.org/index.php/Mylyn_Integrator_Reference#Offline_data_ha
ndling
Unfortunately the information there is rather sparse. It would be great
if we could improve that section together as you implement your
connector. I will find some time within the next few days to beef up
what is already there so add a watch to that wiki page.
Regards,
-Rob
Tiago Augusto wrote:
Rob, now we are talking, :) this is my problem, i still don't know where I
have to implement to get my task datas, telling this piece of code that my
task have a task data of the Mylyn/context/zip.
I guess this is my real problem, to get all task data, including the mylyn
context data.
If you can still help me, it will be very fine :)
-----Mensagem original-----
De: mylyn-integrators-bounces@xxxxxxxxxxx
[mailto:mylyn-integrators-bounces@xxxxxxxxxxx] Em nome de Robert Elves
Enviada em: quarta-feira, 21 de novembro de 2007 04:18
Para: Mylyn Integrators list
Assunto: 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