rem: function updateButtons(tree) { 
add: function updateButtons(tree,serverId) { var canDuplicate = true; var canDelete = true;    var account = getAccountFromServerId(serverId);   if (account) { var server = account.incomingServer; var type = server.type;    var protocolinfo = Components.classes["component: canDuplicate = protocolinfo.canDuplicate; canDelete = protocolinfo.canDelete; } else {    canDelete = false; canDuplicate = false; }  
context: function updateButtons(tree) {  if (tree.selectedItems.length > 0) {    if (duplicateButton) duplicateButton.removeAttribute("disabled");    if (setDefaultButton) setDefaultButton.removeAttribute("disabled");    if (deleteButton) deleteButton.removeAttribute("disabled");  } else {    if (duplicateButton) duplicateButton.setAttribute("disabled", "true");    if (setDefaultButton) setDefaultButton.setAttribute("disabled", "true");    if (deleteButton) deleteButton.setAttribute("disabled", "true");  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/da6aaee871d53afd9c330c66a55c38f10053f858/AccountManager.js/clean/mailnews/base/prefs/resources/content/AccountManager.js