} if (index + 1 < table.getItemCount()) { Track nextTrack = (Track) hashByTableItem.get(table.getItem(index + 1)); if (comparator.compare(track, nextTrack) > 0) load(); }
if (index + 1 < table.getItemCount()) { Track nextTrack = (Track) hashByTableItem.get(table.getItem(index + 1)); if (comparator.compare(track, nextTrack) > 0) load(); }
  public void updateTrack(Track track) {    TableItem tableItem = (TableItem) hashByTrack.get(track);    if (tableItem != null) {      updateTableItem(tableItem, track);            // If the tracks are now out of order then we have to sort the list.      int index = table.indexOf(tableItem);      if (index != 0) {        Track prevTrack = (Track) hashByTableItem.get(table.getItem(index - 1));        if (comparator.compare(prevTrack, track) > 0) {          load();          return;                  }      }      if (index + 1 < table.getItemCount()) {        Track nextTrack = (Track) hashByTableItem.get(table.getItem(index + 1));        if (comparator.compare(track, nextTrack) > 0)          load();      }    }  }