mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
run in-place refactorings under write action
This commit is contained in:
+1
-2
@@ -870,9 +870,8 @@ public abstract class InplaceRefactoring {
|
||||
public void templateFinished(Template template, final boolean brokenOff) {
|
||||
boolean bind = false;
|
||||
try {
|
||||
super.templateFinished(template, brokenOff);
|
||||
if (!brokenOff) {
|
||||
bind = performRefactoring();
|
||||
bind = ApplicationManager.getApplication().runWriteAction((Computable<Boolean>)InplaceRefactoring.this::performRefactoring);
|
||||
} else {
|
||||
performCleanup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user