rem:  var datasourceContractIDPrefix = "@mozilla.org/rdf/datasource;1?name="; var accountManagerDSContractID = datasourceContractIDPrefix + "msgaccountmanager"; var folderDSContractID         = datasourceContractIDPrefix + "mailnewsfolders"; var accountManagerDataSource = Components.classes[accountManagerDSContractID].createInstance(); var folderDataSource         = Components.classes[folderDSContractID].createInstance(); accountManagerDataSource = accountManagerDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource); folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);  gSynchronizeTree.database.AddDataSource(accountManagerDataSource); gSynchronizeTree.database.AddDataSource(folderDataSource); gSynchronizeTree.setAttribute('ref', 'msgaccounts:/');  SetServerOpen(); SortFolder('FolderColumn', 'http: LoadSyncTree(); 
add: SortSynchronizePane('folderNameCol', '?folderTreeNameSort'); 
context: function selectOnLoad(){    doSetOKCancel(selectOkButton,selectCancelButton);    msgWindow = Components.classes[msgWindowContractID].createInstance(Components.interfaces.nsIMsgWindow);    msgWindow.SetDOMWindow(window);    gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);    gSynchronizeTree = document.getElementById('synchronizetree');    // Add folderDataSource and accountManagerDataSource to tree datatbase     var datasourceContractIDPrefix = "@mozilla.org/rdf/datasource;1?name=";    var accountManagerDSContractID = datasourceContractIDPrefix + "msgaccountmanager";    var folderDSContractID         = datasourceContractIDPrefix + "mailnewsfolders";    var accountManagerDataSource = Components.classes[accountManagerDSContractID].createInstance();    var folderDataSource         = Components.classes[folderDSContractID].createInstance();    accountManagerDataSource = accountManagerDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);    folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);    gSynchronizeTree.database.AddDataSource(accountManagerDataSource);    gSynchronizeTree.database.AddDataSource(folderDataSource);    gSynchronizeTree.setAttribute('ref', 'msgaccounts:/');    SetServerOpen();    SortFolder('FolderColumn', 'http://home.netscape.com/NC-rdf#FolderTreeName');    LoadSyncTree();} 
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1e0e99191d9d4f4f04fb4061b0ba91f347b8986f/msgSynchronize.js/clean/mailnews/base/resources/content/msgSynchronize.js