mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: disable interactive part of quickfix when in batch mode
This commit is contained in:
+4
-2
@@ -105,8 +105,10 @@ public class ExtractParameterAsLocalVariableFix extends InspectionGadgetsFix {
|
||||
? codeBlock.addBefore(newStatement, anchor)
|
||||
: anchor.replace(newStatement));
|
||||
replaceReferences(collector.getCollection(), variableName, body);
|
||||
final PsiLocalVariable variable = (PsiLocalVariable)newStatement.getDeclaredElements()[0];
|
||||
HighlightUtil.showRenameTemplate(body, variable);
|
||||
if (isOnTheFly()) {
|
||||
final PsiLocalVariable variable = (PsiLocalVariable)newStatement.getDeclaredElements()[0];
|
||||
HighlightUtil.showRenameTemplate(body, variable);
|
||||
}
|
||||
}
|
||||
|
||||
private static void replaceReferences(Collection<PsiReferenceExpression> collection, String newVariableName, PsiElement context) {
|
||||
|
||||
Reference in New Issue
Block a user