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, getPlaceholderTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCollapsedByDefaultpublic FoldingDescriptor [] buildFoldRegions(PsiElement root, Document document, boolean quick)
FoldingBuilderExbuildFoldRegions in class FoldingBuilderExroot - 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)
FoldingBuildernode - the node for which the placeholder text is requested.public boolean isCollapsedByDefault(ASTNode node)
FoldingBuilderExisCollapsedByDefault in interface FoldingBuilderisCollapsedByDefault in class FoldingBuilderExnode - the node for which the collapsed state is requested.