mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rollback readAction
This commit is contained in:
@@ -447,7 +447,19 @@ public class AbstractTreeBuilder implements Disposable {
|
||||
|
||||
protected void runBackgroundLoading(@NotNull final Runnable runnable) {
|
||||
if (isDisposed()) return;
|
||||
runnable.run();
|
||||
|
||||
final Application app = ApplicationManager.getApplication();
|
||||
if (app != null) {
|
||||
app.runReadAction(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
runnable.run();
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
|
||||
protected void updateAfterLoadedInBackground(@NotNull Runnable runnable) {
|
||||
|
||||
Reference in New Issue
Block a user