[java-intentions] ReceiverParameterNameFix: change the text shown in the quick-fix popup

IDEA-273225
IJ-CR-20529

GitOrigin-RevId: d3cfbb2b3b7c8f33974085c278d158a5c6a0bbba
This commit is contained in:
Andrey.Cherkasov
2022-02-17 13:20:00 +00:00
committed by intellij-monorepo-bot
parent f4d520ac72
commit 36709d3981
7 changed files with 8 additions and 7 deletions
@@ -2,6 +2,7 @@
package com.intellij.codeInsight.daemon.impl.quickfix;
import com.intellij.codeInsight.daemon.QuickFixBundle;
import com.intellij.codeInspection.CommonQuickFixBundle;
import com.intellij.codeInspection.LocalQuickFixAndIntentionActionOnPsiElement;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
@@ -23,7 +24,7 @@ public class ReceiverParameterNameFix extends LocalQuickFixAndIntentionActionOnP
@Override
@NotNull
public String getText() {
return QuickFixBundle.message("fix.receiver.parameter.name.text", myNewName);
return CommonQuickFixBundle.message("fix.replace.with.x", myNewName);
}
@NotNull
@@ -1,4 +1,4 @@
// "Change to 'A.this'" "true"
// "Replace with 'A.this'" "true"
class A {
class B {
B(A A.this) {}
@@ -1,4 +1,4 @@
// "Change to 'A.this'" "true"
// "Replace with 'A.this'" "true"
class A {
class B {
B(A A.this) {}
@@ -1,4 +1,4 @@
// "Change to 'this'" "true"
// "Replace with 'this'" "true"
class A {
class B {
void m(B this) {}
@@ -1,4 +1,4 @@
// "Change to 'A.this'" "true"
// "Replace with 'A.this'" "true"
class A {
class B {
B(A this<caret>) {}
@@ -1,4 +1,4 @@
// "Change to 'A.this'" "true"
// "Replace with 'A.this'" "true"
class A {
class B {
B(A B.this<caret>) {}
@@ -1,4 +1,4 @@
// "Change to 'this'" "true"
// "Replace with 'this'" "true"
class A {
class B {
void m(B A.this<caret>) {}