int[] mask= new int[] {
void hookEvents () {	super.hookEvents ();    /* AW	int windowProc = display.windowProc;	OS.XtAddEventHandler (shellHandle, OS.StructureNotifyMask, false, windowProc, SWT.Resize);	if (OS.XtIsSubclass (shellHandle, OS.OverrideShellWidgetClass ())) return;	OS.XtAddEventHandler (shellHandle, OS.FocusChangeMask, false, windowProc, SWT.FocusIn);	int [] argList = {OS.XmNdeleteResponse, OS.XmDO_NOTHING};	OS.XtSetValues (shellHandle, argList, argList.length / 2);	int xDisplay = OS.XtDisplay (shellHandle);	if (xDisplay != 0) {		int atom = OS.XmInternAtom (xDisplay, WM_DELETE_WINDOW, false);		OS.XmAddWMProtocolCallback (shellHandle, atom, windowProc, SWT.Dispose);	}    */	Display display= getDisplay();		int ref= OS.GetWindowEventTarget(shellHandle);	int[] mask= new int[] {		OS.kEventClassMouse, OS.kEventMouseDown,		OS.kEventClassMouse, OS.kEventMouseMoved,		OS.kEventClassMouse, OS.kEventMouseDragged,		OS.kEventClassMouse, OS.kEventMouseUp	};	OS.InstallEventHandler(ref, display.fApplicationProc, mask, shellHandle);	int[] mask2= new int[] {		OS.kEventClassWindow, OS.kEventWindowActivated,		OS.kEventClassWindow, OS.kEventWindowDeactivated,		OS.kEventClassWindow, OS.kEventWindowBoundsChanged,		OS.kEventClassWindow, OS.kEventWindowClose,		OS.kEventClassWindow, OS.kEventWindowDrawContent,	};	OS.InstallEventHandler(ref, display.fWindowProc, mask2, shellHandle);}