private final IProgressUiProvider mUi;\r
\r
/**\r
+ * Returns true if the given {@code monitor} is an instance of {@link TaskMonitorImpl}\r
+ * or its private SubTaskMonitor.\r
+ */\r
+ public static boolean isTaskMonitorImpl(ITaskMonitor monitor) {\r
+ return monitor instanceof TaskMonitorImpl || monitor instanceof SubTaskMonitor;\r
+ }\r
+\r
+ /**\r
* Constructs a new {@link TaskMonitorImpl} that relies on the given\r
* {@link IProgressUiProvider} to change the user interface.\r
* @param ui The {@link IProgressUiProvider}. Cannot be null.\r