rem: if (!showColumns) { var folderTotalCol = document.getElementById("folderTotalCol"); var folderSizeCol = document.getElementById("folderSizeCol"); folderUnreadCol.setAttribute("hidden", "true"); folderTotalCol.setAttribute("hidden", "true"); folderSizeCol.setAttribute("hidden", "true"); } else { var folderColumnLabel = document.getElementById("folderColumnLabel"); folderNameCol.setAttribute("label", folderColumnLabel.value); } folderNameCol.setAttribute("hideheader", showColumns ? "false" : "true"); var folderPaneHeader = document.getElementById("folderPaneHeader"); folderPaneHeader.setAttribute("hidden", showColumns ? "true" : "false"); var folderTree = document.getElementById("folderTree"); folderTree.setAttribute("hidecolumnpicker", showColumns ? "false" : "true"); var hidden = folderUnreadCol.getAttribute("hidden"); if (hidden != "true") { var folderNameCell = document.getElementById("folderNameCell"); folderNameCell.setAttribute("label", "?folderTreeSimpleName"); }  
context: function OnLoadFolderPane(){    var folderNameCol = document.getElementById("folderNameCol");    var showColumns = pref.getBoolPref("mail.showFolderPaneColumns");    var folderUnreadCol = document.getElementById("folderUnreadCol");    if (!showColumns)    {      var folderTotalCol = document.getElementById("folderTotalCol");      var folderSizeCol = document.getElementById("folderSizeCol");      folderUnreadCol.setAttribute("hidden", "true");      folderTotalCol.setAttribute("hidden", "true");      folderSizeCol.setAttribute("hidden", "true");    }    else    {      var folderColumnLabel = document.getElementById("folderColumnLabel");      folderNameCol.setAttribute("label", folderColumnLabel.value);    }    folderNameCol.setAttribute("hideheader", showColumns ? "false" : "true");    var folderPaneHeader = document.getElementById("folderPaneHeader");    folderPaneHeader.setAttribute("hidden", showColumns ? "true" : "false");    var folderTree = document.getElementById("folderTree");    folderTree.setAttribute("hidecolumnpicker", showColumns ? "false" : "true");    var hidden = folderUnreadCol.getAttribute("hidden");    if (hidden != "true")    {        var folderNameCell = document.getElementById("folderNameCell");        folderNameCell.setAttribute("label", "?folderTreeSimpleName");    }    folderUnreadCol.addEventListener("DOMAttrModified", OnFolderUnreadColAttrModified, false);    //Add folderDataSource and accountManagerDataSource to folderPane    accountManagerDataSource = accountManagerDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);    folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);    var database = GetFolderDatasource();    database.AddDataSource(accountManagerDataSource);    database.AddDataSource(folderDataSource);    var folderTree = GetFolderTree();    folderTree.setAttribute("ref", "msgaccounts:/");    var folderTreeBuilder = folderTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);    folderTreeBuilder.addObserver(folderObserver);    folderTree.addEventListener("click",FolderPaneOnClick,true);    folderTree.addEventListener("mousedown",TreeOnMouseDown,true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3a3e075b789b1f26bc0275d9a9fb316184a31ad2/msgMail3PaneWindow.js/clean/mail/base/content/msgMail3PaneWindow.js