mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clean up
GitOrigin-RevId: a9ce5d406f6d3f6d1ecb99678cb69a4e9a1a9009
This commit is contained in:
committed by
intellij-monorepo-bot
parent
65f918a29f
commit
83c898e759
@@ -243,11 +243,13 @@ public final class ProgressRunner<R> {
|
||||
resultFuture.completeExceptionally(t);
|
||||
}
|
||||
}
|
||||
else if (ApplicationManager.getApplication().isDispatchThread()) {
|
||||
resultFuture = execFromEDT(progressFuture, modalityEntered, onThreadCallable);
|
||||
}
|
||||
else {
|
||||
resultFuture = normalExec(progressFuture, modalityEntered, onThreadCallable);
|
||||
if (ApplicationManager.getApplication().isDispatchThread()) {
|
||||
resultFuture = execFromEDT(progressFuture, modalityEntered, onThreadCallable);
|
||||
}
|
||||
else {
|
||||
resultFuture = normalExec(progressFuture, modalityEntered, onThreadCallable);
|
||||
}
|
||||
}
|
||||
|
||||
return resultFuture.handle((result, e) -> {
|
||||
|
||||
Reference in New Issue
Block a user