add: updateLockedButtonState(); 
context: function Startup(){  // set up the string bundle  gPrefApplicationsBundle = document.getElementById("bundle_prefApplications");  // set up the elements  gTree = document.getElementById("appTree");   gExtensionField = document.getElementById("extension");          gMIMETypeField  = document.getElementById("mimeType");  gHandlerField   = document.getElementById("handler");  gEditButton     = document.getElementById("editButton");  gRemoveButton   = document.getElementById("removeButton");  // Disable the Edit & Remove buttons until we click on something  gEditButton.disabled=true;  gRemoveButton.disabled=true;  const mimeTypes = "UMimTyp";  var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService();  if (fileLocator)    fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties);  var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile);  var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL);  if (file_url)    file_url.file = file;  gDS = gRDF.GetDataSource(file_url.spec);  if (gDS)    gDS = gDS.QueryInterface(Components.interfaces.nsIRDFDataSource);  // intialise the tree  gTree.database.AddDataSource(gDS);  gTree.setAttribute("ref", "urn:mimetypes");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/14ff7ec5ea9a8a360a488ebe092897d38d65058f/pref-applications.js/buggy/suite/common/pref/pref-applications.js