Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[rap-dev] [ANN] Display#readAndDispatch

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


Back to the top