Protected
Readonly
commandsProtected
Readonly
contributionsProtected
Readonly
independentProtected
isProtected
Readonly
onProtected
Readonly
rootProtected
allProtected
changeProtected
findFinds a submenu as a descendant of the root
node.
See findSubMenu.
Optional
options: SubMenuOptionsProtected
findFinds or creates a submenu as an immediate child of current
.
Optional
options: SubMenuOptionsif a node with the given menuId
exists but is not a MutableCompoundMenuNode.
Protected
fireReturns the menu at the given path.
the path specifying the menu to return. If not given the empty path will be used.
the root menu when menuPath
is empty. If menuPath
is not empty the specified menu is
returned if it exists, otherwise an error is thrown.
Optional
group: stringProtected
isOptional
options: SubMenuOptionsOptional
group: stringOptional
options: SubMenuOptionsAdds 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 node to the menu denoted by the given path.
a disposable which, when called, will remove the menu node 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.
Optional
options: SubMenuOptionsoptionally allows to set an icon class and specify the order of the new menu.
if 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.
Checks the given menu model whether it will show a menu with a single submenu.
the menu model to analyze
the menu's path
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
Unregister 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.
The MenuModelRegistry allows to register and unregister menus, submenus and actions via strings and MenuActions without the need to access the underlying UI representation.