Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
void | removeAnnotationsFromEditor (IEditorPart editor, Predicate< Annotation > predicate) |
void | removeAnnotationsFromModel (IAnnotationModel model, Predicate< Annotation > predicate) |
void | replaceAnnotationsInModel (IAnnotationModel model, Predicate< Annotation > predicate, Map< Annotation, Position > replacement) |
IAnnotationModel | retrieveAnnotationModel (IEditorPart editorPart) |
This class holds convenience methods for managing annotations.
void de.fu_berlin.inf.dpp.editor.internal.AnnotationModelHelper.removeAnnotationsFromEditor | ( | IEditorPart | editor, |
Predicate< Annotation > | predicate | ||
) |
Removes annotations that match a given predicate.
void de.fu_berlin.inf.dpp.editor.internal.AnnotationModelHelper.removeAnnotationsFromModel | ( | IAnnotationModel | model, |
Predicate< Annotation > | predicate | ||
) |
Removes annotations that match a given predicate.
model | The IAnnotationModel that should be cleaned. |
predicate | The filter to use for cleaning. |
void de.fu_berlin.inf.dpp.editor.internal.AnnotationModelHelper.replaceAnnotationsInModel | ( | IAnnotationModel | model, |
Predicate< Annotation > | predicate, | ||
Map< Annotation, Position > | replacement | ||
) |
Removes annotations that match a given predicate and replaces them in one step.
model | The IAnnotationModel that should be cleaned. |
predicate | The filter to use for cleaning. |
IAnnotationModel de.fu_berlin.inf.dpp.editor.internal.AnnotationModelHelper.retrieveAnnotationModel | ( | IEditorPart | editorPart | ) |