mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
refactorings: perform psi spoiling operations under progress
This commit is contained in:
@@ -496,7 +496,12 @@ public abstract class BaseRefactoringProcessor implements Runnable {
|
||||
e.getKey().performOperation(myProject, e.getValue());
|
||||
}
|
||||
myTransaction.commit();
|
||||
app.runWriteAction(() -> performPsiSpoilingRefactoring());
|
||||
if (Registry.is("run.refactorings.under.progress")) {
|
||||
app.runWriteActionWithProgressInDispatchThread(getCommandName(), myProject, null, null, indicator -> performPsiSpoilingRefactoring());
|
||||
}
|
||||
else {
|
||||
app.runWriteAction(() -> performPsiSpoilingRefactoring());
|
||||
}
|
||||
}
|
||||
finally {
|
||||
action.finish();
|
||||
|
||||
Reference in New Issue
Block a user