mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
wrap only in-place introduce into a write action
This commit is contained in:
+2
-2
@@ -530,7 +530,7 @@ public abstract class AbstractInplaceIntroducer<V extends PsiNameIdentifierOwner
|
||||
@Override
|
||||
protected boolean performRefactoring() {
|
||||
if (!ensureValid()) return false;
|
||||
CommandProcessor.getInstance().executeCommand(myProject, new Runnable() {
|
||||
WriteCommandAction.runWriteCommandAction(myProject, getCommandName(), getCommandName(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
final String refactoringId = getRefactoringId();
|
||||
@@ -551,7 +551,7 @@ public abstract class AbstractInplaceIntroducer<V extends PsiNameIdentifierOwner
|
||||
}
|
||||
performIntroduce();
|
||||
}
|
||||
}, getCommandName(), getCommandName());
|
||||
});
|
||||
|
||||
V variable = getVariable();
|
||||
if (variable != null) {
|
||||
|
||||
+1
-1
@@ -871,7 +871,7 @@ public abstract class InplaceRefactoring {
|
||||
boolean bind = false;
|
||||
try {
|
||||
if (!brokenOff) {
|
||||
bind = ApplicationManager.getApplication().runWriteAction((Computable<Boolean>)InplaceRefactoring.this::performRefactoring);
|
||||
bind = performRefactoring();
|
||||
} else {
|
||||
performCleanup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user