public class FoldCollapser
extends java.lang.Object
构造器和说明 |
---|
FoldCollapser()
Creates an instance that collapses all comment blocks.
|
FoldCollapser(int typeToCollapse)
Creates an instance that collapses all blocks of the specified
type.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addTypeToCollapse(int typeToCollapse)
Adds a type of fold to collapse.
|
void |
collapseFolds(FoldManager fm)
Collapses any relevant folds known by the fold manager.
|
protected void |
collapseImpl(Fold fold)
Collapses the specified fold, and any of its child folds, as
appropriate.
|
boolean |
getShouldCollapse(Fold fold)
Returns whether a specific fold should be collapsed.
|
public FoldCollapser()
public FoldCollapser(int typeToCollapse)
typeToCollapse
- The type to collapse.FoldType
public void addTypeToCollapse(int typeToCollapse)
typeToCollapse
- The type of fold to collapse.public void collapseFolds(FoldManager fm)
fm
- The fold manager.protected void collapseImpl(Fold fold)
fold
- The fold to examine.getShouldCollapse(Fold)
public boolean getShouldCollapse(Fold fold)
fold
- The fold to examine.