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);	}		for (int i = 0; i < dataTypes.length; i++) {		if (dataTypes[i] instanceof TextTransfer && data[i] instanceof String){			display.setData("TextTransfer", data[i]); //$NON-NLS-1$			return;		}	}}