SWT DropTargetListener在Mac OS X下有空的事件数据 [英] SWT DropTargetListener has empty event data under Mac OS X
问题描述
我已经实现了一个SWT DropTargetListener
并尝试分析在 dragEnter
方法中丢弃的数据。不幸的是, DropTargetEvent
TransferData 的数据
>参数在OS X上始终为 null
(但是在 DropTargetListener.drop
方法中有效,现在给用户太晚反馈)。
在Windows和Linux下工作正常。
有人可以帮我吗?或者这是OS X下SWT DND的已知限制?
由于以下bugzilla请求只返回一个旧错误,我不知道是一个活跃的bug,当它来了oTransferData。
然而,很多在Mac上为DnD声明的更多错误,如这个接近你是什么描述。
您可以添加您正在使用的eclipse及其SWT插件的确切版本吗?
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?
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 ?
这篇关于SWT DropTargetListener在Mac OS X下有空的事件数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!