Commit 0921e373 authored by Gregory.Shrago's avatar Gregory.Shrago
Browse files

IDEA-205760 Pressing Enter on a package selects a package in a Project View tree

(cherry picked from commit aa2fc7bb)
parent b8ee259f
Showing with 1 addition and 2 deletions
+1 -2
......@@ -132,13 +132,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;
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment