File tree Expand file tree Collapse file tree
plugin/src/main/java/com/intellij/java/impl/internal/psiView Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616package com .intellij .java .impl .internal .psiView ;
1717
1818import consulo .annotation .component .ExtensionImpl ;
19- import consulo .ide .impl .idea .util .PlatformIcons ;
2019import consulo .language .psi .PsiElement ;
20+ import consulo .platform .base .icon .PlatformIconGroup ;
2121import consulo .project .Project ;
2222
2323import javax .swing .*;
2828 */
2929@ ExtensionImpl
3030public class PsiViewerCodeFragmentExtension extends JavaPsiViewerExtension {
31- public String getName () {
32- return "Java Code Block" ;
33- }
31+ @ Override
32+ public String getName () {
33+ return "Java Code Block" ;
34+ }
3435
35- public Icon getIcon () {
36- return PlatformIcons .CLASS_INITIALIZER ;
37- }
36+ @ Override
37+ public Icon getIcon () {
38+ return (Icon ) PlatformIconGroup .nodesClassinitializer ();
39+ }
3840
39- public PsiElement createElement (Project project , String text ) {
40- return getFactory (project ).createCodeBlockFromText (text , null );
41- }
41+ @ Override
42+ public PsiElement createElement (Project project , String text ) {
43+ return getFactory (project ).createCodeBlockFromText (text , null );
44+ }
4245}
Original file line number Diff line number Diff line change 1616package com .intellij .java .impl .internal .psiView ;
1717
1818import consulo .annotation .component .ExtensionImpl ;
19- import consulo .ide .impl .idea .util .PlatformIcons ;
2019import consulo .language .psi .PsiElement ;
20+ import consulo .platform .base .icon .PlatformIconGroup ;
2121import consulo .project .Project ;
2222
2323import javax .swing .*;
2828 */
2929@ ExtensionImpl
3030public class PsiViewerExpressionExtension extends JavaPsiViewerExtension {
31- public String getName () {
32- return "Java Expression" ;
33- }
31+ @ Override
32+ public String getName () {
33+ return "Java Expression" ;
34+ }
3435
35- public Icon getIcon () {
36- return PlatformIcons .CLASS_INITIALIZER ;
37- }
36+ @ Override
37+ public Icon getIcon () {
38+ return (Icon ) PlatformIconGroup .nodesClassinitializer ();
39+ }
3840
39- public PsiElement createElement (Project project , String text ) {
40- return getFactory (project ).createExpressionFromText (text , null );
41- }
41+ @ Override
42+ public PsiElement createElement (Project project , String text ) {
43+ return getFactory (project ).createExpressionFromText (text , null );
44+ }
4245}
Original file line number Diff line number Diff line change 1616package com .intellij .java .impl .internal .psiView ;
1717
1818import consulo .annotation .component .ExtensionImpl ;
19- import consulo .ide .impl .idea .util .PlatformIcons ;
2019import consulo .language .psi .PsiElement ;
20+ import consulo .platform .base .icon .PlatformIconGroup ;
2121import consulo .project .Project ;
2222
2323import javax .swing .*;
2828 */
2929@ ExtensionImpl
3030public class PsiViewerMethodExtension extends JavaPsiViewerExtension {
31- public String getName () {
32- return "Java Method" ;
33- }
31+ @ Override
32+ public String getName () {
33+ return "Java Method" ;
34+ }
3435
35- public Icon getIcon () {
36- return PlatformIcons .METHOD_ICON ;
37- }
36+ @ Override
37+ public Icon getIcon () {
38+ return (Icon ) PlatformIconGroup .nodesMethod ();
39+ }
3840
39- public PsiElement createElement (Project project , String text ) {
40- return getFactory (project ).createMethodFromText (text , null );
41- }
41+ @ Override
42+ public PsiElement createElement (Project project , String text ) {
43+ return getFactory (project ).createMethodFromText (text , null );
44+ }
4245}
You can’t perform that action at this time.
0 commit comments