Package org.eclipse.jface.operation
Class ProgressMonitorUtil
- java.lang.Object
-
- org.eclipse.jface.operation.ProgressMonitorUtil
-
public final class ProgressMonitorUtil extends Object
Contains static methods for constructing and manipulating progress monitors.- Since:
- 3.13
-
-
Constructor Summary
Constructors Constructor Description ProgressMonitorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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
public 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. 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
-
-