XulTree aggTable = (XulTree) document.getElementById("definedAggTable");
XulTreeRow row = aggTable.getRootChildren().getItem(idx).getRow();
agg.setEnabled((Boolean) row.getCell(0).getValue());
// get row count estimate
Aggregate algoAggregate = algorithm.createAggregate(connectionModel.getSchema(), agg.getAttributes());
agg.setEstimateRowCount(algoAggregate.estimateRowCount());
agg.setEstimateSpace(algoAggregate.estimateSpace());
getAggList().aggChanged(agg);
System.out.println("Saving agg, enabled? " + row.getCell(0).getValue());
}