Server Side Refresh [message #85078] |
Mon, 28 April 2008 03:36 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02774 seconds