[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RES: RES: [mylyn-integrators] Download Attachment
|
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
_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators