[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: paintChildren and IProgressMonitor updates
|
Does that imply that all these processes which do use a progressbar on the
statusline are working as background jobs? Or are are they doing
Display.getCurrent().readAndDispatch() at regular intervals? I tried
readAndDispatch in the paintChildren() method, but that results in rather
messy displays...
Koen
"Steven Shaw" <steveshaw@xxxxxxxxxx> wrote in message
news:duhiq9$s7t$1@xxxxxxxxxxxxxx
> Intuitively this seems like an improper place to be updating progress.
> Usually this is done in context to command execution.
>
> Regarding your specific problem, since paintChildren is being executed on
> the UI thread, updating the statusbar is probably doing a
> Display.asyncExec
> to update meaning it will not spawn execution until the current execution
> is
> finished before exeucting.
>
> -Steve
>
> "Koen van Dijken" <kvdijken@xxxxxxxxxx> wrote in message
> news:duejvf$nde$1@xxxxxxxxxxxxxx
>> Hello,
>>
>> I want to update the progressMonitor (message and work) in the statusbar
>> during a call to Figure.paintChildren(). I cannot get it to work however.
>> Nothing is displayed.
>>
>> Is it possible? Did anyone have any luck doing the same?
>>
>> Koen
>>
>>
>
>