Reads an event from the operating system's event queue,
dispatches it appropriately, and returns <code>true</code>
if there is potentially more work to do, or <code>false</code>
if the caller can sleep until another event is placed on
the event queue.
<p>
In addition to checking the system event queue, this method also
checks if any inter-thread messages (created by <code>syncExec()</code>
or <code>asyncExec()</code>) are waiting to be processed, and if
so handles them before returning.
</p>
@return <code>false</code> if the caller can sleep upon return from this method
@exception SWTException <ul>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
<li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li>
<li>ERROR_FAILED_EXEC - if an exception occurred while running an inter-thread message</li>
</ul>
Reads an event from the operating system's event queue, dispatches it appropriately, and returns <code>true</code> if there is potentially more work to do, or <code>false</code> if the caller can sleep until another event is placed on the event queue. <p> In addition to checking the system event queue, this method also checks if any inter-thread messages (created by <code>syncExec()</code> or <code>asyncExec()</code>) are waiting to be processed, and if so handles them before returning. </p>
@return <code>false</code> if the caller can sleep upon return from this method
@exception SWTException <ul> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li> <li>ERROR_FAILED_EXEC - if an exception occurred while running an inter-thread message</li> </ul>
@see #sleep @see #wake