Eclipse GEF DND问题
在我们的基于RCP的应用程序之一中,我面临与基于GEF的DND有关的奇怪问题。我试图将项目从基于Jface的树拖到另一个Windows应用程序(第三方),并且由于某种原因无法正常工作。但是,如果我拖放基于SWT的表项目,则可以将树项目丢弃到其他此类应用程序。我们只面对该第三方应用程序(无访问日志)面临问题,可能会出现什么问题?
在很高的级别代码中,如下所示,
在树视图页面上添加了侦听器
treeviewer.adddroptargetListener(new TransferDroptargetListener(...));
侦听器 公共类Transferdragsourcelistener扩展了AbstractTransferdragsouristeristener {
数据集
@Override
public void dragSetData(DragSourceEvent event) {
.... some code goes here and then I set the data...
event.data = someStringValue;
}
I am facing a strange issue related to GEF based DnD in one of our RCP based application. I am trying to drag an item from a JFace based tree to another windows application (3rd party) and due to some reason it is not working. However if I drag and drop a SWT based table item it works and also the tree item can be dropped to notepad ot other such apps. We are facing issue only with that 3rd party app (no access to logs), what could be going wrong?
In a very high level code looks like below,
Listener added on tree view page
treeviewer.addDropTargetListener(new TransferDropTargetListener(...));
The listenerpublic class TransferDragSourceListener extends AbstractTransferDragSourceListener {
Data set
@Override
public void dragSetData(DragSourceEvent event) {
.... some code goes here and then I set the data...
event.data = someStringValue;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论