mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not later perform automatic rename in tests
This commit is contained in:
+7
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user