perform introduce inside a command preventing client's undo problems

This commit is contained in:
anna
2012-03-12 18:31:28 +01:00
parent a625903648
commit b1ccfbdbd7
@@ -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);