rem: gExtensionsView.removeAttribute("update-check"); var command = document.getElementById("cmd_update"); gExtensionsViewController.updateCommand(command); command = document.getElementById("cmd_update_all"); command.removeAttribute("disabled");    if (this._addons.length == 1) { var element = document.getElementById(PREFIX_ITEM_URI + this._addons[0].id); gExtensionsView.scrollBoxObject.scrollToElement(element); } else if (this._addons.length > 1) { var strings = document.getElementById("extensionsStrings"); var brandName = document.getElementById("brandStrings").getString("brandShortName"); var params = { message1: strings.getFormattedString("updatesAvailableMessage1", [brandName]), message2: strings.getString("updatesAvailableMessage2"), title: strings.getString("updatesAvailableTitle"), iconClass: "question-icon", buttons: { accept: { label: strings.getString("updatesAvailableAccept"), focused: true }, cancel: { label: strings.getString("updatesAvailableCancel") } } } var names = []; for (var i = 0; i < this._addons.length; ++i) { var addon = this._addons[i]; var existingItem = gExtensionManager.getItemForID(addon.id); var name = strings.getFormattedString("itemFormat", [this._addons[i].name, existingItem.version, this._addons[i].version]); names.push(name); } window.openDialog("chrome: "titlebar,centerscreen,modal", names, params); if (params.result == "accept") gExtensionManager.addDownloads(this._addons, this._addons.length, true); 
add: if (!document) return; document.getElementById("progressBox").hidden = true; var viewGroup = document.getElementById("viewGroup"); viewGroup.hidden = false; gExtensionsView.removeAttribute("update-operation"); gExtensionsViewController.onCommandUpdate(); updateGlobalCommands(); if (this._updateFound) showView("updates"); else { var addonsMsg = document.getElementById("addonsMsg"); addonsMsg.showMessage("chrome: getExtensionString("noUpdatesMsg"), getExtensionString("closeButtonLabel"), getExtensionString("closeButtonAccesskey"), false, "addons-no-updates"); 
context:   onUpdateEnded: function() {    gExtensionsView.removeAttribute("update-check");    var command = document.getElementById("cmd_update");    gExtensionsViewController.updateCommand(command);    command = document.getElementById("cmd_update_all");    command.removeAttribute("disabled");        // Show message to user listing extensions for which updates are available    // and prompt to install now.    if (this._addons.length == 1) {      var element = document.getElementById(PREFIX_ITEM_URI + this._addons[0].id);      gExtensionsView.scrollBoxObject.scrollToElement(element);    }    else if (this._addons.length > 1) {      var strings = document.getElementById("extensionsStrings");      var brandName = document.getElementById("brandStrings").getString("brandShortName");      var params = {        message1: strings.getFormattedString("updatesAvailableMessage1",                                             [brandName]),        message2: strings.getString("updatesAvailableMessage2"),        title: strings.getString("updatesAvailableTitle"),        iconClass: "question-icon",        buttons: {          accept: { label: strings.getString("updatesAvailableAccept"),                    focused: true },          cancel: { label: strings.getString("updatesAvailableCancel") }        }      }      var names = [];      for (var i = 0; i < this._addons.length; ++i) {        var addon = this._addons[i];        var existingItem = gExtensionManager.getItemForID(addon.id);        var name = strings.getFormattedString("itemFormat",                                               [this._addons[i].name,                                                existingItem.version,                                               this._addons[i].version]);        names.push(name);      }      window.openDialog("chrome://mozapps/content/extensions/list.xul", "",                         "titlebar,centerscreen,modal", names, params);      if (params.result == "accept")         gExtensionManager.addDownloads(this._addons, this._addons.length, true);    }  },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e70cc1872d3fa7a9c82c261be41c9d7d67b9d270/extensions.js/clean/toolkit/mozapps/extensions/content/extensions.js