if (control instanceof Label) { int formHandle = OS.XtParent (control.handle); OS.XmDropSiteUpdate(formHandle, args, args.length / 2); }
public void setTransfer(Transfer[] transferAgents){	if (transferAgents == null) DND.error(SWT.ERROR_NULL_ARGUMENT);	this.transferAgents = transferAgents;		if (!control.isVisible()) return;		// register data types	TransferData[] transferData = new TransferData[0];	for (int i = 0, length = transferAgents.length; i < length; i++){		TransferData[] data = transferAgents[i].getSupportedTypes();		TransferData[] newTransferData = new TransferData[transferData.length +  data.length];		System.arraycopy(transferData, 0, newTransferData, 0, transferData.length);		System.arraycopy(data, 0, newTransferData, transferData.length, data.length);		transferData = newTransferData;	}		int[] atoms = new int[transferData.length];	for (int i = 0, length = transferData.length; i < length; i++){		atoms[i] = transferData[i].type;	}	// Copy import targets to global memory 	int pImportTargets = OS.XtMalloc(atoms.length * 4);	OS.memmove(pImportTargets, atoms, atoms.length * 4);	int[] args = new int[]{		OS.XmNimportTargets,      pImportTargets,		OS.XmNnumImportTargets,   atoms.length	};	OS.XmDropSiteUpdate(control.handle, args, args.length / 2);		OS.XtFree(pImportTargets);	}