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 SummaryConstructors
- 
Method SummaryModifier 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- 
syncExecDescription copied from class:UISynchronizeExecutes the runnable on the UI-Thread and blocks until the runnable is finished- Specified by:
- syncExecin class- UISynchronize
- Parameters:
- runnable- the runnable to execute
 
- 
asyncExecDescription copied from class:UISynchronizeSchedules the runnable on the UI-Thread for execution and returns immediately- Specified by:
- asyncExecin class- UISynchronize
- Parameters:
- runnable- the runnable to execute
 
- 
isUIThreadDescription copied from class:UISynchronizeChecks if the given thread is the UI-Thread.- Specified by:
- isUIThreadin class- UISynchronize
- Parameters:
- thread- to check
- Returns:
- trueif the thread is the UI-Thread- falseotherwise
 
- 
showBusyWhileDescription 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 class- UISynchronize
- Parameters:
- runnable- the runnable to execute
 
- 
dispatchEventsprotected boolean dispatchEvents()Description copied from class:UISynchronizeRequest to perform an event dispatch cycle.- Specified by:
- dispatchEventsin class- UISynchronize
- Returns:
- trueif there might be more work to perform- falseotherwise
 
 
-