mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java "Anonymous class" node filter: proper capitalization for action text
GitOrigin-RevId: 146979a1da0f4ca5b0d10f778949027e95869476
This commit is contained in:
committed by
intellij-monorepo-bot
parent
629ad30018
commit
c158a819be
@@ -2,5 +2,6 @@
|
||||
action.structureview.show.non.public=Non-public
|
||||
action.structureview.show.properties=Properties
|
||||
file.structure.toggle.show.anonymous.classes=Anonymous Classes
|
||||
file.structure.toggle.show.anonymous.classes.check.box.text=Anonymous classes
|
||||
file.structure.toggle.show.collapse.show.lambdas=Lambdas
|
||||
static.class.initializer={0}class initializer
|
||||
+5
-3
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.ide.structureView.impl.java;
|
||||
|
||||
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase;
|
||||
@@ -29,6 +29,7 @@ import java.util.List;
|
||||
*/
|
||||
public final class JavaAnonymousClassesNodeProvider
|
||||
implements FileStructureNodeProvider<JavaAnonymousClassTreeElement>, PropertyOwner, DumbAware {
|
||||
|
||||
public static final @NonNls String ID = "SHOW_ANONYMOUS";
|
||||
public static final @NonNls String JAVA_ANONYMOUS_PROPERTY_NAME = "java.anonymous.provider";
|
||||
|
||||
@@ -54,7 +55,7 @@ public final class JavaAnonymousClassesNodeProvider
|
||||
|
||||
@Override
|
||||
public @NotNull String getCheckBoxText() {
|
||||
return JavaStructureViewBundle.message("file.structure.toggle.show.anonymous.classes");
|
||||
return JavaStructureViewBundle.message("file.structure.toggle.show.anonymous.classes.check.box.text");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -64,7 +65,8 @@ public final class JavaAnonymousClassesNodeProvider
|
||||
|
||||
@Override
|
||||
public @NotNull ActionPresentation getPresentation() {
|
||||
return new ActionPresentationData(getCheckBoxText(), null, IconManager.getInstance().getPlatformIcon(PlatformIcons.AnonymousClass));
|
||||
String text = JavaStructureViewBundle.message("file.structure.toggle.show.anonymous.classes");
|
||||
return new ActionPresentationData(text, null, IconManager.getInstance().getPlatformIcon(PlatformIcons.AnonymousClass));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user