Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] attachment upload progress

That sounds like a blocking UI thread. I am not sure but could that
possibly be solved by calling Display.getDefault().readAndDispatch()
in your loop?

regards,

Wim

On Fri, May 1, 2009 at 9:36 PM, Philippe Marschall <kustos@xxxxxxx> wrote:
> Hi
>
> The current infrastructure doesn't seem to report upload progress when
> adding an attachment to a task. Looking at AbstractTaskAttachmentSource the
> code seems designed for progress reporting but neither
> TaskAttachmentPartSource nor any of the concrete TaskAttachmentSource
> classes seem to make any use of it.
>
> I got some quite good results with the attached code. The only issue it has
> is that the monitor handed to me trough AbstractTaskAttachmentHandler seems
> to use only about a third of the ticks of the parent monitor. So the visual
> effect is that the progress bar steadily moving form 0% to 33% and the
> suddenly jumping to 100%. Four fifths or even nine tenths of the ticks would
> probably yield much better results.
>
> Cheers
> Philippe
>
> _______________________________________________
> mylyn-dev mailing list
> mylyn-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylyn-dev
>
>


Back to the top