private void updateActions ( ) { actions . removeAll ( ) ; final ActionGroup mainActionGroup = ( ActionGroup ) actionManager . getAction ( getGroupMenu ( ) ) ; if ( mainActionGroup == null ) { return ; } final Action [ ] children = mainActionGroup . getChildren ( null ) ; for ( final Action action : children ) { final Presentation presentation = presentationFactory . getPresentation ( action ) ; final ActionEvent e = new ActionEvent ( ActionPlaces . MAIN_CONTEXT_MENU , presentation , actionManager , 0 ) ; action . update ( e ) ; if ( presentation . isVisible ( ) ) { actions . add ( action ) ; } } }
Updates the list of visible actions .