public class CodeFoldingManagerImpl extends CodeFoldingManager implements Disposable
Disposable.Parent
Constructor and Description |
---|
CodeFoldingManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
CodeFoldingState |
buildInitialFoldings(Document document) |
void |
buildInitialFoldings(Editor editor) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
FoldRegion |
findFoldRegion(Editor editor,
int startOffset,
int endOffset) |
FoldRegion[] |
getFoldRegionsAtOffset(Editor editor,
int offset) |
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 . |
CodeFoldingState |
readFoldingState(Element element,
Document document) |
void |
releaseFoldings(Editor editor) |
void |
restoreFoldingState(Editor editor,
CodeFoldingState state) |
CodeFoldingState |
saveFoldingState(Editor editor) |
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. |
void |
updateFoldRegions(Editor editor) |
void |
updateFoldRegions(Editor editor,
boolean quick) |
java.lang.Runnable |
updateFoldRegionsAsync(Editor editor,
boolean firstTime) |
void |
writeFoldingState(CodeFoldingState state,
Element element) |
getInstance
public CodeFoldingManagerImpl(Project project)
public void dispose()
Disposable
dispose
in interface Disposable
public void releaseFoldings(Editor editor)
releaseFoldings
in class CodeFoldingManager
public void buildInitialFoldings(Editor editor)
buildInitialFoldings
in class CodeFoldingManager
public CodeFoldingState buildInitialFoldings(Document document)
buildInitialFoldings
in class CodeFoldingManager
public java.lang.Boolean isCollapsedByDefault(FoldRegion region)
CodeFoldingManager
FoldingBuilder
s), returns their 'collapsed by default'
status, for other regions returns null
.isCollapsedByDefault
in class CodeFoldingManager
public void scheduleAsyncFoldingUpdate(Editor editor)
CodeFoldingManager
CodeFoldingPass
), which
will happen even if document (and other dependencies declared by FoldingBuilder
)
haven't changed.scheduleAsyncFoldingUpdate
in class CodeFoldingManager
public FoldRegion findFoldRegion(Editor editor, int startOffset, int endOffset)
findFoldRegion
in class CodeFoldingManager
public FoldRegion[] getFoldRegionsAtOffset(Editor editor, int offset)
getFoldRegionsAtOffset
in class CodeFoldingManager
public void updateFoldRegions(Editor editor)
updateFoldRegions
in class CodeFoldingManager
public void updateFoldRegions(Editor editor, boolean quick)
public java.lang.Runnable updateFoldRegionsAsync(Editor editor, boolean firstTime)
updateFoldRegionsAsync
in class CodeFoldingManager
public CodeFoldingState saveFoldingState(Editor editor)
saveFoldingState
in class CodeFoldingManager
public void restoreFoldingState(Editor editor, CodeFoldingState state)
restoreFoldingState
in class CodeFoldingManager
public void writeFoldingState(CodeFoldingState state, Element element)
writeFoldingState
in class CodeFoldingManager
public CodeFoldingState readFoldingState(Element element, Document document)
readFoldingState
in class CodeFoldingManager