});
}
public int compare(Viewer viewer, Object e1, Object e2) {
ICounterMode mode = settings.getCounterMode();
ICounter c1 = mode.getCounter(CoverageTools.getCoverageInfo(e1));
ICounter c2 = mode.getCounter(CoverageTools.getCoverageInfo(e2));
int res = 0;
switch (settings.getSortColumn()) {
case CoverageView.COLUMN_ELEMENT:
res = elementsorter.compare(viewer, e1, e2);
break;
case CoverageView.COLUMN_RATIO:
res = Double.compare(c1.getRatio(), c2.getRatio());
break;
case CoverageView.COLUMN_COVERED:
res = (int) (c1.getCoveredCount() - c2.getCoveredCount());
break;
case CoverageView.COLUMN_TOTAL:
res = (int) (c1.getTotalCount() - c2.getTotalCount());
break;
}
if (res == 0) {
res = elementsorter.compare(viewer, e1, e2);
} else {