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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Schedules the runnable on the UI-Thread for execution and returns immediatelyprotected boolean
Request to perform an event dispatch cycle.boolean
isUIThread
(Thread thread) Checks if the given thread is the UI-Thread.protected void
showBusyWhile
(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.void
Executes the runnable on the UI-Thread and blocks until the runnable is finished
-
Constructor Details
-
DisplayUISynchronize
-
-
Method Details
-
syncExec
Description copied from class:UISynchronize
Executes the runnable on the UI-Thread and blocks until the runnable is finished- Specified by:
syncExec
in classUISynchronize
- Parameters:
runnable
- the runnable to execute
-
asyncExec
Description copied from class:UISynchronize
Schedules the runnable on the UI-Thread for execution and returns immediately- Specified by:
asyncExec
in classUISynchronize
- Parameters:
runnable
- the runnable to execute
-
isUIThread
Description copied from class:UISynchronize
Checks if the given thread is the UI-Thread.- Specified by:
isUIThread
in classUISynchronize
- Parameters:
thread
- to check- Returns:
true
if the thread is the UI-Threadfalse
otherwise
-
showBusyWhile
Description copied from class:UISynchronize
Shows a busy-indicator to the user while this runnable is executed, long running operations in the UI thread may freeze the UI.- Specified by:
showBusyWhile
in classUISynchronize
- Parameters:
runnable
- the runnable to execute
-
dispatchEvents
protected boolean dispatchEvents()Description copied from class:UISynchronize
Request to perform an event dispatch cycle.- Specified by:
dispatchEvents
in classUISynchronize
- Returns:
true
if there might be more work to performfalse
otherwise
-