rem: if (handlerOverride.isEditable == "false") { gEditButton.disabled=true; gRemoveButton.disabled=true; } else { gEditButton.disabled=false; gRemoveButton.disabled=false; }  
add: updateLockedButtonState(handlerOverride.isEditable == "true"); 
context: function selectApplication(){  if (gTree.selectedItems && gTree.selectedItems.length && gTree.selectedItems[0]) {    var uri = gTree.selectedItems[0].id;    var handlerOverride = new HandlerOverride(uri);    gExtensionField.setAttribute("value", handlerOverride.extensions);    gMIMETypeField.setAttribute("value", handlerOverride.mimeType);        // figure out how this type is handled    if (handlerOverride.handleInternal == "true")      gHandlerField.setAttribute("value",                                 gPrefApplicationsBundle.getString("handleInternally"));    else if (handlerOverride.saveToDisk == "true")      gHandlerField.setAttribute("value",                                 gPrefApplicationsBundle.getString("saveToDisk"));    else       gHandlerField.setAttribute("value", handlerOverride.appDisplayName);    if (handlerOverride.isEditable == "false") {      gEditButton.disabled=true;      gRemoveButton.disabled=true;    }    else {      gEditButton.disabled=false;      gRemoveButton.disabled=false;    }    delete handlerOverride;    updateLockedButtonState();  }} 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/96e6c973789c16fd352198a125b9e790e433f060/pref-applications.js/clean/suite/common/pref/pref-applications.js