Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Tue, 28 August 2007 01:54 Go to next message
No real name is currently offline No real nameFriend
Messages: 9
Registered: July 2009
Junior Member
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 09:24 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
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: Mon Jul 22 12:07:21 GMT 2024

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

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

Back to the top