function addonsManager_open(aSpec) {
    var spec = aSpec || { };
    var type = (spec.type == undefined) ? "menu" : spec.type;
    var waitFor = (spec.waitFor == undefined) ? true : spec.waitFor;

    switch (type) {
      case "menu":
        var menuItem = new elementslib.Elem(this._controller.
                                            menus["tools-menu"].menu_openAddons);
        this._controller.click(menuItem);
        break;
      case "shortcut":
        var cmdKey = utils.getEntity(this.dtds, "addons.commandkey");
        this._controller.keypress(null, cmdKey, {accelKey: true, shiftKey: true});
        break;
      default:
        throw new Error(arguments.callee.name + ": Unknown event type - " +
                        event.type);
    }

    return waitFor ? this.waitForOpened() : null;
  }
function addonsManager_open(aSpec) {
    var spec = aSpec || { };
    var type = (spec.type == undefined) ? "menu" : spec.type;
    var waitFor = (spec.waitFor == undefined) ? true : spec.waitFor;

    switch (type) {
      case "menu":
        var menuItem = new elementslib.Elem(this._controller.
                                            menus["tools-menu"].menu_openAddons);
        this._controller.click(menuItem);
        break;
      case "shortcut":
        var cmdKey = utils.getEntity(this.dtds, "addons.commandkey");
        this._controller.keypress(null, cmdKey, {accelKey: true, shiftKey: true});
        break;
      default:
        throw new Error(arguments.callee.name + ": Unknown event type - " +
                        event.type);
    }

    return waitFor ? this.waitForOpened() : null;
  }
function addonsManager_open ( aSpec ) { var spec = aSpec || { } ; var type = ( spec . type == undefined ) ? "menu" : spec . type ; var waitFor = ( spec . waitFor == undefined ) ? true : spec . waitFor ; switch ( type ) { case "menu" : var menuItem = new elementslib . Elem ( this . _controller . menus [ "tools-menu" ] . menu_openAddons ) ; this . _controller . click ( menuItem ) ; break ; case "shortcut" : var cmdKey = utils . getEntity ( this . dtds , "addons.commandkey" ) ; this . _controller . keypress ( null , cmdKey , { accelKey : true , shiftKey : true } ) ; break ; default : throw new Error ( arguments . callee . name + ": Unknown event type - " + event . type ) ; } return waitFor ? this . waitForOpened ( ) : null ; }
Open the Add-ons Manager

@param {object} aSpec
Information how to open the Add-ons Manager
Elements: type    - Event, can be menu, or shortcut
[optional - default: menu]
waitFor - Wait until the Add-ons Manager has been opened
[optional - default: true]


@returns Reference the tab with the Add-ons Manager open
@type {object}
Elements: controller - Mozmill Controller of the window
index - Index of the tab
Open the Add - ons Manager
Open the addons manager