Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectronMainMenuFactory

Hierarchy

  • ElectronMainMenuFactory

Index

Constructors

constructor

Properties

Protected _menu

_menu: Menu | undefined

Protected _toggledCommands

_toggledCommands: Set<string> = new Set()

Protected Readonly commandRegistry

commandRegistry: CommandRegistry

Protected Readonly context

Protected Readonly contextKeyService

contextKeyService: ContextKeyService

Protected Readonly keybindingRegistry

keybindingRegistry: KeybindingRegistry

Protected Readonly menuProvider

menuProvider: MenuModelRegistry

Protected Readonly preferencesService

preferencesService: PreferenceService

Methods

Protected acceleratorFor

createContextMenu

  • createContextMenu(menuPath: MenuPath, args?: any[]): Menu

createMenuBar

  • createMenuBar(): Menu

Protected createOSXMenu

  • createOSXMenu(): MenuItemConstructorOptions

Protected execute

  • execute(command: string, args: any[]): Promise<void>

Protected fillMenuTemplate

Protected handleDefault

Protected roleFor