@Override
public void stateChanged(ChangeEvent e) {
// TODO: there has to be a cleaner way to do this
if(e.getSource() instanceof MainTabView) {
MainTabView view = (MainTabView) e.getSource();
Component selectedComponent = view.getSelectedComponent();
if(selectedComponent instanceof IToolbarGroupProvider) {
IToolbarGroupProvider provider = (IToolbarGroupProvider) selectedComponent;
setRelevantTabGroup(provider.getGroup());
} else {
setRelevantTabGroup(null);