mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
projectview tests fixed
This commit is contained in:
+4
-1
@@ -41,7 +41,10 @@ public class PackageViewLibrariesNode extends ProjectViewNode<LibrariesElement>{
|
||||
}
|
||||
|
||||
public boolean contains(@NotNull final VirtualFile file) {
|
||||
return someChildContainsFile(file);
|
||||
ProjectFileIndex index = ProjectRootManager.getInstance(getProject()).getFileIndex();
|
||||
if (!index.isInLibrarySource(file) && !index.isInLibraryClasses(file)) return false;
|
||||
|
||||
return someChildContainsFile(file, false);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user