Class ProgressMonitorUtil


  • public final class ProgressMonitorUtil
    extends Object
    Contains static methods for constructing and manipulating progress monitors.
    Since:
    3.13
    • Constructor Detail

      • ProgressMonitorUtil

        public ProgressMonitorUtil()
    • Method Detail

      • createAccumulatingProgressMonitor

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