case SWT.Help: {
((HelpListener) eventListener).helpRequested (new HelpEvent (e));
break;
}
case SWT.Hide: {
((MenuListener) eventListener).menuHidden(new MenuEvent(e));
break;
}
case SWT.Iconify: {
((ShellListener) eventListener).shellIconified(new ShellEvent(e));
break;
}
case SWT.KeyDown: {
/* Fields set by Control */
KeyEvent event = new KeyEvent(e);
((KeyListener) eventListener).keyPressed(event);
e.doit = event.doit;
break;
}
case SWT.KeyUp: {
/* Fields set by Control */
KeyEvent event = new KeyEvent(e);
((KeyListener) eventListener).keyReleased(event);
e.doit = event.doit;
break;
}
case SWT.Modify: {
((ModifyListener) eventListener).modifyText(new ModifyEvent(e));
break;
}
case SWT.MenuDetect: {
MenuDetectEvent event = new MenuDetectEvent(e);
((MenuDetectListener) eventListener).menuDetected(event);
e.x = event.x;
e.y = event.y;
e.doit = event.doit;
e.detail = event.detail;
break;
}
case SWT.MouseDown: {
((MouseListener) eventListener).mouseDown(new MouseEvent(e));
break;
}
case SWT.MouseDoubleClick: {
((MouseListener) eventListener).mouseDoubleClick(new MouseEvent(e));
break;
}
case SWT.MouseEnter: {
((MouseTrackListener) eventListener).mouseEnter (new MouseEvent (e));
break;
}
case SWT.MouseExit: {
((MouseTrackListener) eventListener).mouseExit (new MouseEvent (e));
break;
}
case SWT.MouseHover: {
((MouseTrackListener) eventListener).mouseHover (new MouseEvent (e));
break;
}
case SWT.MouseMove: {
((MouseMoveListener) eventListener).mouseMove(new MouseEvent(e));
return;
}
case SWT.MouseWheel: {
((MouseWheelListener) eventListener).mouseScrolled(new MouseEvent(e));
return;
}
case SWT.MouseUp: {
((MouseListener) eventListener).mouseUp(new MouseEvent(e));
break;
}
case SWT.Move: {
((ControlListener) eventListener).controlMoved(new ControlEvent(e));
break;
}
case SWT.Paint: {
/* Fields set by Control */
PaintEvent event = new PaintEvent (e);
((PaintListener) eventListener).paintControl (event);
e.gc = event.gc;
break;
}
case SWT.Resize: {
((ControlListener) eventListener).controlResized(new ControlEvent(e));
break;
}
case SWT.Segments: {
SegmentEvent event = new SegmentEvent(e);
((SegmentListener) eventListener).getSegments(event);
e.segments = event.segments;
e.segmentsChars = event.segmentsChars;
break;
}
case SWT.Selection: {
/* Fields set by Sash */
SelectionEvent event = new SelectionEvent (e);
((SelectionListener) eventListener).widgetSelected (event);
e.x = event.x;
e.y = event.y;
e.doit = event.doit;
break;
}
case SWT.Show: {
((MenuListener) eventListener).menuShown(new MenuEvent(e));
break;
}
case SWT.Touch: {
((TouchListener)eventListener).touch(new TouchEvent(e));
break;