rem: dump(baseSpec+"\n"); var currentSources = this.database.GetDataSources(); while (currentSources.hasMoreElements()) { var aSrc = currentSources.getNext(). QueryInterface(nsIRDFDataSource); this.database.RemoveDataSource(aSrc); } var ds = kRDFSvc.GetDataSource(baseSpec); if (!ds) { alert("Unable do load DataSource: "+baseSpec); return; } view.memoryDataSource = doCreate(kRDFInMemContractID, nsIRDFDataSource); if (!view.memoryDataSource) { alert("Unable to create write-protect InMemDatasource,"+ " not adding "+ baseSpec); 
add: if (this.mXalanDS && this.mXalanDS.URI == baseSpec) { this.mXalanDS.QueryInterface(nsIRDFRemoteDataSource); this.mXalanDS.Refresh(true); 
context:     setDataSource : function(aSpec)    {        var baseSpec;        if (aSpec) {            baseSpec = aSpec;        }        else {            baseSpec = document.getElementById("xalan_rdf").value;        }        dump(baseSpec+"\n");        var currentSources = this.database.GetDataSources();        while (currentSources.hasMoreElements()) {            var aSrc = currentSources.getNext().                QueryInterface(nsIRDFDataSource);            this.database.RemoveDataSource(aSrc);        }        var ds = kRDFSvc.GetDataSource(baseSpec);        if (!ds) {            alert("Unable do load DataSource: "+baseSpec);            return;        }        view.memoryDataSource = doCreate(kRDFInMemContractID,                                         nsIRDFDataSource);        if (!view.memoryDataSource) {            alert("Unable to create write-protect InMemDatasource,"+                  " not adding "+ baseSpec);        }        else {            view.database.AddObserver(new regressionStats());            view.database.AddDataSource(ds);            view.database.AddDataSource(view.memoryDataSource);        }        view.builder.rebuild();        document.getElementById("xalan_rdf").value = baseSpec;        runItem.prototype.kXalan.init(runItem.prototype.kXalan.URLTYPE_STANDARD,                                      0, baseSpec, null, null);    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0d9b9b6785ff1b1c2ddc5d1175e47fba5753d959/buster-view.js/clean/extensions/transformiix/resources/buster/buster-view.js