bundles/org.eclipse.orion.client.editor/web/orion/editor/editor.js
function(start, end) {
			var annotationModel = this.getAnnotationModel();
			if(annotationModel) {
				var foldingAnnotation = new mAnnotations.FoldingAnnotation(start, end, this.getTextView().getModel());
				annotationModel.addAnnotation(foldingAnnotation);
				return foldingAnnotation;
			}
			return null;
		}
function(start, end) {
			var annotationModel = this.getAnnotationModel();
			if(annotationModel) {
				var foldingAnnotation = new mAnnotations.FoldingAnnotation(start, end, this.getTextView().getModel());
				annotationModel.addAnnotation(foldingAnnotation);
				return foldingAnnotation;
			}
			return null;
		}
function ( start , end ) { var annotationModel = this . getAnnotationModel ( ) ; if ( annotationModel ) { var foldingAnnotation = new mAnnotations . FoldingAnnotation ( start , end , this . getTextView ( ) . getModel ( ) ) ; annotationModel . addAnnotation ( foldingAnnotation ) ; return foldingAnnotation ; } return null ; }
Creates and add a FoldingAnnotation to the editor.

@param {Number} start The start offset of the annotation in the text model.
@param {Number} end The end offset of the annotation in the text model.
@returns {orion.editor.FoldingAnnotation} The FoldingAnnotation added to the editor.
Creates and add a FoldingAnnotation to the editor .