Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectronMainMenuFactory

Hierarchy

Index

Constructors

Properties

_menu?: Menu
_toggledCommands: Set<string> = ...
commandRegistry: CommandRegistry
contextKeyService: ContextKeyService
corePreferences: CorePreferences
keybindingRegistry: KeybindingRegistry
menuCommandExecutor: MenuCommandExecutor
menuProvider: MenuModelRegistry
preferencesService: PreferenceService

Accessors

Methods

  • createContextMenu(path: MenuPath, args?: unknown[], context?: HTMLElement): Menu
  • createElectronContextMenu(menuPath: MenuPath, args?: any[], context?: HTMLElement): Menu
  • createElectronMenuBar(): null | Menu
  • createOSXMenu(): MenuItemConstructorOptions
  • execute(command: string, args: any[], menuPath: MenuPath): Promise<void>
  • fillMenuTemplate(parentItems: MenuItemConstructorOptions[], menu: MenuNode, args?: unknown[], options: ElectronMenuOptions): MenuItemConstructorOptions[]
  • postConstruct(): void
  • setMenuBar(): Promise<void>
  • undefinedOrMatch(expression?: string, context?: HTMLElement): boolean