mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: reuse property
GitOrigin-RevId: 0846d5a3a75f7a78e824fc6e6ce9421ce2f82961
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4cf4033b3a
commit
9f775f4e64
@@ -138,7 +138,6 @@ replace.assert.literal.with.assert.equals.intention.name1=Replace ''{0}()'' with
|
||||
adapter.to.listener.intention.name=Replace extension of ''{0}'' with ''Listener'' implementation
|
||||
adapter.to.listener.intention.family.name=Replace adapter extension with listener implementation
|
||||
change.variable.type.to.rhs.type.intention.name=Declare ''{0}'' with type ''{1}''
|
||||
change.modifier.text=Make ''{0}'' {1}
|
||||
convert.datapoints.fix.family.name=Convert @DataPoint(s) annotation holder
|
||||
make.method.default.family.name=Make method default
|
||||
intention.name.make.default=Make ''{0}()'' default
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.siyeh.ipp.modifiers;
|
||||
|
||||
import com.intellij.codeInsight.daemon.QuickFixBundle;
|
||||
import com.intellij.codeInsight.intention.BaseElementAtCaretIntentionAction;
|
||||
import com.intellij.core.JavaPsiBundle;
|
||||
import com.intellij.java.JavaBundle;
|
||||
@@ -100,7 +101,7 @@ public class ChangeModifierIntention extends BaseElementAtCaretIntentionAction {
|
||||
target = modifiers.get(0);
|
||||
String name = identifier.getText();
|
||||
if (member instanceof PsiMethod) name += "()";
|
||||
setText(IntentionPowerPackBundle.message("change.modifier.text", name, target));
|
||||
setText(QuickFixBundle.message("add.modifier.fix", name, target));
|
||||
}
|
||||
else {
|
||||
setText(getFamilyName());
|
||||
|
||||
Reference in New Issue
Block a user