public class FoldingModelSupport
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FoldingModelSupport.Data |
protected class |
FoldingModelSupport.FoldedBlock
Stores 'matching' fold regions in different Editors (array can contain `null` if Editor has no matching region).
|
protected static class |
FoldingModelSupport.FoldedRangeDescription |
protected static class |
FoldingModelSupport.FoldingBuilderBase |
protected class |
FoldingModelSupport.MyPaintable |
static class |
FoldingModelSupport.Settings |
Modifier and Type | Field and Description |
---|---|
protected int |
myCount |
protected EditorEx [] |
myEditors |
protected java.util.List<com.intellij.diff.tools.util.FoldingModelSupport.FoldedGroup> |
myFoldings |
protected Project |
myProject |
Constructor and Description |
---|
FoldingModelSupport(Project project,
EditorEx [] editors,
Disposable disposable) |
Modifier and Type | Method and Description |
---|---|
static FoldRegion |
addFolding(EditorEx editor,
int start,
int end,
boolean expanded) |
protected FoldingModelSupport.Data |
computeFoldedRanges(java.util.Iterator<int[]> changedLines,
FoldingModelSupport.Settings settings) |
void |
destroy() |
void |
expandAll(boolean expanded) |
int |
getCount() |
TIntFunction |
getLineConvertor(int index) |
protected static FoldingModelSupport.FoldedRangeDescription |
getLineSeparatorDescription(Project project,
Document document,
int lineNumber) |
void |
install(FoldingModelSupport.Data data,
UserDataHolder context,
FoldingModelSupport.Settings settings) |
protected void |
install(java.util.Iterator<int[]> changedLines,
UserDataHolder context,
FoldingModelSupport.Settings settings) |
protected static <T,V> java.util.Iterator<V> |
map(java.util.List<T> list,
Function<? super T,? extends V> mapping) |
void |
updateContext(UserDataHolder context,
FoldingModelSupport.Settings settings) |
protected final int myCount
protected final Project myProject
protected final EditorEx [] myEditors
protected final java.util.List<com.intellij.diff.tools.util.FoldingModelSupport.FoldedGroup> myFoldings
public FoldingModelSupport(Project project, EditorEx [] editors, Disposable disposable)
public int getCount()
protected FoldingModelSupport.Data computeFoldedRanges(java.util.Iterator<int[]> changedLines, FoldingModelSupport.Settings settings)
protected void install(java.util.Iterator<int[]> changedLines, UserDataHolder context, FoldingModelSupport.Settings settings)
public void install(FoldingModelSupport.Data data, UserDataHolder context, FoldingModelSupport.Settings settings)
protected static FoldingModelSupport.FoldedRangeDescription getLineSeparatorDescription(Project project, Document document, int lineNumber)
public static FoldRegion addFolding(EditorEx editor, int start, int end, boolean expanded)
public void destroy()
public TIntFunction getLineConvertor(int index)
public void expandAll(boolean expanded)
public void updateContext(UserDataHolder context, FoldingModelSupport.Settings settings)
protected static <T,V> java.util.Iterator<V> map(java.util.List<T> list, Function<? super T,? extends V> mapping)