}
case SWT.Collapse: {
if (eventListener instanceof TreeListener) {
((TreeListener) eventListener).treeCollapsed(new TreeEvent(e));
} else {
((ExpandListener) eventListener).itemCollapsed(new ExpandEvent(e));
}
break;
}
case SWT.Deactivate: {
((ShellListener) eventListener).shellDeactivated(new ShellEvent(e));
break;
}
case SWT.Deiconify: {
((ShellListener) eventListener).shellDeiconified(new ShellEvent(e));
break;
}
case SWT.DefaultSelection: {
((SelectionListener)eventListener).widgetDefaultSelected(new SelectionEvent(e));
break;
}
case SWT.Dispose: {
((DisposeListener) eventListener).widgetDisposed(new DisposeEvent(e));
break;
}
case SWT.DragDetect: {
((DragDetectListener) eventListener).dragDetected(new DragDetectEvent(e));
break;
}
case SWT.Expand: {
if (eventListener instanceof TreeListener) {
((TreeListener) eventListener).treeExpanded(new TreeEvent(e));
} else {
((ExpandListener) eventListener).itemExpanded(new ExpandEvent(e));
}
break;
}
case SWT.FocusIn: {
((FocusListener) eventListener).focusGained(new FocusEvent(e));