public abstract class BaseFoldingHandler extends EditorActionHandler
Constructor and Description |
---|
BaseFoldingHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<FoldRegion> |
getFoldRegionsForCaret(Editor editor,
Caret caret,
boolean toCollapse)
Returns a region corresponding to current caret position, and all regions contained in it.
|
protected java.util.List<FoldRegion> |
getFoldRegionsForSelection(Editor editor,
Caret caret)
Returns fold regions inside selection, or all regions in editor, if selection doesn't exist or doesn't contain fold regions.
|
protected boolean |
isEnabledForCaret(Editor editor,
Caret caret,
DataContext dataContext)
Implementations can override this method to define whether handler is enabled for a specific caret in a given editor.
|
doExecute, execute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, runForAllCarets
protected boolean isEnabledForCaret(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandler
isEnabledForCaret
in class EditorActionHandler
protected java.util.List<FoldRegion> getFoldRegionsForSelection(Editor editor, Caret caret)
protected java.util.List<FoldRegion> getFoldRegionsForCaret(Editor editor, Caret caret, boolean toCollapse)