context: function AbOnRenameAddressBook(aName){  // When the UI code for renaming addrbooks (bug #17230) is ready, just   // change 'properties.description' setting below and it should just work.  // get select ab  var selectedABURI = GetSelectedDirectory();  //dump("In AbRenameAddressBook() selectedABURI=" + selectedABURI + "\n");  // the rdf service  var RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);  // get the datasource for the addressdirectory  var addressbookDS = RDF.GetDataSource("rdf:addressdirectory");  // moz-abdirectory:// is the RDF root to get all types of addressbooks.  var parentDir = RDF.GetResource("moz-abdirectory://").QueryInterface(Components.interfaces.nsIAbDirectory);  // the RDF resource URI for LDAPDirectory will be like: "moz-abmdbdirectory://abook-3.mab"  var selectedABDirectory = RDF.GetResource(selectedABURI).QueryInterface(Components.interfaces.nsIAbDirectory);  // Copy existing dir type category id and mod time so they won't get reset.  var oldProperties = selectedABDirectory.directoryProperties;  // Create and fill in properties info  var properties = Components.classes["@mozilla.org/addressbook/properties;1"].createInstance(Components.interfaces.nsIAbDirectoryProperties);  properties.URI = selectedABURI;  properties.dirType = oldProperties.dirType;  properties.categoryId = oldProperties.categoryId;  properties.syncTimeStamp = oldProperties.syncTimeStamp;  properties.description = aName;  // Now do the modification.  addressbook.modifyAddressBook(addressbookDS, parentDir, selectedABDirectory, properties);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/b4f895a41d82a726b3c776cb2c1f39ba8bb32fe8/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js