mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
don't take icons from synthetic classes
This commit is contained in:
@@ -48,7 +48,7 @@ public class JavaFileIconPatcher implements FileIconPatcher {
|
||||
// prefer icon of the class named after file
|
||||
final String fileName = file.getNameWithoutExtension();
|
||||
for (PsiClass aClass : classes) {
|
||||
if (Comparing.strEqual(aClass.getName(), fileName)) {
|
||||
if (!(aClass instanceof SyntheticElement) && Comparing.strEqual(aClass.getName(), fileName)) {
|
||||
return aClass.getIcon(flags);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user