javadoc roots: fix for library located under module dir

This commit is contained in:
Eugene Zhuravlev
2010-10-11 13:23:30 +04:00
committed by anna
parent e62192015a
commit edffc8f3c2
@@ -701,7 +701,11 @@ public class JavaDocumentationProvider implements CodeDocumentationProvider, Ext
}
if (module != null) {
String[] javadocPaths = ModuleRootManager.getInstance(module).getRootUrls(JavadocOrderRootType.getInstance());
return getHttpRoots(javadocPaths, relPath);
final List<String> httpRoots = getHttpRoots(javadocPaths, relPath);
// if found nothing and the file is from library classes, fall back to order entries
if (httpRoots != null || !fileIndex.isInLibraryClasses(virtualFile)) {
return httpRoots;
}
}
final List<OrderEntry> orderEntries = fileIndex.getOrderEntriesForFile(virtualFile);