问题描述
我有一个接近完成的e3应用程序,但需要e4的依赖注入功能,所以我搬到开普勒。
I got a nearly finished e3 application, but need the dependency injection feature from e4, therefore I moved to Kepler.
现在在e4中,如果我将应用程序作为e3应用程序运行,则e3插件正在运行。
但是如果我更改为 Application.e4xmi
系统将失败。 (不知何故预期)
Now in e4, the e3 plugins are working, if I run my application as an e3 App.But if I change to Application.e4xmi
the system fails. (somehow expected this)
如何将e3插件移动到e4,以便我的观点和观点是
工作(我有很多的em!我不能删除它们 - 我需要他们
扩展如果插件添加!)
还有菜单贡献,处理程序/命令需要工作(我的 fragment.e4xmi 中没有添加到gui)
How can I move my e3 plugins to e4 so my perspectives and views areworking (I got plenty of em! And I cannot remove them - I need them tobe extended if an plugin gets added!)also Menu contributions, Handlers/Commands need to work (nothing in my fragment.e4xmi gets added to the gui)
我将我的api更改为e4,所以我不再使用iWorkbench 或 PlatformUI 或 ViewPart 界面(还有一些方法可以去,将这个插件用于测试目的)
I changed my api to e4 so I no longer use IWorkbench or PlatformUI nor ViewPart interfaces (still some way to go, only did this in one plugin for testing purposes)
将我的 plugin.xml (e3代码)转换为e4 fragment.e4xmi (但在e4中导致视图/观点被破坏。)
Transformed my plugin.xml (e3 code) to an e4 fragment.e4xmi (but found out (link to stackoverflow) that contributing views/perspectives is broken in e4.)
我将 fragment.e4xmi 添加为我的中的扩展名>点lugin.xml 并删除其他所有内容(e3样式)
I added the fragment.e4xmi as extension in my plugin.xml and removed everything else (e3-style)
- Stackoverflow
- Lars Vogel
- Jonas Helming
编辑/更新
Edit/Updates
- Bug 376486 - Eclipse 4 IDE not extendable via fragments or processors - so how do you extend your e4 Application - if its not working via fragments or processors?
- to raise the possibility of an solution i split up the problem and described a part here
推荐答案
解决该需要的创建在一个 E4
工作区中 E3应用
的。
然后创建 POJO视图
并使用 Wrapper Class
启用 DI
。
solving this required creation of an e3 Application
in an e4
workspace.then create POJO views
and use the Wrapper Class
to enable DI
.
详细的解决方案可以找到
detailed solution for building it up can be found here
这篇关于Eclipse e3到e4迁移/适应(首选) - 建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!