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 Details

    • ProgressMonitorUtil

      public ProgressMonitorUtil()
  • Method Details

    • createAccumulatingProgressMonitor

      @Deprecated public static IProgressMonitorWithBlocking createAccumulatingProgressMonitor(IProgressMonitor monitor, Display display)
      Wraps an IProgressMonitor associated with the UI thread, producing a new IProgressMonitor 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 thread
      display - 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 an IProgressMonitor associated with the UI thread, producing a new IProgressMonitor 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 thread
      display - 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