rem: { var tree = GetFolderTree(); var folderList = tree.selectedItems;  if(folderList.length == 1) 
add: { var folderOutliner = GetFolderOutliner(); var selection = folderOutliner.outlinerBoxObject.selection; if (selection.count == 1) 
context: function IsRenameFolderEnabled(){         var tree = GetFolderTree();    var folderList = tree.selectedItems;    if(folderList.length == 1)    {        var canRename;        var folderNode = folderList[0];        canRename = (folderNode.getAttribute("CanRename") == "true");        return canRename && isCommandEnabled("cmd_renameFolder");    }    else        return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/938770831965cde1ef5c4ce945b768186518efae/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js