Eclipse e3到e4迁移/适应(首选) - 建议 [英] Eclipse e3 to e4 migration/adaption(preferred) - recommendations

查看:510
本文介绍了Eclipse e3到e4迁移/适应(首选) - 建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个接近完成的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 are working (I got plenty of em! And I cannot remove them - I need them to be 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 (但找到(链接到stackoverflow )在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)


  1. Stackoverflow

  2. Lars Vogel

  3. Jonas Helming

  1. Stackoverflow
  2. Lars Vogel
  3. Jonas Helming



编辑/更新



Edit/Updates


  1. - 所以如何扩展e4应用程序 - 如果它不通过片段或处理器工作?

  2. 提高解决方案的可能性,我分解了问题,并描述了一个部分。这里

  1. 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?
  2. 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迁移/适应(首选) - 建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆