如何为我的RCP应用程序使用现有的文本编辑器?

时间:2011-05-18 10:34:15

标签: eclipse-rcp

对于voegella.de的示例,我只想使用内置的文本编辑器来编辑Person的名称。我只是想学习如何在这个插件中使用文本编辑器: org.eclipse.ui.workbench.texteditor

1 个答案:

答案 0 :(得分:1)

您可以在自己的RCP应用中使用默认文本编辑器org.eclipse.ui.editors.text.TextEditor,方法是添加 org.eclipse.ui.editors 插件(及其所有依赖项)。您还可以从您提到的插件中继承org.eclipse.ui.texteditor.AbstractTextEditor。有关使用平台文本编辑器的信息,请访问http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_jface.htm

您还应该查看http://www.eclipse.org/articles/以及http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Implementing_Support_for_Your_Own_Language

部分中的信息