Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.menu.spi
Class MenuHook  view MenuHook download MenuHook.java

java.lang.Object
  extended byjavax.ide.extension.ElementVisitor
      extended byjavax.ide.extension.ExtensionHook
          extended byjavax.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.


Field Summary
private  javax.ide.extension.ElementVisitor _actionsVisitor
           
private  MenuModel _menuModel
           
private  javax.ide.extension.ElementVisitor _menusVisitor
           
private  javax.ide.extension.ElementVisitor _toolbarsVisitor
           
private static javax.ide.extension.ElementName ACTIONS
           
static javax.ide.extension.ElementName ELEMENT
           
(package private) static java.lang.String KEY_MENU_MODEL
           
(package private) static java.lang.String KEY_SECTION_CONTAINER
           
private static javax.ide.extension.ElementName MENUS
           
private static javax.ide.extension.ElementName TOOLBARS
           
 
Fields inherited from class javax.ide.extension.ExtensionHook
KEY_EXTENSION, KEY_RSBUNDLE_CLASS, MANIFEST_XMLNS
 
Fields inherited from class javax.ide.extension.ElementVisitor
KEY_LOCATOR
 
Constructor Summary
MenuHook()
           
 
Method Summary
protected  MenuModel createInitialMenuModel()
          Create the initial menu model.
 MenuModel getModel()
           
 void start(javax.ide.extension.ElementStartContext context)
          Visit the start tag of an xml element.
 
Methods inherited from class javax.ide.extension.ExtensionHook
getExtension, getRSBundleClass, resolvePath
 
Methods inherited from class javax.ide.extension.ElementVisitor
end, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MenuHook

public MenuHook()
Method Detail

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.