do not later perform automatic rename in tests

This commit is contained in:
anna
2011-08-24 21:13:55 +02:00
parent b56e3ad356
commit 12fbfe579f
@@ -285,11 +285,16 @@ public class VariableInplaceRenamer {
super.templateFinished(template, brokenOff);
moveOffsetAfter(!brokenOff);
if (myNewName != null) {
ApplicationManager.getApplication().invokeLater(new Runnable() {
final Runnable runnable = new Runnable() {
public void run() {
performAutomaticRename(myNewName, getVariable());
}
});
};
if (ApplicationManager.getApplication().isUnitTestMode()){
runnable.run();
} else {
ApplicationManager.getApplication().invokeLater(runnable);
}
}
}