public static void done(IProgressMonitor monitor) throws CancelException { if (monitor != null) { monitor.done(); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + monitor.toString()); } } }
public static void worked(IProgressMonitor monitor, int units) throws CancelException { if (monitor != null) { monitor.worked(units); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + monitor.toString()); } } }
public static void done(IProgressMonitor monitor) throws CancelException { if (monitor != null) { monitor.done(); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + monitor.toString()); } } }
@Override public boolean isCanceled() { return delegate.isCanceled() || timedOut || tooMuchMemory; }
@Override public boolean isCanceled() { return delegate.isCanceled() || timedOut || tooMuchMemory; }
/** BEGIN Custom change: more on subtasks */ public static void subTask(IProgressMonitor progressMonitor, String subTask) throws CancelException { if (progressMonitor != null) { progressMonitor.subTask(subTask); if (progressMonitor.isCanceled()) { throw CancelException.make("cancelled in " + subTask); } } }
public static void throwExceptionIfCanceled(IProgressMonitor progressMonitor) throws CancelException { if (progressMonitor != null) { if (progressMonitor.isCanceled()) { throw CancelException.make(progressMonitor.getCancelMessage()); } } } /** BEGIN Custom change: more on subtasks */
public static void worked(IProgressMonitor monitor, int units) throws CancelException { if (monitor != null) { monitor.worked(units); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + monitor.toString()); } } }
public static void beginTask(IProgressMonitor monitor, String task, int totalWork) throws CancelException { if (monitor != null) { monitor.beginTask(task, totalWork); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + task); } } }
/** BEGIN Custom change: more on subtasks */ public static void subTask(IProgressMonitor progressMonitor, String subTask) throws CancelException { if (progressMonitor != null) { progressMonitor.subTask(subTask); if (progressMonitor.isCanceled()) { throw CancelException.make("cancelled in " + subTask); } } }
public static void done(IProgressMonitor monitor) throws CancelException { if (monitor != null) { monitor.done(); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + monitor.toString()); } } }
public static boolean isCanceled(IProgressMonitor progressMonitor) { if (progressMonitor == null) { return false; } else { return progressMonitor.isCanceled(); } }
public static boolean isCanceled(IProgressMonitor progressMonitor) { if (progressMonitor == null) { return false; } else { return progressMonitor.isCanceled(); } }
/** BEGIN Custom change: more on subtasks */ public static void subTask(IProgressMonitor progressMonitor, String subTask) throws CancelException { if (progressMonitor != null) { progressMonitor.subTask(subTask); if (progressMonitor.isCanceled()) { throw CancelException.make("cancelled in " + subTask); } } }
public static void worked(IProgressMonitor monitor, int units) throws CancelException { if (monitor != null) { monitor.worked(units); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + monitor.toString()); } } }
public static void throwExceptionIfCanceled(IProgressMonitor progressMonitor) throws CancelException { if (progressMonitor != null) { if (progressMonitor.isCanceled()) { throw CancelException.make(progressMonitor.getCancelMessage()); } } } /** BEGIN Custom change: more on subtasks */
public static void beginTask(IProgressMonitor monitor, String task, int totalWork) throws CancelException { if (monitor != null) { monitor.beginTask(task, totalWork); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + task); } } }
public static void beginTask(IProgressMonitor monitor, String task, int totalWork) throws CancelException { if (monitor != null) { monitor.beginTask(task, totalWork); if (monitor.isCanceled()) { throw CancelException.make("cancelled in " + task); } } }
public static boolean isCanceled(IProgressMonitor progressMonitor) { if (progressMonitor == null) { return false; } else { return progressMonitor.isCanceled(); } }
public static void throwExceptionIfCanceled(IProgressMonitor progressMonitor) throws CancelException { if (progressMonitor != null) { if (progressMonitor.isCanceled()) { throw CancelException.make(progressMonitor.getCancelMessage()); } } } /** BEGIN Custom change: more on subtasks */