Track track = playThread.getCurrentTrack(); String s = track.toString();  shell.setText("iRATE radio - " + s); TableItem item = (TableItem)hashSongs.get(track); tblSongs.select(tblSongs.indexOf(item)); tblSongs.showItem(item);  track2TableItem(track, item);  if(track != previousTrack) { if(previousTrack != null) track2TableItem(previousTrack, (TableItem)hashSongs.get(previousTrack)); previousTrack = track; } downloadThread.checkAutoDownload();
display.asyncExec(new Runnable() { public void run() {  Track track = playThread.getCurrentTrack(); String s = track.toString();  shell.setText("iRATE radio - " + s); TableItem item = (TableItem)hashSongs.get(track); tblSongs.select(tblSongs.indexOf(item)); tblSongs.showItem(item);  track2TableItem(track, item);  if(track != previousTrack) { if(previousTrack != null) track2TableItem(previousTrack, (TableItem)hashSongs.get(previousTrack)); previousTrack = track; } downloadThread.checkAutoDownload(); } });
  public void update(){        //synchronizePlaylist(playListManager, tblSongs);    Track track = playThread.getCurrentTrack();    String s = track.toString();//    lblTitle.setText(s);    shell.setText("iRATE radio - " + s);    TableItem item = (TableItem)hashSongs.get(track);    tblSongs.select(tblSongs.indexOf(item));    tblSongs.showItem(item);        //just in case :)    track2TableItem(track, item);        if(track != previousTrack) {      if(previousTrack != null)        track2TableItem(previousTrack, (TableItem)hashSongs.get(previousTrack));      previousTrack = track;    }    downloadThread.checkAutoDownload();     }