EA-105239 - PCE: InjectedGeneralHighlightingPass.getInjectedPsiFiles

This commit is contained in:
Alexey Kudravtsev
2017-08-07 19:04:23 +03:00
parent c43b555b78
commit baa6da7a38
@@ -130,13 +130,10 @@ public class AbstractProgressIndicatorBase extends UserDataHolderBase implements
@Override
public void checkCanceled() {
CoreProgressManager.runCheckCanceledHooks(this);
if (isCanceled() && isCancelable()) {
throw new ProcessCanceledException(getCancellationTrace());
}
if (CoreProgressManager.runCheckCanceledHooks(this)) {
if (isCanceled() && isCancelable()) {
throw new ProcessCanceledException(getCancellationTrace());
}
Throwable trace = getCancellationTrace();
throw new ProcessCanceledException(trace instanceof ProcessCanceledException ? trace.getCause() : trace);
}
}