Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to show a MessageDialog in a web browser when an event occoured in the backround thread
How to show a MessageDialog in a web browser when an event occoured in the backround thread [message #43420] Mon, 27 August 2007 21:54 Go to next message
Eclipse UserFriend
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
Re: How to show a MessageDialog in a web browser when an event occoured in the backround thread [message #43482 is a reply to message #43420] Tue, 28 August 2007 05:24 Go to previous message
Eclipse UserFriend
Hi,

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
>
Previous Topic:SWT Wizard and Data Binding
Next Topic:ServletContext is null
Goto Forum:
  


Current Time: Sun Jul 06 21:16:55 EDT 2025

Powered by FUDForum. Page generated in 0.07480 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top