public class DocPreviewUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildPreview(java.lang.String header,
java.lang.String qName,
java.lang.String fullText)
Allows to build a documentation preview from the given arguments.
|
public static java.lang.String buildPreview(java.lang.String header, java.lang.String qName, java.lang.String fullText)
header
- target documentation header. Is expected to be a result of the
DocumentationProvider.getQuickNavigateInfo(PsiElement, PsiElement)
callqName
- there is a possible case that not all documentation text will be included to the preview
(according to the given 'desired rows and columns per-row' arguments). A link that points to the
element with the given qualified name is added to the preview's end if the qName is provided thenfullText
- full documentation text (if available)