mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OC-8394 Documentation not found
This commit is contained in:
+2
-2
@@ -92,10 +92,10 @@ public class CompositeDocumentationProvider extends DocumentationProviderEx impl
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String fetchExternalDocumentation(String link, Project project) {
|
||||
public String fetchExternalDocumentation(@NotNull String link, @Nullable PsiElement element) {
|
||||
for (DocumentationProvider provider : myProviders) {
|
||||
if (provider instanceof ExternalDocumentationHandler && ((ExternalDocumentationHandler)provider).canFetchDocumentationLink(link)) {
|
||||
return ((ExternalDocumentationHandler)provider).fetchExternalDocumentation(link, project);
|
||||
return ((ExternalDocumentationHandler)provider).fetchExternalDocumentation(link, element);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -15,10 +15,10 @@
|
||||
*/
|
||||
package com.intellij.lang.documentation;
|
||||
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiManager;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* User: spLeaner
|
||||
@@ -29,5 +29,5 @@ public interface ExternalDocumentationHandler {
|
||||
boolean canFetchDocumentationLink(String link);
|
||||
|
||||
@NotNull
|
||||
String fetchExternalDocumentation(String link, Project project);
|
||||
String fetchExternalDocumentation(@NotNull String link, @Nullable PsiElement element);
|
||||
}
|
||||
|
||||
+1
-1
@@ -933,7 +933,7 @@ public class DocumentationManager extends DockablePopupManager<DocumentationComp
|
||||
fetchDocInfo(new DocumentationCollector() {
|
||||
@Override
|
||||
public String getDocumentation() throws Exception {
|
||||
return externalDocumentationHandler.fetchExternalDocumentation(url, myProject);
|
||||
return externalDocumentationHandler.fetchExternalDocumentation(url, psiElement);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user