Eclipse Platform
Release 3.4

org.eclipse.jface.text.source
Interface IAnnotationModelExtension2

All Known Implementing Classes:
AnnotationModel

public interface IAnnotationModelExtension2

Extends IAnnotationModel with the ability to retrieve a set of annotations within a given region.

Since:
3.4

Method Summary
 Iterator getAnnotationIterator(int offset, int length, boolean canStartBefore, boolean canEndAfter)
          Returns an iterator over all annotations managed by this model that are inside the given region.
 

Method Detail

getAnnotationIterator

public Iterator getAnnotationIterator(int offset,
                                      int length,
                                      boolean canStartBefore,
                                      boolean canEndAfter)
Returns an iterator over all annotations managed by this model that are inside the given region.

Parameters:
offset - the start position of the region, must be >= 0
length - the length of the region, must be >= 0
canStartBefore - if true then annotations are included which start before the region if they end at or after the region's start
canEndAfter - if true then annotations are included which end after the region if they start at or before the region's end
Returns:
all annotations inside the region managed by this model (element type: Annotation)

Eclipse Platform
Release 3.4

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.