Finds or creates a submenu as an immediate child of current
.
Returns 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.
Adds 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.)
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.
Unregister all menu nodes with the same id as the given menu action.
the item whose id will be used.
if specified only nodes within the path will be unregistered.
Unregister all menu nodes with the same id as the given command.
the command whose id will be used.
if specified only nodes within the path will be unregistered.
Unregister all menu nodes with the given id.
the id which shall be removed.
if specified only nodes within the path will be unregistered.
Recurse all menus, removing any menus matching the id
.
technical identifier of the MenuNode
.
Finds a submenu as a descendant of the
root
node. See findSubMenu.