JavaFindUsagesProvider: better section name for record component

GitOrigin-RevId: 75da138e5a49b7505bd00f605b1025b8b5edbd80
This commit is contained in:
Roman.Ivanov
2019-12-26 16:03:58 +07:00
committed by intellij-monorepo-bot
parent 8e79f5a4f2
commit e0ba033faf
2 changed files with 4 additions and 0 deletions

View File

@@ -113,6 +113,9 @@ public class JavaFindUsagesProvider implements FindUsagesProvider {
if (element instanceof PsiJavaModule) {
return LangBundle.message("java.terms.module");
}
if (element instanceof PsiRecordComponent) {
return LangBundle.message("java.terms.record.component");
}
final String name = TypePresentationService.getService().getTypePresentableName(element.getClass());
if (name != null) {

View File

@@ -13,6 +13,7 @@ java.terms.instance.initializer=instance initializer
java.terms.enum=enum
java.terms.annotation.interface=@interface
java.terms.module=module
java.terms.record.component=record component
java.terms.label=label
java.terms.constructor=constructor
terms.directory=directory