if (parent == null) break;
protected OleClientSite(Composite parent, int style) {	// this constructor should never be used by itself because it does	// not create an Ole Object	super(parent, style);		createCOMInterfaces();		// install the Ole Frame for this Client Site	while (true) {		if (parent instanceof OleFrame){			frame = (OleFrame)parent;			break;		}		parent = parent.getParent();		if (parent == null) break;	}	if (frame == null) OLE.error(SWT.ERROR_INVALID_ARGUMENT);	frame.AddRef();		active   = false;	aspect   = COM.DVASPECT_CONTENT;	type     = COM.OLEEMBEDDED;	isStatic = false;	listener = new Listener() {		public void handleEvent(Event e) {			switch (e.type) {			case SWT.Resize :			case SWT.Move :				onResize(e);				break;			case SWT.Dispose :				onDispose(e);				break;			case SWT.FocusIn:				onFocusIn(e);				break;			case SWT.Paint:				onPaint(e);				break;			case SWT.Traverse:				onTraverse(e);				break;			case SWT.KeyDown:				break;			default :				OLE.error(SWT.ERROR_NOT_IMPLEMENTED);			}		}	};	frame.addListener(SWT.Resize, listener);	frame.addListener(SWT.Move, listener);	addListener(SWT.Dispose, listener);	addListener(SWT.FocusIn, listener);	addListener(SWT.Paint, listener);	addListener(SWT.Traverse, listener);	addListener(SWT.KeyDown, listener);}