Java file icon patcher to patch not only Java file icon

This commit is contained in:
Roman Shevchenko
2010-06-16 22:52:36 +04:00
parent 5883e34584
commit d5ae71df97
@@ -36,7 +36,7 @@ import javax.swing.*;
*/
public class JavaFileIconPatcher implements FileIconPatcher {
public Icon patchIcon(final Icon baseIcon, final VirtualFile file, final int flags, final Project project) {
if (project == null || file.getFileType() != StdFileTypes.JAVA) {
if (project == null) {
return baseIcon;
}