mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
excluded files icons: IAE fixed (EA-102341)
This commit is contained in:
@@ -37,7 +37,7 @@ public class ExcludeFileIconLayerProvider implements IconLayerProvider {
|
||||
if (element instanceof PsiFile) {
|
||||
VirtualFile virtualFile = ((PsiFile)element).getVirtualFile();
|
||||
ProjectFileIndex index = ProjectFileIndex.getInstance(((PsiFile)element).getProject());
|
||||
if (index.isExcluded(virtualFile)) {
|
||||
if (virtualFile != null && index.isExcluded(virtualFile)) {
|
||||
//If the parent directory is also excluded it'll have a special icon (see DirectoryIconProvider), so it makes no sense to add
|
||||
// additional marks for all files under it.
|
||||
if (!index.isExcluded(virtualFile.getParent())) {
|
||||
|
||||
Reference in New Issue
Block a user