}
@Override
public void checkStateChanged(CheckStateChangedEvent event) {
if(event.getElement() instanceof IEnableableModule) {
final IEnableableModule m = (IEnableableModule) event.getElement();
m.setEnabled(event.getChecked());
viewer.refresh();
} else if(event.getElement() instanceof String) {
final String category = (String) event.getElement();
setEnableStateForCategory(category, event.getChecked());
viewer.setSubtreeChecked(event.getElement(), event.getChecked());