don't walk module src roots in search for .class file source (IDEA-116085)

This commit is contained in:
peter
2013-11-07 21:47:34 +01:00
parent 992d7404df
commit 8e11281d4d
@@ -119,7 +119,9 @@ public class JavaPsiImplementationHelperImpl extends JavaPsiImplementationHelper
ProjectFileIndex projectFileIndex = ProjectFileIndex.SERVICE.getInstance(clsFile.getProject());
final Set<VirtualFile> sourceRoots = ContainerUtil.newLinkedHashSet();
for (OrderEntry orderEntry : projectFileIndex.getOrderEntriesForFile(vFile)) {
Collections.addAll(sourceRoots, orderEntry.getFiles(OrderRootType.SOURCES));
if (orderEntry instanceof LibraryOrSdkOrderEntry) {
Collections.addAll(sourceRoots, orderEntry.getFiles(OrderRootType.SOURCES));
}
}
for (VirtualFile root : sourceRoots) {
VirtualFile source = root.findFileByRelativePath(relativeFilePath);