如何使用在Eclipse RCP4中创建的XMLEditor或Editor插件

时间:2013-12-11 07:44:02

标签: editor eclipse-rcp e4

我是Eclipse RCP的新手,所以请帮助我。假设我在Eclipse Kepler(4.x)中创建了 SimpleTextEditor 扩展 TextEditor 插件,其中包含 FileEditorInput SimpleDocumentProvider 。如何在Workbench或Part in application model中的编辑器中显示此编辑器并打开文件。

非常感谢

1 个答案:

答案 0 :(得分:1)

在纯e4应用程序中,您无法使用旧的Eclipse 3.x样式编辑器。您可以自行设计零件的工作方式。

您可以使用org.eclipse.jface.text TextViewer及类似内容,但不能使用org.eclipse.ui.editors

中的任何内容

编辑:

您可能希望查看包含e4的简单XML编辑器的this work by Tom Schindl,尽管它看起来可能已过时。可以找到此示例XML编辑器的来源here

Vogella Migration Guide涵盖了迁移,包括3.x Bridge代码,它允许您在e4部分中使用3.x代码。

相关问题