question: protected void addItems ( List < ? extends Action > actions ) { ActionContainerFactory factory = new ActionContainerFactory ( null ) ; for ( Action action : actions ) { AbstractActionExt a = ( AbstractActionExt ) action ; if ( action . isEnabled ( ) ) { if ( a . isStateAction ( ) ) addItem ( createCheckBox ( ( AbstractActionExt ) action ) ) ; else { addItem ( factory . createButton ( action ) ) ; } } } }
target:  Here: creates and adds a menuItem to the popup for every  Action in the list. Does nothing if  if the list is empty. PRE: actions != null.