From 18da24fa6256bb99877c47d930e79da4ff8725f6 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 23 Jul 2012 17:41:46 +0200 Subject: [PATCH] rename invalid method: prepend renaming ref to preserve old name (IDEA-89045) --- .../codeInsight/daemon/impl/quickfix/RenameWrongRefFix.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/RenameWrongRefFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/RenameWrongRefFix.java index 1d0d44cd300f..7ce328b63199 100644 --- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/RenameWrongRefFix.java +++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/RenameWrongRefFix.java @@ -176,6 +176,7 @@ public class RenameWrongRefFix implements IntentionAction { } } + items.add(LookupElementBuilder.create(myRefExpr.getReferenceName())); MyScopeProcessor processor = new MyScopeProcessor(myRefExpr); myRefExpr.processVariants(processor); PsiElement[] variants = processor.getVariants();