mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
f4d520ac72
commit
36709d3981
+2
-1
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
// "Change to 'A.this'" "true"
|
||||
// "Replace with 'A.this'" "true"
|
||||
class A {
|
||||
class B {
|
||||
B(A A.this) {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change to 'A.this'" "true"
|
||||
// "Replace with 'A.this'" "true"
|
||||
class A {
|
||||
class B {
|
||||
B(A A.this) {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change to 'this'" "true"
|
||||
// "Replace with 'this'" "true"
|
||||
class A {
|
||||
class B {
|
||||
void m(B this) {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change to 'A.this'" "true"
|
||||
// "Replace with 'A.this'" "true"
|
||||
class A {
|
||||
class B {
|
||||
B(A this<caret>) {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change to 'A.this'" "true"
|
||||
// "Replace with 'A.this'" "true"
|
||||
class A {
|
||||
class B {
|
||||
B(A B.this<caret>) {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change to 'this'" "true"
|
||||
// "Replace with 'this'" "true"
|
||||
class A {
|
||||
class B {
|
||||
void m(B A.this<caret>) {}
|
||||
|
||||
Reference in New Issue
Block a user