Package org.eclipse.ui.internal
Class UISynchronizer
java.lang.Object
org.eclipse.swt.widgets.Synchronizer
org.eclipse.ui.internal.UISynchronizer
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Indicates that the UI is in startup mode and that no non-workbench runnables should be invoked.protected UILockListener
static final ThreadLocal<Boolean>
List of non-workbench Runnables that need executing at some point in the futurestatic final ThreadLocal<Boolean>
Setting this variable to the valueBoolean.TRUE
will allow a thread to execute code during the startup sequence. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Causes therun()
method of the runnable to be invoked by the user-interface thread at the next reasonable opportunity.void
started()
void
Causes therun()
method of the runnable to be invoked by the user-interface thread at the next reasonable opportunity.
-
Field Details
-
lockListener
-
isStarting
protected boolean isStartingIndicates that the UI is in startup mode and that no non-workbench runnables should be invoked. -
pendingStartup
List of non-workbench Runnables that need executing at some point in the future -
startupThread
Setting this variable to the valueBoolean.TRUE
will allow a thread to execute code during the startup sequence. -
overrideThread
-
-
Constructor Details
-
UISynchronizer
-
-
Method Details
-
started
public void started() -
asyncExec
Description copied from class:Synchronizer
Causes therun()
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.- Overrides:
asyncExec
in classSynchronizer
- Parameters:
runnable
- code to run on the user-interface thread.- See Also:
-
syncExec
Description copied from class:Synchronizer
Causes therun()
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.- Overrides:
syncExec
in classSynchronizer
- Parameters:
runnable
- code to run on the user-interface thread.- See Also:
-