Package com.intellij.lang.documentation

Examples of com.intellij.lang.documentation.DocumentationProvider


        return element.getAllLookupStrings().contains("ng-controller");
      }
    });
    assertNotNull(lookupElement);

    DocumentationProvider documentationProvider = DocumentationManager.getProviderFromElement(context);
    PsiElement docElement = documentationProvider.getDocumentationElementForLookupItem(getPsiManager(), lookupElement.getObject(), context);
    assertNotNull(docElement);
    assertDocumentation(docElement, context);
  }
View Full Code Here


    assertNotNull(docElement);
    assertDocumentation(docElement, context);
  }

  private void assertDocumentation(@NotNull PsiElement docElement, @NotNull PsiElement context) {
    DocumentationProvider documentationProvider = DocumentationManager.getProviderFromElement(docElement);
    String inlineDoc = documentationProvider.generateDoc(docElement, context);
    assertNotNull("inline help is null", inlineDoc);
    List<String> urlFor = documentationProvider.getUrlFor(docElement, context);
    assertNotNull("external help is null", urlFor);
    assertSameLinesWithFile(getTestDataPath() + "/" + getTestName(true) + ".txt", inlineDoc + "\n---\n" + StringUtil.join(urlFor, "\n"));
  }
View Full Code Here

TOP

Related Classes of com.intellij.lang.documentation.DocumentationProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.