简体   繁体   English

将基于 EMF / GMF 的 eclipse 3 插件迁移到 RCP

[英]Migrate EMF / GMF based eclipse 3 plugins to RCP

Some time ago I created a graphical editor with GMF ( xsd->ecore->emf->gmf).前段时间我用 GMF(xsd->ecore->emf->gmf)创建了一个图形编辑器。 Additionally I created plugins with different views, launchers (debugger) and more.此外,我创建了具有不同视图、启动器(调试器)等的插件。

All those plugins were created with Eclipse Helios.所有这些插件都是用 Eclipse Helios 创建的。

Now, I would like to create a RCP application out of my plugins.现在,我想用我的插件创建一个 RCP 应用程序。 I did a lot of internet research but still do not really understand how to begin.我做了很多互联网研究,但仍然不知道如何开始。

I read this tutorial ( http://www.vogella.com/tutorials/EclipseRCP/article.html#plugin_creatinge4 ) but I am still not sure what to do.我阅读了本教程( http://www.vogella.com/tutorials/EclipseRCP/article.html#plugin_creatinge4 ),但我仍然不确定该怎么做。 If I would do as told in this tutorial, I would have to build all the windows, editors, menus and so on manually, correct ?如果我按照本教程中的说明进行操作,则必须手动构建所有窗口、编辑器、菜单等,对吗?

And if so, how to get those default eclipse features in my RCP application, like: Create an empty project, starting my "New Diagram" Wizard, double click the diagram file in the project view to open the editor...and so on...如果是这样,如何在我的 RCP 应用程序中获取这些默认的 Eclipse 功能,例如:创建一个空项目,启动我的“新建图表”向导,双击项目视图中的图表文件以打开编辑器......等等...

Do I really have to build all those features manually with the Application Model file ??我真的必须使用应用程序模型文件手动构建所有这些功能吗??

I really could use some pointers to the right direction.我真的可以使用一些指向正确方向的指针。

Thanks in advance!提前致谢!

The tutorial you have found is describing the new e4 API.您找到的教程描述了新的 e4 API。 This does not support a lot of the older 3.x compatibility APIs so it is not suitable for using to build a RCP which uses plugins based on 3.x.这不支持很多旧的 3.x 兼容性 API,因此它不适合用于构建使用基于 3.x 的插件的 RCP。 The e4 API is good for building new RCPs which don't use 3.x plugins. e4 API 适用于构建不使用 3.x 插件的新 RCP。

Instead you can still build a 3.x style RCP, see this tutorial for more details on doing that.相反,您仍然可以构建 3.x 样式的 RCP,请参阅本教程以获取有关执行此操作的更多详细信息。 The 3.x style RCP will continue to be supported for a long time. 3.x 风格的 RCP 将在很长一段时间内继续得到支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM