public class SuppressWarningsFoldingBuilder extends FoldingBuilderEx
Constructor and Description |
---|
SuppressWarningsFoldingBuilder() |
Modifier and Type | Method and Description |
---|---|
FoldingDescriptor [] |
buildFoldRegions(PsiElement root,
Document document,
boolean quick)
Builds the folding regions for the specified node in the AST tree and its children.
|
java.lang.String |
getPlaceholderText(ASTNode node)
Returns the text which is displayed in the editor for the folding region related to the
specified node when the folding region is collapsed.
|
boolean |
isCollapsedByDefault(ASTNode node)
Returns the default collapsed state for the folding region related to the specified node.
|
buildFoldRegions, getPlaceholderText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCollapsedByDefault
public FoldingDescriptor [] buildFoldRegions(PsiElement root, Document document, boolean quick)
FoldingBuilderEx
buildFoldRegions
in class FoldingBuilderEx
root
- the element for which folding is requested.document
- the document for which folding is built. Can be used to retrieve line
numbers for folding regions.quick
- whether the result should be provided as soon as possible. Is true, when
an editor is opened and we need to auto-fold something immediately, like Java imports.
If true, one should perform no reference resolving and avoid complex checks if possible.public java.lang.String getPlaceholderText(ASTNode node)
FoldingBuilder
node
- the node for which the placeholder text is requested.public boolean isCollapsedByDefault(ASTNode node)
FoldingBuilderEx
isCollapsedByDefault
in interface FoldingBuilder
isCollapsedByDefault
in class FoldingBuilderEx
node
- the node for which the collapsed state is requested.