Modifier | Constructor and Description |
---|---|
protected |
FoldHandleDefinition() |
Modifier and Type | Method and Description |
---|---|
abstract void |
finish()
Finish the fold at the current last line.
|
abstract void |
setExpanded(boolean expanded)
Set state of the fold.
|
abstract IOFolding.FoldHandleDefinition |
startFold(boolean expanded)
Start a new fold at the current last line.
|
public abstract void finish()
IllegalStateException
- if parent fold has been already
finished, or if there is an unfinished nested fold.public abstract IOFolding.FoldHandleDefinition startFold(boolean expanded)
expanded
- If false, the fold will be collapsed by default,
otherwise it will be expanded.IllegalStateException
- if the fold has been already finished,
or if the last nested fold hasn't been finished yet.public abstract void setExpanded(boolean expanded)
expanded
- True to expand the fold, false to collapse it.