comparator.setDefaultSortColumn(idx);
}
@Override
protected TableChartOptions createChartOptions() {
TableChartOptions options = new TableChartOptions();
Table table = viewer.getTable();
for (int i = 0, size = table.getColumnCount(); i < size; i++) {
CellLabelProvider labelProvider = getCellLabelProvider(i);
Class<?> returnType = Objects.getReturnType(labelProvider);
if (Objects.isNumberType(returnType)) {
TableColumn column = table.getColumn(i);
options.addNumericColumn(new TableChartColumnInfo(column, labelProvider));
}
}
return options;
}