Search in sources :

Example 1 with JavadocManager

use of com.intellij.psi.javadoc.JavadocManager in project intellij-community by JetBrains.

the class PsiDocTagValueImpl method getReference.

@Override
public PsiReference getReference() {
    PsiDocTag docTag = PsiTreeUtil.getParentOfType(this, PsiDocTag.class);
    if (docTag == null) {
        return null;
    }
    final String name = docTag.getName();
    final JavadocManager manager = JavadocManager.SERVICE.getInstance(getProject());
    final JavadocTagInfo info = manager.getTagInfo(name);
    if (info == null)
        return null;
    return info.getReference(this);
}
Also used : PsiDocTag(com.intellij.psi.javadoc.PsiDocTag) JavadocManager(com.intellij.psi.javadoc.JavadocManager) JavadocTagInfo(com.intellij.psi.javadoc.JavadocTagInfo)

Aggregations

JavadocManager (com.intellij.psi.javadoc.JavadocManager)1 JavadocTagInfo (com.intellij.psi.javadoc.JavadocTagInfo)1 PsiDocTag (com.intellij.psi.javadoc.PsiDocTag)1