Package org.eclipse.ui.internal
Class UISynchronizer
java.lang.Object
org.eclipse.swt.widgets.Synchronizer
org.eclipse.ui.internal.UISynchronizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIndicates that the UI is in startup mode and that no non-workbench runnables should be invoked.protected UILockListenerstatic 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.TRUEwill allow a thread to execute code during the startup sequence. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCauses therun()method of the runnable to be invoked by the user-interface thread at the next reasonable opportunity.voidstarted()voidCauses 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.TRUEwill 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:SynchronizerCauses 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:
asyncExecin classSynchronizer- Parameters:
runnable- code to run on the user-interface thread.- See Also:
-
syncExec
Description copied from class:SynchronizerCauses 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:
syncExecin classSynchronizer- Parameters:
runnable- code to run on the user-interface thread.- See Also:
-