Package | Description |
---|---|
org.netbeans.api.editor.fold | |
org.netbeans.spi.editor.fold |
Modifier and Type | Method and Description |
---|---|
static FoldHierarchy |
FoldHierarchy.get(JTextComponent component)
Get the fold hierarchy for the given component.
|
FoldHierarchy |
Fold.getHierarchy()
Get the code folding hierarchy for which this fold was created.
|
Modifier and Type | Method and Description |
---|---|
static void |
FoldUtilities.collapse(FoldHierarchy hierarchy,
Collection foldTypes)
Collapse all folds that having any
of the fold types in the given collection.
|
static void |
FoldUtilities.collapse(FoldHierarchy hierarchy,
FoldType type)
Collapse all folds of the given type.
|
static void |
FoldUtilities.collapseAll(FoldHierarchy hierarchy)
Collapse all folds in the hierarchy.
|
static Iterator |
FoldUtilities.collapsedFoldIterator(FoldHierarchy hierarchy,
int startOffset,
int endOffset)
Get iterator over the collapsed folds.
|
static void |
FoldUtilities.expand(FoldHierarchy hierarchy,
Collection foldTypes)
Expand all folds of the given type (or all folds if the type is null)
found in the whole fold hierarchy.
|
static void |
FoldUtilities.expand(FoldHierarchy hierarchy,
FoldType type)
Expand all folds of the given type.
|
static void |
FoldUtilities.expandAll(FoldHierarchy hierarchy)
Expand all folds in the hierarchy.
|
static Fold |
FoldUtilities.findCollapsedFold(FoldHierarchy hierarchy,
int startOffset,
int endOffset)
Find a first collapsed fold by going from top-level folds to more nested ones
within the requested bounds.
|
static Fold |
FoldUtilities.findNearestFold(FoldHierarchy hierarchy,
int offset)
Find the fold nearest to the given offset.
|
static Fold |
FoldUtilities.findOffsetFold(FoldHierarchy hierarchy,
int offset)
Find a deepest fold in the hierarchy which contains the offset
or has it as one of its boundaries.
|
static boolean |
FoldUtilities.isAutoCollapsed(FoldType ft,
FoldHierarchy hierarchy)
Determines whether folds of that type are should be initially collapsed.
|
Modifier and Type | Method and Description |
---|---|
FoldHierarchy |
FoldOperation.getHierarchy()
Get the hierarchy for which this fold operations works.
|
Modifier and Type | Method and Description |
---|---|
void |
FoldHierarchyMonitor.foldsAttached(FoldHierarchy h)
Informs that a FoldHierarchy was activated.
|