File type icon is used for tab but not in project view

Answered

Hello,

 

I'm working on a plugin to support the R language in Intellij. I have the problem that the language icon (defined in com.r4intellij.RFileType#getIcon which extends com.intellij.openapi.fileTypes.LanguageFileType) is showing up in the tab but not as file-icon in the project view. What could be the reason?

 

I've checked for file type collisions (by registering a second file extension for the plugin) but there seems to be none.

 

Best regards,

Holger

 

Example:

0
2 comments
Avatar
Permanently deleted user

It looks like there is an IconProvider that spoils icon, so please check your installed plugins.

0
Avatar
Permanently deleted user

Hello Vassilly,

 

it turned out that I spoiled myself  by having another getIcon method in my com.intellij.psi.PsiFile implementation. So my com.intellij.openapi.fileTypes.FileType#getIcon was just used for the tabs but not for the project-view for which the first implementation took precedence.

 

Thanks for your help,

best

Holger

 

0

Please sign in to leave a comment.