this.app.newTestSuite(); 
function Editor(window, isSidebar) {	this.log.debug("initializing");	this.window = window;	window.editor = this;	var self = this;	this.isSidebar = isSidebar;	this.recordFrameTitle = false;    this.app = new Application();    this.app.addObserver({            baseURLChanged: function() {                Editor.GENERIC_AUTOCOMPLETE.setCandidates(XulUtils.toXPCOMString(self.getAutoCompleteSearchParam("baseURL")),                                                          XulUtils.toXPCOMArray(self.app.getBaseURLHistory()));                document.getElementById("baseURL").value = self.app.getBaseURL();            },            testSuiteChanged: function(testSuite) {                testSuite.addObserver(this._testSuiteObserver);                if (testSuite.file) {                    document.getElementById("suiteTreeSplitter").setAttribute("state", "open");                }                self.suiteTreeView.refresh();            },                        testSuiteUnloaded: function(testSuite) {                testSuite.removeObserver(this._testSuiteObserver);            },                        testCaseChanged: function(testCase) {                // this.view is not set yet when setTestCase is called from constructor                if (self.view) {                    self.view.testCase = testCase;                    self.view.refresh();                    self.updateTitle();                }                testCase.addObserver(this._testCaseObserver);            },            testCaseUnloaded: function(testCase) {                testCase.removeObserver(this._testCaseObserver);            },            currentFormatChanged: function(format) {                self.updateViewTabs();                self.updateState();            },            clipboardFormatChanged: function(format) {            },            _testCaseObserver: {                modifiedStateUpdated: function() {                    self.updateTitle();                }            },            _testSuiteObserver: {                testCaseAdded: function() {                    document.getElementById("suiteTreeSplitter").setAttribute("state", "open");                }            }        });	this.document = document;	this.app.initOptions();	this.loadExtensions();	this.loadSeleniumAPI();	this.selectDefaultReference();    this.toggleRecordingEnabled(true);	this.treeView = new TreeView(this, document, document.getElementById("commands"));	this.sourceView = new SourceView(this, document.getElementById("source"));    this.suiteTreeView = new SuiteTreeView(this, document.getElementById("suiteTree"));	//this.toggleView(this.treeView);		// "debugger" cannot be used since it is a reserved word in JS	this.selDebugger = new Debugger(this);    this.selDebugger.addObserver({            stateUpdated: function(state) {                if (state == Debugger.PAUSED) {                    document.getElementById("pause-button").setAttribute("class", "icon resume");                } else {                    document.getElementById("pause-button").setAttribute("class", "icon pause");                }                self.updateState();            }        });		//top.document.commandDispatcher.getControllers().appendController(Editor.controller);	//window.controllers.appendController(Editor.controller);	top.controllers.appendController(Editor.controller);	//window.controllers.appendController(controller);	this.updateViewTabs();    this.infoPanel = new Editor.InfoPanel(this);    this.app.newTestSuite();    	//top.document.commandDispatcher.updateCommands("selenium-ide-state");	document.addEventListener("focus", Editor.checkTimestamp, false);		this.log.info("initialized");		setTimeout("editor.showLoadErrors()", 500);		if (isSidebar) {		Recorder.registerForWindow(window.parent, this);	} else {		Recorder.registerAll(this);	}}
4983	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4983/86c160799a5ec0ddbcb7fcdd775a9e8ed93a86bb/editor.js/clean/src/content/editor.js