public void updateAnnotations()
{
LdifFile model = editor.getLdifModel();
ISourceViewer viewer = ( ISourceViewer ) editor.getAdapter( ISourceViewer.class );
if ( viewer == null )
return;
IDocument document = viewer.getDocument();
IAnnotationModel annotationModel = viewer.getAnnotationModel();
if ( document == null || annotationModel == null || model == null )
return;
if ( annotationModel instanceof IAnnotationModelExtension )
{
( ( IAnnotationModelExtension ) annotationModel ).removeAllAnnotations();
List positionList = new ArrayList();
LdifContainer[] containers = model.getContainers();
for ( int i = 0; i < containers.length; i++ )
{
LdifContainer container = containers[i];
// LdifPart errorPart = null;