public void setRating(Track track, int rating) { track.setRating(rating);  TableItem ti = (TableItem) hashSongs.get(track); track2TableItem(track, ti); update();  try{ trackDatabase.save(); }catch(Exception e){ e.printStackTrace(); }
public void setRating(final Track track, int rating) {   final Integer ratingInt = new Integer(rating); display.asyncExec(new Runnable() { public void run() { track.setRating(ratingInt.intValue());  TableItem ti = (TableItem) hashSongs.get(track); track2TableItem(track, ti); update();  try{ trackDatabase.save(); }catch(Exception e){ e.printStackTrace(); } } });
  public void setRating(Track track, int rating) {    track.setRating(rating);    TableItem ti = (TableItem) hashSongs.get(track);    track2TableItem(track, ti);    update();    //save the precious ratings :)    try{      trackDatabase.save();    }catch(Exception e){      e.printStackTrace();    }  }