if (display == null) DND.error(SWT.ERROR_WIDGET_DISPOSED); if (display.isDisposed()) DND.error(SWT.ERROR_DEVICE_DISPOSED);
checkWidget();
public void setContents(Object[] data, Transfer[] dataTypes) {	if (display == null) DND.error(SWT.ERROR_WIDGET_DISPOSED);	if (display.isDisposed()) DND.error(SWT.ERROR_DEVICE_DISPOSED);	if (data == null || dataTypes == null || data.length != dataTypes.length) {		DND.error(SWT.ERROR_INVALID_ARGUMENT);	}		this.data = data;	this.transferAgents = dataTypes;	if (COM.OleSetClipboard(this.iDataObject.getAddress()) != COM.S_OK ) {		DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD);	}	if (COM.OleIsCurrentClipboard(this.iDataObject.getAddress()) != COM.S_OK) {		DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD);	}	if (COM.OleFlushClipboard() != COM.S_OK) {		DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD);	}	this.data = new Object[0];	this.transferAgents = new Transfer[0];}