Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [ANN] Display#readAndDispatch
[ANN] Display#readAndDispatch [message #74149] Fri, 15 February 2008 18:27
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi all,

with the upcoming M2 release we will provide
Display#readAndDispatch() and Display#sleep().

This helps us to
a) to align more closely with the SWT API and
b) resolve problems with the current thread-blocking mechanism used
e.g. in dialogs.

Unfortunately this has an impact on the existing IEntryPoint
interface. As the readAndDispatch loop blocks the further execution
of the createUI method the created Display cannot be returned.
This means that createUI serves all requests until the Workbench
terminates, either by user interaction or session timeout.
In order to support the return value of
PlatformUI#createAndRunWorkbench createUI now returns an int value.

We decided to make this API break instead of providing a
compatibility layer for the old createUI signature because:
* changes are minimal: change method signature, adjust return value
* a compatibility layer wouldn't help in case there is code after
createAndRunWorkbench (don't panic, such code should now be placed
in WorkbenchWindowAdvisor#postWindowOpen)
* don't introduce a new name for basically the same functionality

PLEASE NOTE: the changes are not yet in CVS. Expect them to be in
place for M2 (2008-02-20).

Kind Regards
The RAP Team
Previous Topic:Build RAP target from source
Next Topic:symbol problem
Goto Forum:
  


Current Time: Fri Apr 26 09:10:41 GMT 2024

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

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

Back to the top