|
Re: How do blocking popups work? [message #99097 is a reply to message #98993] |
Mon, 21 July 2008 12:41 |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Greg,
Greg wrote:
> I notice that Window.open() in RAP is blocking. I am intrigued. Given
> the remote natue of the UI and the request/response paradigm (with
> associated lifecycle) can anyone offer an explanation of how this
> works? .. or dare I ask, is it documented anywhere?
>
> I have been code trawling but, to be honest, it seems a little opaque.
since the implementation of Display#readAndDispatch in 1.1M2 [1],
blocking dialogs work pretty much the same as in RCP. When in blocked
state, Window#open() runs the event loop itself and returns control back
to the caller when the window is being closed.
How readAndDispatch works goes down to the very core of RAP. From the
bird's-eye view, every session has its own UI thread which runs the
event loop and sleeps between requests.
Regards, Ralf
[1] http://www.eclipse.org/rap/noteworthy/news_11M2.php
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds