mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cancel automatic renamer should not cancel rename itself (IDEA-145351)
This commit is contained in:
@@ -230,9 +230,12 @@ public class RenameProcessor extends BaseRefactoringProcessor {
|
||||
}
|
||||
|
||||
private boolean findRenamedVariables(final List<UsageInfo> variableUsages) {
|
||||
for (final AutomaticRenamer automaticVariableRenamer : myRenamers) {
|
||||
for (Iterator<AutomaticRenamer> iterator = myRenamers.iterator(); iterator.hasNext(); ) {
|
||||
AutomaticRenamer automaticVariableRenamer = iterator.next();
|
||||
if (!automaticVariableRenamer.hasAnythingToRename()) continue;
|
||||
if (!showAutomaticRenamingDialog(automaticVariableRenamer)) return false;
|
||||
if (!showAutomaticRenamingDialog(automaticVariableRenamer)) {
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
|
||||
final Runnable runnable = new Runnable() {
|
||||
|
||||
+1
-1
@@ -241,7 +241,7 @@ public class VariableInplaceRenamer extends InplaceRefactoring {
|
||||
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
final AutomaticRenamingDialog renamingDialog = new AutomaticRenamingDialog(myProject, renamer);
|
||||
if (!renamingDialog.showAndGet()) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user