protected final boolean isCancelled() { return ctx.isCancelled(); }
public @Override boolean isCanceled() { return context.isCancelled() || isLowMemory(null); } },
public @Override boolean isCanceled() { return context.isCancelled() || isLowMemory(null); } },
public @Override boolean isCanceled() { return context.isCancelled() || (checkForMemLow && isLowMemory(null)); } },
@Override public void scanFinished(final Context context) { final TransactionContext txCtx = TransactionContext.get(); assert txCtx != null; try { if (context.isCancelled()) { txCtx.rollBack(); } else { txCtx.commit(); } } catch (IOException ioe) { Exceptions.printStackTrace(ioe); } }
@Override public void scanFinished(Context context) { final TransactionContext txCtx = TransactionContext.get(); assert txCtx != null; try { if (context.isCancelled()) { txCtx.rollBack(); } else { txCtx.commit(); } } catch (IOException ex) { Exceptions.printStackTrace(ex); } } }
for (CompileWorker w : WORKERS) { compileResult = w.compile(compileResult, context, javaContext, toCompileRound); if (compileResult == null || context.isCancelled()) { return; // cancelled, IDE is sutting down if (!context.isSupplementaryFilesIndexing() && !context.isCancelled()) { compileResult.modifiedTypes.addAll(_rt); Map<URL, Set<URL>> root2Rebuild = findDependent(context.getRootURI(), compileResult.modifiedTypes, !_at.isEmpty());
if (tuple != null) { nop = false; if (context.isCancelled()) { return null; if (context.isCancelled() && JavaIndex.LOG.isLoggable(Level.FINEST)) { JavaIndex.LOG.log(Level.FINEST, "SuperOnePassCompileWorker was canceled in root: " + FileUtil.getFileDisplayName(context.getRoot()), ca); //NOI18N return ParsingOutput.failure(file2FQNs, addedTypes, createdFiles, finished, modifiedTypes, aptGenerated); if (context.isCancelled()) { return null; try { final Iterable<? extends TypeElement> types = jt.enter(trees); if (context.isCancelled()) { return null; if (context.isCancelled()) { return null; JavaCustomIndexer.setErrors(context, active, dc); if (context.isCancelled()) { return null;
if (tuple != null) { nop = false; if (context.isCancelled()) { return null; if (context.isCancelled() && JavaIndex.LOG.isLoggable(Level.FINEST)) { JavaIndex.LOG.log(Level.FINEST, "OnePassCompileWorker was canceled in root: " + FileUtil.getFileDisplayName(context.getRoot()), ca); //NOI18N final Queue<Future<Void>> barriers = new ArrayDeque<>(); while(!units.isEmpty()) { if (context.isCancelled()) { return null;
boolean[] flm = null; while (!toProcess.isEmpty() || !bigFiles.isEmpty() || active != null) { if (context.isCancelled()) { return null;