disable inplace change signature on usage

This commit is contained in:
Anna.Kozlova
2016-11-17 17:10:53 +01:00
parent 8c99e99396
commit 908a86fd72
@@ -95,7 +95,10 @@ public class JavaChangeSignatureHandler implements ChangeSignatureHandler {
InplaceChangeSignature inplaceChangeSignature = editor != null ? InplaceChangeSignature.getCurrentRefactoring(editor) : null;
ChangeInfo initialChange = inplaceChangeSignature != null ? inplaceChangeSignature.getStableChange() : null;
boolean isInplace = Registry.is("inplace.change.signature") && editor != null && editor.getSettings().isVariableInplaceRenameEnabled() && (initialChange == null || initialChange.getMethod() != method);
boolean isInplace = Registry.is("inplace.change.signature") &&
editor != null && editor.getSettings().isVariableInplaceRenameEnabled() &&
(initialChange == null || initialChange.getMethod() != method) &&
refExpr == null;
PsiIdentifier nameIdentifier = method.getNameIdentifier();
LOG.assertTrue(nameIdentifier != null);
if (isInplace) {