mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ScopeView: temporary solution for IDEA-153822
This commit is contained in:
@@ -1061,7 +1061,12 @@ public final class ScopeViewTreeModel extends BaseTreeModel<AbstractTreeNode> im
|
||||
if (element == null) element = node.getPsiElement();
|
||||
if (element instanceof PsiDirectory && element.isValid()) {
|
||||
PsiDirectoryFactory factory = PsiDirectoryFactory.getInstance(module.getProject());
|
||||
if (factory != null && factory.isPackage((PsiDirectory)element)) return AllIcons.Nodes.Package;
|
||||
if (factory != null && factory.isPackage((PsiDirectory)element)) {
|
||||
// IDEA-153822: temporary solution to distinguish META-INF from other packages
|
||||
if (factory.isValidPackageName(factory.getQualifiedName((PsiDirectory)element, false))) {
|
||||
return AllIcons.Nodes.Package;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return AllIcons.Nodes.Folder;
|
||||
|
||||
Reference in New Issue
Block a user