|
Eclipse Platform Release 3.7 |
|||||||||
| 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
public class 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. |
boolean |
collapseAll(int offset,
int length)
Collapses all annotations that overlap with the given range and are 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 annotation
public boolean expandAll(int offset,
int length)
offset - the range offsetlength - the range length
true if any annotation has been expanded, false otherwise
public boolean collapseAll(int offset,
int length)
offset - the range offsetlength - the range length
true if any annotation has been collapse, false
otherwise
protected 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 otherwise
public 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.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.