SWT DropTargetListener has empty event data under Mac OS X

烈酒焚心 提交于 2019-12-10 23:38:49

问题


I'm currently experiencing a weird platform inconsistency between Mac OS X and Windows/Linux.

I've implemented an SWT DropTargetListener and tried to analyze the data dropped in the dragEnter method. Unfortunately, the data attribute of the TransferData contained in the DropTargetEvent parameter is always null on OS X (but becomes valid in DropTargetListener.drop method where it's too late to give user feedback).

It works fine under Windows and Linux.

Can anybody help me out? Or is this a known limitation of SWT DND under OS X?


回答1:


Since the following bugzilla request only returns one old bug, I am not sure it is an active bug when it comes to "TransferData".

There is however a lot more bugs declared for DnD on Mac like this one which comes close to what you are describing.

Could you add the exact version of eclipse and its SWT plugin you are using ?



来源:https://stackoverflow.com/questions/635170/swt-droptargetlistener-has-empty-event-data-under-mac-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!