public ElementMenuItem registerMenu ( String path , String action ) { ElementMenuItem menu = getElement ( path , getDesktop ( ) . getMenubar ( ) , ElementMenuItem . class ) ; menu . setAction ( action ) ; return menu ; }
Register a menu .