mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-205760 Pressing Enter on a package selects a package in a Project View tree
This commit is contained in:
+1
-2
@@ -131,13 +131,12 @@ public class DefaultNavBarExtension extends AbstractNavBarModelExtension {
|
||||
RootType scratchRootType = RootType.forFile(PsiUtilCore.getVirtualFile(directory));
|
||||
ModuleFileIndex moduleFileIndex =
|
||||
rootElement instanceof Module ? ModuleRootManager.getInstance((Module)rootElement).getFileIndex() : null;
|
||||
directory.processChildren(child -> {
|
||||
return directory.processChildren(child -> {
|
||||
VirtualFile childFile = PsiUtilCore.getVirtualFile(child);
|
||||
if (childFile != null && scratchRootType != null && scratchRootType.isIgnored(project, childFile)) return true;
|
||||
if (childFile != null && moduleFileIndex != null && !moduleFileIndex.isInContent(childFile)) return true;
|
||||
return processor.process(child);
|
||||
});
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user