mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
perform introduce inside a command preventing client's undo problems
This commit is contained in:
+8
-1
@@ -485,7 +485,14 @@ public abstract class AbstractInplaceIntroducer<V extends PsiNameIdentifierOwner
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
performIntroduce();
|
||||
|
||||
CommandProcessor.getInstance().executeCommand(myProject, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
performIntroduce();
|
||||
}
|
||||
}, getCommandName(), getCommandName());
|
||||
|
||||
V variable = getVariable();
|
||||
if (variable != null) {
|
||||
saveSettings(variable);
|
||||
|
||||
Reference in New Issue
Block a user