ui/src/main/java/ucar/nc2/ui/widget/PopupMenu.java
public void addAction( String menuName, Action act) {
    act.putValue( Action.NAME, menuName);
    super.add(act);
  }
public void addAction( String menuName, Action act) {
    act.putValue( Action.NAME, menuName);
    super.add(act);
  }
public void addAction ( String menuName , Action act ) { act . putValue ( Action . NAME , menuName ) ; super . add ( act ) ; }
Add an action to the popup menu.
Note that the menuName is made the NAME value of the action.
@param menuName name of the action on the menu.
@param act the Action.
Add an action to the popup menu . Note that the menuName is made the NAME value of the action .