protected static void addStreamsOptions(ContextMenu m,int numStreams,boolean join){
  String count="";
  String s="";
  if (numStreams > 1) {
    s="s";
    count=String.valueOf(numStreams) + " ";
  }
  String streamSubmenu="Twitch Stream" + s;
  String miscSubmenu="Miscellaneous";
  m.setSubMenuIcon(streamSubmenu,ICON_SPACING);
  m.addSubItem("stream","Normal",streamSubmenu);
  m.addSubItem("streamPopout","Popout",streamSubmenu);
  m.addSeparator(streamSubmenu);
  m.addSubItem("streamsMultitwitchtv","Multitwitch.tv",streamSubmenu);
  m.addSubItem("streamsSpeedruntv","Speedrun.tv",streamSubmenu);
  m.addSubItem("streamsKadgar","Kadgar.net",streamSubmenu);
  addLivestreamerOptions(m);
  if (join) {
    m.addSeparator();
    m.addItem("join","Join " + count + "channel"+ s);
    m.addSeparator();
    m.addSubItem("hostchannel","Host Channel",miscSubmenu);
    m.addSeparator(miscSubmenu);
    m.addSubItem("copy","Copy Stream Name",miscSubmenu);
    m.addSeparator(miscSubmenu);
    m.addSubItem("follow","Follow Channel",miscSubmenu);
    m.addSubItem("unfollow","Unfollow Channel",miscSubmenu);
  }
}

protected static void addStreamsOptions ( ContextMenu m , int numStreams , boolean join ) { String count = "" ; String s = "" ; if ( numStreams > 1 ) { s = "s" ; count = String . valueOf ( numStreams ) + " " ; } String streamSubmenu = "Twitch Stream" + s ; String miscSubmenu = "Miscellaneous" ; m . setSubMenuIcon ( streamSubmenu , ICON_SPACING ) ; m . addSubItem ( "stream" , "Normal" , streamSubmenu ) ; m . addSubItem ( "streamPopout" , "Popout" , streamSubmenu ) ; m . addSeparator ( streamSubmenu ) ; m . addSubItem ( "streamsMultitwitchtv" , "Multitwitch.tv" , streamSubmenu ) ; m . addSubItem ( "streamsSpeedruntv" , "Speedrun.tv" , streamSubmenu ) ; m . addSubItem ( "streamsKadgar" , "Kadgar.net" , streamSubmenu ) ; addLivestreamerOptions ( m ) ; if ( join ) { m . addSeparator ( ) ; m . addItem ( "join" , "Join " + count + "channel" + s ) ; m . addSeparator ( ) ; m . addSubItem ( "hostchannel" , "Host Channel" , miscSubmenu ) ; m . addSeparator ( miscSubmenu ) ; m . addSubItem ( "copy" , "Copy Stream Name" , miscSubmenu ) ; m . addSeparator ( miscSubmenu ) ; m . addSubItem ( "follow" , "Follow Channel" , miscSubmenu ) ; m . addSubItem ( "unfollow" , "Unfollow Channel" , miscSubmenu ) ; } }
adds menu items to the given contextmenu that provide ways to do stream related stuff .
