public class CustomFileTypeFoldingBuilder extends CustomFoldingBuilder
Constructor and Description |
---|
CustomFileTypeFoldingBuilder() |
Modifier and Type | Method and Description |
---|---|
static void |
buildBraceMatcherBasedFolding(java.util.List<? super FoldingDescriptor> descriptors,
PsiElement root,
Document document,
SyntaxHighlighter highlighter) |
protected void |
buildLanguageFoldRegions(java.util.List<FoldingDescriptor> descriptors,
PsiElement root,
Document document,
boolean quick)
Implement this method to build language folding regions besides custom folding regions.
|
protected java.lang.String |
getLanguagePlaceholderText(ASTNode node,
TextRange range) |
protected boolean |
isRegionCollapsedByDefault(ASTNode node)
Returns the default collapsed state for the folding region related to the specified node.
|
buildFoldRegions, buildFoldRegions, getPlaceholderText, getPlaceholderText, isCollapsedByDefault, isCustomFoldingCandidate, isCustomFoldingCandidate, isCustomFoldingRoot, isCustomRegionElement, isCustomRegionEnd, isCustomRegionStart, isDumbAware
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCollapsedByDefault
protected void buildLanguageFoldRegions(java.util.List<FoldingDescriptor> descriptors, PsiElement root, Document document, boolean quick)
CustomFoldingBuilder
buildLanguageFoldRegions
in class CustomFoldingBuilder
descriptors
- The list of folding descriptors to store results to.root
- The root node for which the folding is requested.document
- The document for which folding is built.quick
- whether the result should be provided as soon as possible without reference resolving
and complex checks.public static void buildBraceMatcherBasedFolding(java.util.List<? super FoldingDescriptor> descriptors, PsiElement root, Document document, SyntaxHighlighter highlighter)
protected java.lang.String getLanguagePlaceholderText(ASTNode node, TextRange range)
getLanguagePlaceholderText
in class CustomFoldingBuilder
protected boolean isRegionCollapsedByDefault(ASTNode node)
CustomFoldingBuilder
isRegionCollapsedByDefault
in class CustomFoldingBuilder
node
- the node for which the collapsed state is requested.