private void openContextMenu(MouseEvent e){
  if (e.isPopupTrigger()) {
    Collection<String> streams=new HashSet<>();
    int[] selectedRows=table.getSelectedRows();
    for (    int selectedRow : selectedRows) {
      Follower selected=followers.get(selectedRow);
      streams.add(StringUtil.toLowerCase(selected.name));
    }
    if (!streams.isEmpty()) {
      StreamsContextMenu m=new StreamsContextMenu(streams,contextMenuListener);
      m.show(table,e.getX(),e.getY());
    }
  }
}

private void openContextMenu ( MouseEvent e ) { if ( e . isPopupTrigger ( ) ) { Collection < String > streams = new HashSet < > ( ) ; int [ ] selectedRows = table . getSelectedRows ( ) ; for ( int selectedRow : selectedRows ) { Follower selected = followers . get ( selectedRow ) ; streams . add ( StringUtil . toLowerCase ( selected . name ) ) ; } if ( ! streams . isEmpty ( ) ) { StreamsContextMenu m = new StreamsContextMenu ( streams , contextMenuListener ) ; m . show ( table , e . getX ( ) , e . getY ( ) ) ; } } }
open the context menu for the given mouseevent if it is the popup trigger and rows are selected .
