if ( line.isFolded() )
{
Position position = new Position( line.getOffset(), line.getLength() );
// ProjectionAnnotation annotation = new
// ProjectionAnnotation(true);
ProjectionAnnotation annotation = new ProjectionAnnotation( FOLD_WRAPPEDLINES );
positionToAnnotationMap.put( position, annotation );
}
}
}
if ( containerStartLine < containerEndLine )
{
int start = document.getLineOffset( containerStartLine );
int end = document.getLineOffset( containerEndLine ) + document.getLineLength( containerEndLine );
Position position = new Position( start, end - start );
// ProjectionAnnotation annotation = new
// ProjectionAnnotation(container instanceof
// LdifCommentContainer);
ProjectionAnnotation annotation = new ProjectionAnnotation( FOLD_RECORDS
|| ( FOLD_COMMENTS && container instanceof LdifCommentContainer ) );
positionToAnnotationMap.put( position, annotation );
}
}
}