Package org.eclipse.jface.operation
Class ProgressMonitorUtil
java.lang.Object
org.eclipse.jface.operation.ProgressMonitorUtil
Contains static methods for constructing and manipulating progress monitors.
- Since:
- 3.13
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IProgressMonitorWithBlocking
createAccumulatingProgressMonitor
(IProgressMonitor monitor, Display display) Deprecated.static IProgressMonitor
createUIProgressMonitor
(IProgressMonitor monitor, Display display) Wraps anIProgressMonitor
associated with the UI thread, producing a newIProgressMonitor
which can be used from any one thread.
-
Constructor Details
-
ProgressMonitorUtil
public ProgressMonitorUtil()
-
-
Method Details
-
createAccumulatingProgressMonitor
@Deprecated public static IProgressMonitorWithBlocking createAccumulatingProgressMonitor(IProgressMonitor monitor, Display display) Deprecated.Wraps anIProgressMonitor
associated with the UI thread, producing a newIProgressMonitor
which can be used from any one thread. The resulting progress monitor will send changes to the wrapped monitor asynchronously.May be called from any thread. The thread that uses the resulting progress monitor need not be the same as the thread that constructs it.
- Parameters:
monitor
- a progress monitor that should only be updated on the UI threaddisplay
- Display associated with the progress monitor's UI thread- Returns:
- a progress monitor wrapper that can accumulate progress events from a non-ui thread, and send them to the wrapped monitor on the UI thread
- Since:
- 3.13
-
createUIProgressMonitor
Wraps anIProgressMonitor
associated with the UI thread, producing a newIProgressMonitor
which can be used from any one thread. The resulting progress monitor will send changes to the wrapped monitor asynchronously.May be called from any thread. The thread that uses the resulting progress monitor need not be the same as the thread that constructs it.
- Parameters:
monitor
- a progress monitor that should only be updated on the UI threaddisplay
- Display associated with the progress monitor's UI thread- Returns:
- a progress monitor wrapper that can accumulate progress events from a non-ui thread, and send them to the wrapped monitor on the UI thread
- Since:
- 3.22
-
createUIProgressMonitor(IProgressMonitor, Display)
instead