private void openContextMenu(MouseEvent e){
  if (e.isPopupTrigger()) {
    selectClicked(e,false);
    List<RemovedListItem> selectedItems=list.getSelectedValuesList();
    List<StreamInfo> selected=new ArrayList<>();
    for (    RemovedListItem item : selectedItems) {
      selected.add(item.getStreamInfo());
    }
    StreamInfosContextMenu m=new StreamInfosContextMenu(selected,false);
    for (    ContextMenuListener cml : contextMenuListeners) {
      m.addContextMenuListener(cml);
    }
    m.show(list,e.getX(),e.getY());
  }
}

private void openContextMenu ( MouseEvent e ) { if ( e . isPopupTrigger ( ) ) { selectClicked ( e , false ) ; List < RemovedListItem > selectedItems = list . getSelectedValuesList ( ) ; List < StreamInfo > selected = new ArrayList < > ( ) ; for ( RemovedListItem item : selectedItems ) { selected . add ( item . getStreamInfo ( ) ) ; } StreamInfosContextMenu m = new StreamInfosContextMenu ( selected , false ) ; for ( ContextMenuListener cml : contextMenuListeners ) { m . addContextMenuListener ( cml ) ; } m . show ( list , e . getX ( ) , e . getY ( ) ) ; } }
open context menu for this user , if the event points at one .
