Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Server Side Refresh
Server Side Refresh [message #85078] Mon, 28 April 2008 03:36 Go to next message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

Hi all.

Can some one point me to the code to be used for implementing a server
side refresh in a RAP application?

Regards,
Anup
Re: Server Side Refresh [message #85092 is a reply to message #85078] Mon, 28 April 2008 06:16 Go to previous message
Eclipse UserFriend
Originally posted by: me.micha-shl.de

Hi Anup,

I think this is what you are looking for: Apartment Threading

RWT simulates the Apartment Threading model of SWT. Because of this
Display now provides the methods getThread, syncExcec, asyncExcec and
wake. To enable UI-updates that are triggered from asynchronous server
threads call org.eclipse.swt.lifecycle.UICallBackUtil.activateUICallBack.
Accessing widget methods from non UI-Threads throws a SWTException. If you
want to enable UI-updates all the time you may implement the createUI
method of IEntryPoint like this:

public Display createUI() {
UICallBackUtil.activateUICallBack( getClass().getName() );
final Display result = PlatformUI.createDisplay();
PlatformUI.createAndRunWorkbench( result, new DemoWorbenchAdvisor() );
return result;
}

Greetz
Michael

Anup Gokhale wrote:

> Hi all.

> Can some one point me to the code to be used for implementing a server
> side refresh in a RAP application?

> Regards,
> Anup
Previous Topic:Can't build RAP from CVS head
Next Topic:multi-line header in table
Goto Forum:
  


Current Time: Wed Apr 24 14:49:41 GMT 2024

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

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

Back to the top