File tree Expand file tree Collapse file tree
composite-formatting-string/src/main/java/consulo/dotnet/cfs
msil-psi-impl/src/main/java/consulo/msil/impl/ide/navigation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import consulo .codeEditor .HighlighterColors ;
66import consulo .colorScheme .TextAttributesKey ;
77import consulo .colorScheme .setting .AttributesDescriptor ;
8- import consulo .colorScheme .setting .ColorDescriptor ;
98import consulo .dotnet .cfs .lang .CfsLanguage ;
109import consulo .dotnet .cfs .lang .CfsTokens ;
1110import consulo .dotnet .cfs .lang .IndexCfsLanguageVersion ;
1211import consulo .language .ast .IElementType ;
1312import consulo .language .editor .colorScheme .setting .ColorSettingsPage ;
1413import consulo .language .editor .highlight .SyntaxHighlighter ;
15-
1614import jakarta .annotation .Nonnull ;
1715import jakarta .annotation .Nullable ;
1816
@@ -83,17 +81,10 @@ public AttributesDescriptor[] getAttributeDescriptors()
8381 return myAttributesDescriptors ;
8482 }
8583
86- @ Nonnull
87- @ Override
88- public ColorDescriptor [] getColorDescriptors ()
89- {
90- return new ColorDescriptor [0 ];
91- }
92-
9384 @ Nonnull
9485 @ Override
9586 public String getDisplayName ()
9687 {
97- return CfsLanguage .INSTANCE .getDisplayName ();
88+ return CfsLanguage .INSTANCE .getDisplayName (). get () ;
9889 }
9990}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public abstract class BaseExpressionCfsLanguageVersion extends BaseCfsLanguageVe
3535
3636 public BaseExpressionCfsLanguageVersion (@ Nonnull Language baseLanguage )
3737 {
38- super (baseLanguage .getName () + "_EXPRESSION" , CfsLanguage .INSTANCE );
38+ super (baseLanguage .getID () + "_EXPRESSION" , CfsLanguage .INSTANCE );
3939 }
4040
4141 public abstract IElementType createExpressionElementType ();
Original file line number Diff line number Diff line change 1717package consulo .dotnet .cfs .lang ;
1818
1919import consulo .language .Language ;
20+ import consulo .localize .LocalizeValue ;
2021import jakarta .annotation .Nonnull ;
2122
2223/**
@@ -34,8 +35,8 @@ public CfsLanguage()
3435
3536 @ Nonnull
3637 @ Override
37- public String getDisplayName ()
38+ public LocalizeValue getDisplayName ()
3839 {
39- return "Composite Formatting String" ;
40+ return LocalizeValue . localizeTODO ( "Composite Formatting String" ) ;
4041 }
4142}
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public void navigate(final boolean requestFocus)
149149 @ Override
150150 public String getTextFor (LanguageFileType value )
151151 {
152- return value .getLanguage ().getDisplayName ();
152+ return value .getLanguage ().getDisplayName (). get () ;
153153 }
154154
155155 @ Override
You can’t perform that action at this time.
0 commit comments