bundles/org.eclipse.orion.client.ui/web/orion/editorView.js
function EditorView(options) {
		this._parent = options.parent;
		if(typeof this._parent === "string") {
			this._parent = document.getElementById(options.parent);
		}
		this.id = options.id || "";
		this.activateContext = options.activateContext;
		this.renderToolbars = options.renderToolbars;
		this.serviceRegistry = options.serviceRegistry;
		this.contentTypeRegistry = options.contentTypeRegistry;
		this.commandRegistry = options.commandRegistry;
		this.progress = options.progress;
		this.statusService = options.statusService;
		this.editorCommands = options.editorCommands;
		this.fileClient = options.fileService;
		this.inputManager = options.inputManager;
		this.preferences = options.preferences;
		this.readonly = options.readonly;
		this.singleMode = options.singleMode;
		this.searcher = options.searcher;
		this.statusReporter = options.statusReporter;
		this.model = options.model;
		this.undoStack = options.undoStack;
		this.problemsServiceID = options.problemsServiceID || "orion.core.marker"; //$NON-NLS-0$
		this.editContextServiceID = options.editContextServiceID || "orion.edit.context"; //$NON-NLS-0$
		this.syntaxHighlighter = new Highlight.SyntaxHighlighter(this.serviceRegistry);
		var keyAssist = mGlobalCommands.getKeyAssist ? mGlobalCommands.getKeyAssist() : null;
		if(keyAssist) {
			keyAssist.addProvider(this.editorCommands);
		}
		var mainSplitter = mGlobalCommands.getMainSplitter ? mGlobalCommands.getMainSplitter() : null;
		if(mainSplitter) {
			mainSplitter.splitter.addEventListener("resize", function (evt) {
				if (this.editor && evt.node === mainSplitter.main) {
					this.editor.resize();
				}
			}.bind(this));
		}
		if(mGlobalCommands.getGlobalEventTarget) {
			mGlobalCommands.getGlobalEventTarget().addEventListener("toggleTrim", function() {
				if (this.editor) {
					this.editor.resize();
				}
			}.bind(this));
		}
		this.settings = {};
		this._editorConfig = options.editorConfig;
		this._init();
	}
function EditorView(options) {
		this._parent = options.parent;
		if(typeof this._parent === "string") {
			this._parent = document.getElementById(options.parent);
		}
		this.id = options.id || "";
		this.activateContext = options.activateContext;
		this.renderToolbars = options.renderToolbars;
		this.serviceRegistry = options.serviceRegistry;
		this.contentTypeRegistry = options.contentTypeRegistry;
		this.commandRegistry = options.commandRegistry;
		this.progress = options.progress;
		this.statusService = options.statusService;
		this.editorCommands = options.editorCommands;
		this.fileClient = options.fileService;
		this.inputManager = options.inputManager;
		this.preferences = options.preferences;
		this.readonly = options.readonly;
		this.singleMode = options.singleMode;
		this.searcher = options.searcher;
		this.statusReporter = options.statusReporter;
		this.model = options.model;
		this.undoStack = options.undoStack;
		this.problemsServiceID = options.problemsServiceID || "orion.core.marker"; //$NON-NLS-0$
		this.editContextServiceID = options.editContextServiceID || "orion.edit.context"; //$NON-NLS-0$
		this.syntaxHighlighter = new Highlight.SyntaxHighlighter(this.serviceRegistry);
		var keyAssist = mGlobalCommands.getKeyAssist ? mGlobalCommands.getKeyAssist() : null;
		if(keyAssist) {
			keyAssist.addProvider(this.editorCommands);
		}
		var mainSplitter = mGlobalCommands.getMainSplitter ? mGlobalCommands.getMainSplitter() : null;
		if(mainSplitter) {
			mainSplitter.splitter.addEventListener("resize", function (evt) {
				if (this.editor && evt.node === mainSplitter.main) {
					this.editor.resize();
				}
			}.bind(this));
		}
		if(mGlobalCommands.getGlobalEventTarget) {
			mGlobalCommands.getGlobalEventTarget().addEventListener("toggleTrim", function() {
				if (this.editor) {
					this.editor.resize();
				}
			}.bind(this));
		}
		this.settings = {};
		this._editorConfig = options.editorConfig;
		this._init();
	}
function EditorView ( options ) { this . _parent = options . parent ; if ( typeof this . _parent === "string" ) { this . _parent = document . getElementById ( options . parent ) ; } this . id = options . id || "" ; this . activateContext = options . activateContext ; this . renderToolbars = options . renderToolbars ; this . serviceRegistry = options . serviceRegistry ; this . contentTypeRegistry = options . contentTypeRegistry ; this . commandRegistry = options . commandRegistry ; this . progress = options . progress ; this . statusService = options . statusService ; this . editorCommands = options . editorCommands ; this . fileClient = options . fileService ; this . inputManager = options . inputManager ; this . preferences = options . preferences ; this . readonly = options . readonly ; this . singleMode = options . singleMode ; this . searcher = options . searcher ; this . statusReporter = options . statusReporter ; this . model = options . model ; this . undoStack = options . undoStack ; this . problemsServiceID = options . problemsServiceID || "orion.core.marker" ; //$NON-NLS-0$
 this . editContextServiceID = options . editContextServiceID || "orion.edit.context" ; //$NON-NLS-0$
 this . syntaxHighlighter = new Highlight . SyntaxHighlighter ( this . serviceRegistry ) ; var keyAssist = mGlobalCommands . getKeyAssist ? mGlobalCommands . getKeyAssist ( ) : null ; if ( keyAssist ) { keyAssist . addProvider ( this . editorCommands ) ; } var mainSplitter = mGlobalCommands . getMainSplitter ? mGlobalCommands . getMainSplitter ( ) : null ; if ( mainSplitter ) { mainSplitter . splitter . addEventListener ( "resize" , function ( evt ) { if ( this . editor && evt . node === mainSplitter . main ) { this . editor . resize ( ) ; } } . bind ( this ) ) ; } if ( mGlobalCommands . getGlobalEventTarget ) { mGlobalCommands . getGlobalEventTarget ( ) . addEventListener ( "toggleTrim" , function ( ) { if ( this . editor ) { this . editor . resize ( ) ; } } . bind ( this ) ) ; } this . settings = { } ; this . _editorConfig = options . editorConfig ; this . _init ( ) ; }
Constructs a new EditorView object.

@class
@name orion.EditorView
@borrows orion.editor.EventTarget#addEventListener as #addEventListener
@borrows orion.editor.EventTarget#removeEventListener as #removeEventListener
@borrows orion.editor.EventTarget#dispatchEvent as #dispatchEvent
Constructs a new EditorView object .