Package org.eclipse.e4.ui.workbench.swt
Class DisplayUISynchronize
java.lang.Object
org.eclipse.e4.ui.di.UISynchronize
org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize
- Since:
- 0.16
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSchedules the runnable on the UI-Thread for execution and returns immediatelyprotected booleanRequest to perform an event dispatch cycle.booleanisUIThread(Thread thread) Checks if the given thread is the UI-Thread.protected voidshowBusyWhile(Runnable runnable) Shows a busy-indicator to the user while this runnable is executed, long running operations in the UI thread may freeze the UI.voidExecutes the runnable on the UI-Thread and blocks until the runnable is finished
-
Constructor Details
-
DisplayUISynchronize
-
-
Method Details
-
syncExec
Description copied from class:UISynchronizeExecutes the runnable on the UI-Thread and blocks until the runnable is finished- Specified by:
syncExecin classUISynchronize- Parameters:
runnable- the runnable to execute
-
asyncExec
Description copied from class:UISynchronizeSchedules the runnable on the UI-Thread for execution and returns immediately- Specified by:
asyncExecin classUISynchronize- Parameters:
runnable- the runnable to execute
-
isUIThread
Description copied from class:UISynchronizeChecks if the given thread is the UI-Thread.- Specified by:
isUIThreadin classUISynchronize- Parameters:
thread- to check- Returns:
trueif the thread is the UI-Threadfalseotherwise
-
showBusyWhile
Description copied from class:UISynchronizeShows a busy-indicator to the user while this runnable is executed, long running operations in the UI thread may freeze the UI.- Specified by:
showBusyWhilein classUISynchronize- Parameters:
runnable- the runnable to execute
-
dispatchEvents
protected boolean dispatchEvents()Description copied from class:UISynchronizeRequest to perform an event dispatch cycle.- Specified by:
dispatchEventsin classUISynchronize- Returns:
trueif there might be more work to performfalseotherwise
-