code: function (view) {
  			if (this._onTextModelChanged && this._view) {
  				this._view.removeEventListener("ModelChanged", this._listener.onTextModelChanged); //$NON-NLS-0$
  			}
  			this._view = view;
  			if (this._onTextModelChanged && this._view) {
  				this._view.addEventListener("ModelChanged", this._listener.onTextModelChanged); //$NON-NLS-0$
  			}
  		}
docs: Sets the view for the ruler.
  <p>
  This method is called by the text view when the ruler
  is added to the view.
  </p>
  
  @param {orion.editor.TextView} view the text view.