Package | Description |
---|---|
org.netbeans.api.editor.fold | |
org.netbeans.spi.editor.fold |
Modifier and Type | Field and Description |
---|---|
static FoldType |
FoldType.CODE_BLOCK
A generic code block.
|
static FoldType |
FoldType.COMMENT
Unspecified type of comment
|
static FoldType |
FoldType.DOCUMENTATION
Documentation comment, as defined by the language
|
static FoldType |
FoldType.IMPORT
Various import, includes and references to sibling files.
|
static FoldType |
FoldType.INITIAL_COMMENT
Initial file-level comment.
|
static FoldType |
FoldType.MEMBER
Member of a symbol (type, class, object)
|
static FoldType |
FoldType.NESTED
Nested part; for example an embedded type, or nested namespace.
|
static FoldType |
FoldHierarchy.ROOT_FOLD_TYPE
Fold type for the root fold.
|
static FoldType |
FoldType.TAG
Tag in markup languages
|
static FoldType |
FoldType.USER
User-defined fold, recoded using a special comment
|
Modifier and Type | Method and Description |
---|---|
static FoldType |
FoldType.create(String code,
String label,
FoldTemplate template)
Creates an instance of FoldType.
|
FoldType |
FoldType.derive(String code,
String label,
FoldTemplate template)
Derives a FoldType which acts as a child of this instance.
|
FoldType |
Fold.getType()
Get type of this fold.
|
FoldType |
FoldType.override(String label,
FoldTemplate template)
Creates a FoldType, overriding its appearance.
|
FoldType |
FoldType.parent()
Provides parent of this FoldType.
|
FoldType |
FoldType.Domain.valueOf(String s)
Translates String code into FoldType.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FoldType.accepts(FoldType type)
Deprecated.
|
static void |
FoldUtilities.collapse(FoldHierarchy hierarchy,
FoldType type)
Collapse all folds of the given type.
|
static void |
FoldUtilities.expand(FoldHierarchy hierarchy,
FoldType type)
Expand all folds of the given type.
|
static List |
FoldUtilities.find(Fold fold,
FoldType foldType)
Find direct subfolds of the given fold having certain type.
|
static List |
FoldUtilities.findRecursive(Fold fold,
FoldType foldType)
Recursively find any subfolds of the given fold having certain type.
|
static boolean |
FoldUtilities.isAutoCollapsed(FoldType ft,
FoldHierarchy hierarchy)
Determines whether folds of that type are should be initially collapsed.
|
boolean |
FoldType.isKindOf(FoldType other)
Checks whether the fold can act as the 'other' type.
|
Modifier and Type | Method and Description |
---|---|
FoldType |
FoldInfo.getType()
Provides FoldType for the fold.
|
Modifier and Type | Method and Description |
---|---|
Fold |
FoldOperation.addToHierarchy(FoldType type,
int startOffset,
int endOffset,
Boolean collapsed,
FoldTemplate template,
String displayOverride,
Object extraInfo,
FoldHierarchyTransaction transaction)
Adds a fold to the hierarchy.
|
Fold |
FoldOperation.addToHierarchy(FoldType type,
String description,
boolean collapsed,
int startOffset,
int endOffset,
int startGuardedLength,
int endGuardedLength,
Object extraInfo,
FoldHierarchyTransaction transaction)
Deprecated.
please use
FoldOperation.addToHierarchy(org.netbeans.api.editor.fold.FoldType, int, int, java.lang.Boolean, org.netbeans.api.editor.fold.FoldTemplate, java.lang.String, java.lang.Object, org.netbeans.spi.editor.fold.FoldHierarchyTransaction) .
This form of call does not support automatic state assignment and fold templates. |
ContentReader |
ContentReader.Factory.createReader(FoldType ft) |
static FoldInfo |
FoldInfo.range(int start,
int end,
FoldType type)
Creates a FoldInfo for the specified range.
|