<command name = NMTOKEN > Content: class | menu | macro | process </command> <menu label =non empty
token > Content: editMenu? [ menu | separator | item ]+ editMenu? </menu> <separator /> <item label =non empty
token icon = anyURI command = NMTOKEN parameter = string /> <editMenu />
Define a popup menu of commands. This special type of command, typically invoked from contextual macro-commands, is intended to be used to specify contextual popup menus, redefining or extending the standard ``right-click'' popup menu.
The editMenu
element can be used to specify contextual menus that extend the standard ``right-click'' popup menu. By the way, the standard ``right-click'' popup menu is a predefined menu command called editMenu.
This element must only be added once: before all top level items or after all top level items.
A separator is automatically added before or after editMenu
. Therefore there is no need to specify a separator
element in this case.
Note that the binding
configuration element (see Section 1, “binding” in XMLmind XML Editor - Configuration and Deployment) can also contain a popup menu child element. But menu commands are more powerful because:
They can be used to extend the standard ``right-click'' popup menu.
They can be bound to a keystroke (popup menus in binding
can only be bound to a mouse click).