rem: SelectFirstAddressBook(); 
context: function AbDeleteDirectory(){  var selectedABURI = GetSelectedDirectory();  if (!selectedABURI)    return;  var parentArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  if (!parentArray)     return;   var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);   var parentRow = GetParentRow(dirTree, dirTree.currentIndex);  var parentId = (parentRow == -1) ? "moz-abdirectory://" : dirTree.builderView.getResourceAtIndex(parentRow).Value;  var parentDir = GetDirectoryFromURI(parentId);  parentArray.AppendElement(parentDir);      var directory = GetDirectoryFromURI(selectedABURI);  var confirmDeleteMessage = gAddressBookBundle.getString(directory.isMailList ? "confirmDeleteMailingList" : "confirmDeleteAddressbook");  if (!promptService.confirm(window, null, confirmDeleteMessage))    return;  var resourceArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  var selectedABResource = GetDirectoryFromURI(selectedABURI).QueryInterface(Components.interfaces.nsIRDFResource);  resourceArray.AppendElement(selectedABResource);  top.addressbook.deleteAddressBooks(dirTree.database, parentArray, resourceArray);  SelectFirstAddressBook();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/058441f0d4af83d54f51a89302628702b9ac50c2/addressbook.js/buggy/mail/components/addrbook/content/addressbook.js