Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to show a MessageDialog in a web browser when an event occoured in the backround thread
https://www.eclipse.org/forums/index.php/mv/msg/13724/43420/#msg_43420
Is there any one can give a sample code of RAP to show a MessageDialog in
a web browser when an enven that in the non-UI thread(backround thread)
occoured.
Thanks.
toolang]]>No real name2007-08-28T01:54:57-00:00Re: How to show a MessageDialog in a web browser when an event occoured in the backround thread
https://www.eclipse.org/forums/index.php/mv/msg/13724/43482/#msg_43482
you can use Display#syncexec() from your non-UI thread. Additionally you
have to inform RAP to listen to UI callbacks using
UICallBackUtil.activateUICallBack( uiCallbackId ) and
UICallBackUtil.deactivateUICallBack( uiCallbackId ) afterwards.
See the RAP widget demo (ProgressbarTab.java) for an example.
Regards,
Stefan.
"toolang" <toolang@gmail.com> schrieb im Newsbeitrag
news:favv9n$ofv$1@build.eclipse.org...
> Hi,
>
> Is there any one can give a sample code of RAP to show a MessageDialog in
> a web browser when an enven that in the non-UI thread(backround thread)
> occoured.
>
> Thanks.
>
>
> toolang
>]]>Stefan 2007-08-28T09:24:08-00:00