|
Re: Appending to Text from non-UI thread [message #462120 is a reply to message #462118] |
Thu, 06 October 2005 19:38 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Use display.asyncExec with a runnable to update the Text.
Greg wrote:
> All,
>
> Ok I have figured out how to have a 'Run' button create a new thread (for a
> long running process) and a 'Cancel' button that does cancel the new thread
> (and it is messy). I could not seem to find any snippets or examples of
> this, being that it is one of the main reasons to use threads (responsive
> UI). But that's another email.
>
> Anyway I would like to have the new thread to keep a Text field in the UI
> updated with status messages as it runs. I have tried sending the Text
> object to the thread but append gives an org.eclipse.swt.SWTException.
>
>
>
> Thanks in advance,
>
> Greg
>
>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03418 seconds