Class DerivedDataComputerMonitorHolder


  • public class DerivedDataComputerMonitorHolder
    extends Object
    Threadlocal monitor holder for the current IDerivedDataComputer computation call. Should be used in the legacy code for operative cancelling of computations in case if the monitor isn't available via the method call parameters
    • Method Detail

      • cleanMonitor

        public static void cleanMonitor()
        Cleans the stored monitor, if any
      • dropIfCancelled

        public static void dropIfCancelled()
      • getCurrentMonitor

        public static org.eclipse.core.runtime.IProgressMonitor getCurrentMonitor()
        Gets the current monitor for the current thread, if set
        Returns:
        The current monitor if any. May be null
      • setCurrentMonitor

        public static void setCurrentMonitor​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Sets the current monitor for the current thread
        Parameters:
        monitor - The monitor to set. May not be null