code: function(offset, show, callback) {
  			var charCount = this._model.getCharCount();
  			offset = Math.max(0, Math.min (offset, charCount));
  			var selection = new Selection(offset, offset, false);
  			this._setSelection (selection, show === undefined || show, true, callback);
  		}
docs: Sets the caret offset relative to the start of the document.
  
  @param {Number} caret the caret offset relative to the start of the document.
  @param {Boolean|Number|orion.editor.TextViewShowOptions} [show=true]
  if <code>true</code>, the view will scroll the minimum amount necessary to show the caret location. If
  <code>show</code> is a <code>Number</code>, the view will scroll the minimum amount necessary to show the caret location plus a
  percentage of the client area height. The parameter is clamped to the [0,1] range.  In either case, the view will only scroll
  if the new caret location is not visible already.  The <code>show</code> parameter can also be a <code>orion.editor.TextViewShowOptions</code> object. See
  {@link orion.editor.TextViewShowOptions} for further information in how the options can be used to control the scrolling behavior.
  @param {Function} [callback] if callback is specified and <code>scrollAnimation</code> is not zero, view scrolling is animated and
  the callback is called when the animation is done. Otherwise, callback is callback right away.
  
  @see orion.editor.TextView#getCaretOffset
  @see orion.editor.TextView#setSelection
  @see orion.editor.TextView#getSelection