UNPKG

@theia/core

Version:

Theia is a cloud & desktop IDE framework implemented in TypeScript.

13 lines • 1.01 kB
import { CommandMenu, CommandRegistry, Group, MenuAction, MenuNode, MenuNodeFactory, MutableCompoundMenuNode, Submenu } from '../../common/index.js'; import { ContextKeyService } from '../context-key-service.js'; import { KeybindingRegistry } from '../keybinding.js'; export declare class BrowserMenuNodeFactory implements MenuNodeFactory { protected readonly contextKeyService: ContextKeyService; protected readonly commandRegistry: CommandRegistry; protected readonly keybindingRegistry: KeybindingRegistry; createGroup(id: string, orderString?: string, when?: string): Group & MutableCompoundMenuNode; createCommandMenu(item: MenuAction): CommandMenu; createSubmenu(id: string, label: string, contextKeyOverlays: Record<string, string> | undefined, orderString?: string, icon?: string, when?: string): Submenu & MutableCompoundMenuNode; createSubmenuLink(delegate: Submenu, sortString?: string, when?: string): MenuNode; } //# sourceMappingURL=browser-menu-node-factory.d.ts.map