Protected
Readonly
commandsProtected
Readonly
contributionsProtected
isProtected
Readonly
menuProtected
Readonly
onProtected
rootProtected
findProtected
fireAdds the given menu action to the menu denoted by the given path.
a disposable which, when called, will remove the menu action again.
Adds the given menu action to the menu denoted by the given path.
a disposable which, when called, will remove the menu action again.
Register a new menu at the given path with the given label. (If the menu already exists without a label, iconClass or order this method can be used to set them.)
the path for which a new submenu shall be registered.
the label to be used for the new submenu.
optionally allows to set an icon class and specify the order of the new menu.
Optional
contextOptional
icon?: stringOptional
sortOptional
when?: stringif the menu was successfully created a disposable will be returned which, when called, will remove the menu again. If the menu already existed a no-op disposable will be returned.
Note that if the menu already existed and was registered with a different label an error will be thrown.
Protected
removeUnregister all menu nodes with the same id as the given menu action.
the item whose id will be used.
Optional
menuPath: MenuPathif specified only nodes within the path will be unregistered.
Unregister all menu nodes with the same id as the given command.
Unregister all menu nodes with the given id.
the id which shall be removed.
Optional
menuPath: MenuPathif specified only nodes within the path will be unregistered.
Static
isStatic
removeChecks the given menu model whether it will show a menu with a single submenu.
the menu model to analyze
if the menu will show a single submenu this returns a menu that will show the child elements of the submenu,
otherwise the given fullMenuModel
is return
Static
remove
The MenuModelRegistry allows to register and unregister menus, submenus and actions via strings and MenuActions without the need to access the underlying UI representation.