public boolean isPopupMenuItemSelected(){
  return popupMenuGroup.getSelection() != null;
}

public boolean isPopupMenuItemSelected ( ) { return popupMenuGroup . getSelection ( ) != null ; }
getter for the selection state of the menu .
