Class MonitorUtil
java.lang.Object
com.ibm.wala.util.MonitorUtil
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Use this interface to decouple core utilities from the Eclipse layer -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
beginTask
(MonitorUtil.IProgressMonitor monitor, String task, int totalWork) static void
cancel
(MonitorUtil.IProgressMonitor progress) static void
done
(MonitorUtil.IProgressMonitor monitor) static boolean
isCanceled
(MonitorUtil.IProgressMonitor progressMonitor) static void
subTask
(MonitorUtil.IProgressMonitor progressMonitor, String subTask) static void
throwExceptionIfCanceled
(MonitorUtil.IProgressMonitor progressMonitor) static void
worked
(MonitorUtil.IProgressMonitor monitor, int units)
-
Constructor Details
-
MonitorUtil
public MonitorUtil()
-
-
Method Details
-
beginTask
public static void beginTask(MonitorUtil.IProgressMonitor monitor, String task, int totalWork) throws CancelException - Throws:
CancelException
-
done
- Throws:
CancelException
-
worked
- Throws:
CancelException
-
throwExceptionIfCanceled
public static void throwExceptionIfCanceled(MonitorUtil.IProgressMonitor progressMonitor) throws CancelException - Throws:
CancelException
-
subTask
public static void subTask(MonitorUtil.IProgressMonitor progressMonitor, String subTask) throws CancelException - Throws:
CancelException
-
isCanceled
-
cancel
-