Adds a annotation to this annotation model. The annotation is associated with with the given position which describes the range covered by the annotation. All registered annotation model listeners are informed about the change. If the model is connected to a document, the position is automatically updated on document changes. If the annotation is already managed by this annotation model or is not a valid position in the connected document nothing happens.
Performance hint: Use {@link IAnnotationModelExtension#replaceAnnotations(Annotation[],java.util.Map)}if several annotations are added and/or removed.
@param annotation the annotation to add, may not be
null
@param position the position describing the range covered by this annotation,may not be
null