|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.AnnotationModel
org.eclipse.jface.text.source.projection.ProjectionAnnotationModel
A projection annotation model. It provides methods for modifying the expansion state of the managed projection annotations.
Do not subclass. Use it as is.
Field Summary |
---|
Fields inherited from class org.eclipse.jface.text.source.AnnotationModel |
---|
fAnnotationModelListeners, fAnnotations, fDocument |
Constructor Summary | |
---|---|
ProjectionAnnotationModel()
Creates a new, empty projection annotation model. |
Method Summary | |
---|---|
void |
collapse(Annotation annotation)
Changes the state of the given annotation to collapsed. |
void |
expand(Annotation annotation)
Changes the state of the given annotation to expanded. |
boolean |
expandAll(int offset,
int length)
Expands all annotations that overlap with the given range and are collapsed. |
protected boolean |
expandAll(int offset,
int length,
boolean fireModelChanged)
Expands all annotations that overlap with the given range and are collapsed. |
void |
modifyAnnotations(Annotation[] deletions,
Map additions,
Annotation[] modifications)
Modifies the annotation model. |
void |
toggleExpansionState(Annotation annotation)
Toggles the expansion state of the given annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProjectionAnnotationModel()
Method Detail |
public void collapse(Annotation annotation)
annotation
- the annotationpublic void expand(Annotation annotation)
annotation
- the annotationpublic void toggleExpansionState(Annotation annotation)
annotation
- the annotationpublic boolean expandAll(int offset, int length)
offset
- the range offsetlength
- the range length
true
if any annotation has been expanded, false
otherwiseprotected boolean expandAll(int offset, int length, boolean fireModelChanged)
offset
- the offset of the rangelength
- the length of the rangefireModelChanged
- true
if a model change event
should be fired, false
otherwise
true
if any annotation has been expanded, false
otherwisepublic void modifyAnnotations(Annotation[] deletions, Map additions, Annotation[] modifications)
deletions
- the list of deleted annotationsadditions
- the set of annotations to add together with their associated positionmodifications
- the list of modified annotations
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.