if (this.extensionManager.supports(e.getGeneralDataset(),
DatasetSelectionExtension.class)) {
//TODO a type save solution would be nice
DatasetCursor cursor = e.getItemCursor();
DatasetSelectionExtension selectionExtension
= this.extensionManager.getExtension(
e.getGeneralDataset(),
DatasetSelectionExtension.class);
// work on the data
selectionExtension.setSelected(cursor, true);
}
}
}