function BaseEditor(options) {
		options = options || {};
		this._domNode = options.domNode;
		this._model = options.model;
		this._undoStack = options.undoStack;
		this._statusReporter = options.statusReporter;
		this._title = null;
		var that = this;
		this._listener = {
			onChanged: function(e) {
				that.onChanged(e);
			}
		};
		if (this._model) {
			this._model.addEventListener("Changed", this._listener.onChanged); //$NON-NLS-0$
		}
		this.checkDirty();
	}
/**
	 * @name orion.editor.BaseEditor
	 * @class This is the base interface for text and visual editors based on a text buffer.
	 *
	 * @description Creates a new Base Editor with the given options.
	 * @param {Object} options Creation options for this editor.
	 * @param {Object} options.domNode
	 * @param {Object} options.statusReporter
	 *
	 * @borrows orion.editor.EventTarget#addEventListener as #addEventListener
	 * @borrows orion.editor.EventTarget#removeEventListener as #removeEventListener
	 * @borrows orion.editor.EventTarget#dispatchEvent as #dispatchEvent
	 */
@name orion.editor.BaseEditor
@class This is the base interface for text and visual editors based on a text buffer.

@description Creates a new Base Editor with the given options.
@param {Object} options Creation options for this editor.


@name orion . editor . BaseEditor @class This is the base interface for text and visual editors based on a text buffer . @description Creates a new Base Editor with the given options . @param { Object } options Creation options for this editor .
function BaseEditor(options) {
		options = options || {};
		this._domNode = options.domNode;
		this._model = options.model;
		this._undoStack = options.undoStack;
		this._statusReporter = options.statusReporter;
		this._title = null;
		var that = this;
		this._listener = {
			onChanged: function(e) {
				that.onChanged(e);
			}
		};
		if (this._model) {
			this._model.addEventListener("Changed", this._listener.onChanged); 
		}
		this.checkDirty();
	}
function BaseEditor ( options ) { options = options || { } ; this . _domNode = options . domNode ; this . _model = options . model ; this . _undoStack = options . undoStack ; this . _statusReporter = options . statusReporter ; this . _title = null ; var that = this ; this . _listener = { onChanged : function ( e ) { that . onChanged ( e ) ; } } ; if ( this . _model ) { this . _model . addEventListener ( "Changed" , this . _listener . onChanged ) ; } this . checkDirty ( ) ; }
@name orion.editor.BaseEditor
 @class This is the base interface for text and visual editors based on a text buffer.
@name orion . editor . BaseEditor @class This is the base interface for text and visual editors based on a text buffer .
//$NON-NLS-0$