public class Synchronizer extends Object
IMPORTANT: Typical application code never needs to deal with this class. It is provided only to allow applications which require non-standard synchronization behavior to plug in the support they require. Subclasses which override the methods in this class must ensure that the superclass methods are invoked in their implementations
| Constructor and Description |
|---|
Synchronizer(Display display)
Constructs a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
asyncExec(Runnable runnable)
Causes the
run() method of the runnable to
be invoked by the user-interface thread at the next
reasonable opportunity. |
protected void |
syncExec(Runnable runnable)
Causes the
run() method of the runnable to
be invoked by the user-interface thread at the next
reasonable opportunity. |
public Synchronizer(Display display)
display - the display to create the synchronizer onprotected void asyncExec(Runnable runnable)
run() method of the runnable to
be invoked by the user-interface thread at the next
reasonable opportunity. The caller of this method continues
to run in parallel, and is not notified when the
runnable has completed.runnable - code to run on the user-interface thread.syncExec(java.lang.Runnable)protected void syncExec(Runnable runnable)
run() method of the runnable to
be invoked by the user-interface thread at the next
reasonable opportunity. The thread which calls this method
is suspended until the runnable completes.runnable - code to run on the user-interface thread.SWTException - asyncExec(java.lang.Runnable)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.