Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Callable and Progress Bar

Thanks for the answer. I wrapped Callable in a Runnable and it works!

2009/1/11 Carolyn MacLeod <Carolyn_MacLeod@xxxxxxxxxx>:
>
> This example snippet updates a progress bar from another thread using
> asyncExec:
>
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet56.java
>
> You will have to wrap your Callable in a Runnable.
>
> Carolyn
>
>
>
> From: "Barış Evrim Demiröz" <b.evrim@xxxxxxxxx>
> To: platform-swt-dev@xxxxxxxxxxx
> Date: 01/10/2009 06:21 PM
> Subject: [platform-swt-dev] Callable and Progress Bar
> ________________________________
>
>
> Hello everyone,
>
> I have a Callable class that performs a long operation, and also it is
> Observable, it notifies the listeners about the progress's state. I
> want to show the progress status in a dialog. Obviously this Callable
> class will run as another thread. Display class of SWT has a
> asyncExec() method, but it takes a Runnable as an argument. I did not
> see anything about Callables in documentations. Can you provide me
> some pointers?
>
> Thank you for your answers
>
> --
> (:
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>



-- 
(:

Back to the top