|
Eclipse JDT Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.ui.text.folding.DefaultJavaFoldingStructureProvider.FoldingStructureComputationContext
A context that contains the information needed to compute the folding structure of an
ICompilationUnit
or an IClassFile
. Computed folding regions are collected
via
addProjectionRange.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
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
|
Eclipse JDT Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |