mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable inplace change signature on usage
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user