java.lang.Object
javax.ide.extension.ElementVisitor
javax.ide.extension.ExtensionHook
javax.ide.menu.spi.MenuHook
- public final class MenuHook
- extends javax.ide.extension.ExtensionHook
A MenuHook
stores the extension manifest
information pertaining to actions, menus, and toolbars.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT
public static final javax.ide.extension.ElementName ELEMENT
ACTIONS
private static final javax.ide.extension.ElementName ACTIONS
MENUS
private static final javax.ide.extension.ElementName MENUS
TOOLBARS
private static final javax.ide.extension.ElementName TOOLBARS
KEY_MENU_MODEL
static final java.lang.String KEY_MENU_MODEL
- See Also:
- Constant Field Values
KEY_SECTION_CONTAINER
static final java.lang.String KEY_SECTION_CONTAINER
- See Also:
- Constant Field Values
_actionsVisitor
private javax.ide.extension.ElementVisitor _actionsVisitor
_toolbarsVisitor
private javax.ide.extension.ElementVisitor _toolbarsVisitor
_menusVisitor
private javax.ide.extension.ElementVisitor _menusVisitor
_menuModel
private final MenuModel _menuModel
MenuHook
public MenuHook()
start
public void start(javax.ide.extension.ElementStartContext context)
- Description copied from class:
javax.ide.extension.ElementVisitor
- Visit the start tag of an xml element.
This implementation does nothing.
getModel
public MenuModel getModel()
createInitialMenuModel
protected MenuModel createInitialMenuModel()
- Create the initial menu model. This prepopulates the menu model with the
standard JSR-198 items and sections so that other items can be positioned
in relation to them.
IDEs may override this to change the position of the standard items based
on the layout of their own menus and toolbars.