/* Content Provider */
boolean hideCompleted = fPreferences.getBoolean(DefaultPreferences.HIDE_COMPLETED_DOWNLOADS);
fViewer.setContentProvider(new org.eclipse.ui.internal.progress.ProgressViewerContentProvider(fViewer, false, !hideCompleted));
/* Comparator */
fViewer.setComparator(new ViewerComparator() {
@SuppressWarnings("unchecked")
@Override
public int compare(Viewer viewer, Object obj1, Object obj2) {
if (obj1 instanceof Comparable && obj2 instanceof Comparable)
return ((Comparable) obj1).compareTo(obj2);