List<SelectedContent> listSelected = new ArrayList<SelectedContent>(
dataSources.length);
for (Object ds : dataSources) {
if (ds instanceof DiskManagerFileInfo) {
DiskManagerFileInfo fileInfo = (DiskManagerFileInfo) ds;
listSelected.add(new SelectedContent(fileInfo.getDownloadManager(),
fileInfo.getIndex()));
}
}
SelectedContentManager.changeCurrentlySelectedContent(tv.getTableID(),
listSelected.toArray(new SelectedContent[0]), tv);