mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Project View: show special icon for content root of unloaded modules (IDEA-27471)
This commit is contained in:
@@ -59,6 +59,9 @@ public class JavaDirectoryIconProvider extends IconProvider implements DumbAware
|
||||
Module module = ProjectRootManager.getInstance(project).getFileIndex().getModuleForFile(vFile);
|
||||
symbolIcon = module != null ? ModuleType.get(module).getIcon() : PlatformIcons.CONTENT_ROOT_ICON_CLOSED;
|
||||
}
|
||||
else if (ProjectRootsUtil.computeNameOfUnloadedModuleByContentRoot(vFile, project) != null) {
|
||||
symbolIcon = AllIcons.Modules.UnloadedModule;
|
||||
}
|
||||
else if ((sourceFolder = ProjectRootsUtil.getModuleSourceRoot(vFile, project)) != null) {
|
||||
symbolIcon = SourceRootPresentation.getSourceRootIcon(sourceFolder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user