checkWidget(); int xDisplay = OS.XtDisplay(shellHandle); if (xDisplay == 0) return new TransferData[0]; byte[][] types = _getAvailableTypes(); TransferData[] result = new TransferData[types.length]; for (int i = 0; i < types.length; i++) { int atom = OS.XmInternAtom(xDisplay, types[i], true); result[i] = new TransferData(); result[i].type = atom; } return result;
return getAvailableTypes(DND.CLIPBOARD);
public TransferData[] getAvailableTypes() {	checkWidget();	int xDisplay = OS.XtDisplay(shellHandle);	if (xDisplay == 0) return new TransferData[0];	byte[][] types = _getAvailableTypes();	TransferData[] result = new TransferData[types.length];	for (int i = 0; i < types.length; i++) {		int atom = OS.XmInternAtom(xDisplay, types[i], true);		result[i] = new TransferData();		result[i].type = atom;	}	return result;}