[英]Is there no default drag and drop behavior in an e4 application created by e(fx)clipse?
I just created an e4 application by e(fx)clipse following this tutorial , then I added two parts in my application as following screenshot. 在本教程之后 ,我只是通过e(fx)clipse创建了一个e4应用程序,然后在我的应用程序中添加了两个部分,如下图所示。
And then when I mess around with this application, I found that these two tabs can't be drag and drop.
然后当我弄乱这个应用程序时,我发现这两个选项卡无法拖放。 Theoretically speaking, every window/view should be able to be drag and drop in a SWT UI based e4 application.
从理论上讲,每个窗口/视图都应该能够在基于SWT UI的e4应用程序中拖放。 Can anyone tell me how to make window/view drag and drop behavior possible in such an application?
谁能告诉我如何在这样的应用程序中实现窗口/视图的拖放行为? Really appreciate it.
真的很感激。
Drag and drop is not part of the core of e4. 拖放不是e4核心的一部分。
You must add the appropriate DnD addon to the Add-ons list in the Application.e4xmi to get drag and drop. 您必须将适当的DnD插件添加到Application.e4xmi的“插件”列表中,才能进行拖放。
For JavaFX this is org.eclipse.fx.ui.workbench.renderers.base.addons.DnDAddon
(full entry in the Application.e4xmi should be bundleclass://org.eclipse.fx.ui.workbench.renderers.base/org.eclipse.fx.ui.workbench.renderers.base.addons.DnDAddon
). 对于JavaFX,这是
org.eclipse.fx.ui.workbench.renderers.base.addons.DnDAddon
(Application.e4xmi中的完整条目应为bundleclass://org.eclipse.fx.ui.workbench.renderers.base/org.eclipse.fx.ui.workbench.renderers.base.addons.DnDAddon
)。 You may also need the cleanup addon bundleclass://org.eclipse.fx.ui.workbench.renderers.base/org.eclipse.fx.ui.workbench.renderers.base.addons.CleanUpAddon
您可能还需要清理插件
bundleclass://org.eclipse.fx.ui.workbench.renderers.base/org.eclipse.fx.ui.workbench.renderers.base.addons.CleanUpAddon
For SWT it is org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon
对于SWT,它是
org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.