Package com._1c.g5.v8.derived.computer
Class DerivedDataComputerMonitorHolder
java.lang.Object
com._1c.g5.v8.derived.computer.DerivedDataComputerMonitorHolder
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 Summary
Modifier and TypeMethodDescriptionstatic voidCleans the stored monitor, if anystatic voidstatic org.eclipse.core.runtime.IProgressMonitorGets the current monitor for the current thread, if setstatic voidsetCurrentMonitor(org.eclipse.core.runtime.IProgressMonitor monitor) Sets the current monitor for the current thread
-
Method Details
-
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 benull
-