public abstract class CodeFoldingManager
extends java.lang.Object
Constructor and Description |
---|
CodeFoldingManager() |
Modifier and Type | Method and Description |
---|---|
abstract CodeFoldingState |
buildInitialFoldings(Document document) |
abstract void |
buildInitialFoldings(Editor editor) |
abstract FoldRegion |
findFoldRegion(Editor editor,
int startOffset,
int endOffset) |
abstract FoldRegion[] |
getFoldRegionsAtOffset(Editor editor,
int offset) |
static CodeFoldingManager |
getInstance(Project project) |
abstract java.lang.Boolean |
isCollapsedByDefault(FoldRegion region)
For auto-generated regions (created by
FoldingBuilder s), returns their 'collapsed by default'
status, for other regions returns null . |
abstract CodeFoldingState |
readFoldingState(Element element,
Document document) |
abstract void |
releaseFoldings(Editor editor) |
abstract void |
restoreFoldingState(Editor editor,
CodeFoldingState state) |
abstract CodeFoldingState |
saveFoldingState(Editor editor) |
abstract void |
scheduleAsyncFoldingUpdate(Editor editor)
Schedules recalculation of foldings in editor (
CodeFoldingPass ), which
will happen even if document (and other dependencies declared by FoldingBuilder )
haven't changed. |
abstract void |
updateFoldRegions(Editor editor) |
abstract java.lang.Runnable |
updateFoldRegionsAsync(Editor editor,
boolean firstTime) |
abstract void |
writeFoldingState(CodeFoldingState state,
Element element) |
public static CodeFoldingManager getInstance(Project project)
public abstract void updateFoldRegions(Editor editor)
public abstract java.lang.Runnable updateFoldRegionsAsync(Editor editor, boolean firstTime)
public abstract FoldRegion findFoldRegion(Editor editor, int startOffset, int endOffset)
public abstract FoldRegion[] getFoldRegionsAtOffset(Editor editor, int offset)
public abstract CodeFoldingState saveFoldingState(Editor editor)
public abstract void restoreFoldingState(Editor editor, CodeFoldingState state)
public abstract void writeFoldingState(CodeFoldingState state, Element element)
public abstract CodeFoldingState readFoldingState(Element element, Document document)
public abstract void releaseFoldings(Editor editor)
public abstract void buildInitialFoldings(Editor editor)
public abstract CodeFoldingState buildInitialFoldings(Document document)
public abstract java.lang.Boolean isCollapsedByDefault(FoldRegion region)
FoldingBuilder
s), returns their 'collapsed by default'
status, for other regions returns null
.public abstract void scheduleAsyncFoldingUpdate(Editor editor)
CodeFoldingPass
), which
will happen even if document (and other dependencies declared by FoldingBuilder
)
haven't changed.