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()); } } }
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()); } } }
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 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); } } }
/** 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); } } }
/** 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 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 throwExceptionIfCanceled(IProgressMonitor progressMonitor) throws CancelException { if (progressMonitor != null) { if (progressMonitor.isCanceled()) { throw CancelException.make(progressMonitor.getCancelMessage()); } } } /** BEGIN Custom change: more on subtasks */
/** 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); } } }
/** */ @Override public CGNode findOrCreateNode(IMethod method, Context context) throws CancelException { if (method == null) { throw new IllegalArgumentException("null method"); } if (context == null) { throw new IllegalArgumentException("null context"); } Key k = new Key(method, context); CGNode result = getNode(k); if (result == null) { if (maxNumberOfNodes == -1 || getNumberOfNodes() < maxNumberOfNodes) { result = makeNode(method, context); registerNode(k, result); } else { throw CancelException.make("Too many nodes"); } } return result; }
/** */ @Override public CGNode findOrCreateNode(IMethod method, Context context) throws CancelException { if (method == null) { throw new IllegalArgumentException("null method"); } if (context == null) { throw new IllegalArgumentException("null context"); } Key k = new Key(method, context); CGNode result = getNode(k); if (result == null) { if (maxNumberOfNodes == -1 || getNumberOfNodes() < maxNumberOfNodes) { result = makeNode(method, context); registerNode(k, result); } else { throw CancelException.make("Too many nodes"); } } return result; }
System.err.println("Bail out from call graph limit" + i); throw CancelException.make("reached call graph size limit");
System.err.println("Bail out from call graph limit" + i); throw CancelException.make("reached call graph size limit");