Object selection = ((IStructuredSelection) treeViewer.getSelection()).getFirstElement();
if (selection instanceof CategoryRadioItem) {
treeViewer.setExpandedState(selection, !treeViewer.getExpandedState(selection));
} else if (selection instanceof RadioItem) {
new PlayRadioAction((RadioItem) selection).run();
}
}