private void rosterItemSelectAction(ActionEvent e){
  if (rosterSelector.getSelectedRosterEntries().length != 0) {
    log.debug("Roster Entry selected...");
    setRosterEntry(rosterSelector.getSelectedRosterEntries()[0]);
    enableProfileStuff(true);
    if ((profileComboBox.getSelectedIndex() == -1) || (profileComboBox.getSelectedItem() instanceof NullProfileBoxItem)) {
      closeButton.setEnabled(false);
    }
  }
}

private void rosterItemSelectAction ( ActionEvent e ) { if ( rosterSelector . getSelectedRosterEntries ( ) . length != 0 ) { log . debug ( "Roster Entry selected..." ) ; setRosterEntry ( rosterSelector . getSelectedRosterEntries ( ) [ 0 ] ) ; enableProfileStuff ( true ) ; if ( ( profileComboBox . getSelectedIndex ( ) == - 1 ) || ( profileComboBox . getSelectedItem ( ) instanceof NullProfileBoxItem ) ) { closeButton . setEnabled ( false ) ; } } }
rosteritemselectaction ( ) actioneventlistener function for rosterselector chooses a rosterentry from the list and loads its relevant info .
