protected final class DefaultJavaFoldingStructureProvider.FoldingStructureComputationContext extends Object
ICompilationUnit
or an IClassFile
. Computed folding regions are collected
via
addProjectionRange.Modifier and Type | Method and Description |
---|---|
void |
addProjectionRange(DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation annotation,
Position position)
Adds a projection (folding) region to this context.
|
boolean |
allowCollapsing()
Returns
true if newly created folding regions may be collapsed,
false if not. |
boolean |
collapseHeaderComments()
Returns
true if header comments should be collapsed. |
boolean |
collapseImportContainer()
Returns
true if import containers should be collapsed. |
boolean |
collapseInnerTypes()
Returns
true if inner types should be collapsed. |
boolean |
collapseJavadoc()
Returns
true if javadoc comments should be collapsed. |
boolean |
collapseMembers()
Returns
true if methods should be collapsed. |
public boolean allowCollapsing()
true
if newly created folding regions may be collapsed,
false
if not. This is usually false
when updating the
folding structure while typing; it may be true
when computing or restoring
the initial folding structure.true
if newly created folding regions may be collapsed,
false
if notpublic void addProjectionRange(DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation annotation, Position position)
ProjectionAnnotationModel
of the
ProjectionViewer
of the editor.annotation
- the annotation to addposition
- the corresponding positionpublic boolean collapseHeaderComments()
true
if header comments should be collapsed.true
if header comments should be collapsedpublic boolean collapseImportContainer()
true
if import containers should be collapsed.true
if import containers should be collapsedpublic boolean collapseInnerTypes()
true
if inner types should be collapsed.true
if inner types should be collapsedpublic boolean collapseJavadoc()
true
if javadoc comments should be collapsed.true
if javadoc comments should be collapsedpublic boolean collapseMembers()
true
if methods should be collapsed.true
if methods should be collapsed
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.