Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElectronMainMenuFactory

Hierarchy

Index

Constructors

Properties

_menu?: MenuDto[]
_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, contextKeyService?: ContextMatcher): Menu
  • createElectronMenuBar(): undefined | MenuDto[]
  • execute(cmd: string, args: any[], menuPath: MenuPath): Promise<void>
  • postConstruct(): void
  • roleFor(id: string): undefined | MenuRole
  • setMenuBar(): Promise<void>
  • undefinedOrMatch(contextKeyService: ContextMatcher, expression?: string, context?: HTMLElement): boolean