Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.editor.internal.AnnotationModelHelper Class Reference

List of all members.

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)

Detailed Description

This class holds convenience methods for managing annotations.


Member Function Documentation

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.

Parameters:
modelThe IAnnotationModel that should be cleaned.
predicateThe 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.

Parameters:
modelThe IAnnotationModel that should be cleaned.
predicateThe filter to use for cleaning.
IAnnotationModel de.fu_berlin.inf.dpp.editor.internal.AnnotationModelHelper.retrieveAnnotationModel ( IEditorPart  editorPart)
 All Classes Namespaces Files Functions Variables Enumerations