bundles/org.eclipse.orion.client.editor/web/orion/editor/rulers.js
function (annotationModel) {
			if (this._annotationModel) {
				this._annotationModel.removeEventListener("Changed", this._listener.onAnnotationModelChanged); //$NON-NLS-0$
			}
			this._annotationModel = annotationModel;
			if (this._annotationModel) {
				this._annotationModel.addEventListener("Changed", this._listener.onAnnotationModelChanged); //$NON-NLS-0$
			}
		}
function (annotationModel) {
			if (this._annotationModel) {
				this._annotationModel.removeEventListener("Changed", this._listener.onAnnotationModelChanged); //$NON-NLS-0$
			}
			this._annotationModel = annotationModel;
			if (this._annotationModel) {
				this._annotationModel.addEventListener("Changed", this._listener.onAnnotationModelChanged); //$NON-NLS-0$
			}
		}
function ( annotationModel ) { if ( this . _annotationModel ) { this . _annotationModel . removeEventListener ( "Changed" , this . _listener . onAnnotationModelChanged ) ; //$NON-NLS-0$ } this . _annotationModel = annotationModel ; if ( this . _annotationModel ) { this . _annotationModel . addEventListener ( "Changed" , this . _listener . onAnnotationModelChanged ) ; //$NON-NLS-0$ } }
Sets the annotation model for the ruler.

@param {orion.editor.AnnotationModel} annotationModel the annotation model.

@see orion.editor.Ruler#getAnnotationModel
Sets the annotation model for the ruler .