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

时间:2022-05-29 05:38:17

for the example at voegella.de, I just want to use the built-in text editor to edit Person's name. I just want to learn how to use the text editor in this plugin: org.eclipse.ui.workbench.texteditor

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

1 个解决方案

#1


1  

You can use the default text editor org.eclipse.ui.editors.text.TextEditor in your own RCP apps by including the org.eclipse.ui.editors plugin (and all of its dependencies). You can also subclass org.eclipse.ui.texteditor.AbstractTextEditor from the plugin that you mentioned. Information on working with the platform text editors is available at http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_jface.htm

您可以使用默认的文本编辑器org.eclipse.ui.editor .text。在您自己的RCP应用程序中包含org. eclipsee .ui。编辑器插件(及其所有依赖项)。您还可以对org. eclipsee .ui.texteditor进行子类化。从你提到的插件中提取出AbstractTextEditor。关于如何使用平台文本编辑器的信息可以在http://help.eclipse.org/helios/index.jsp?

You should also check out http://www.eclipse.org/articles/ and information in the section http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Implementing_Support_for_Your_Own_Language

您还应该查看http://www.eclipse.org/articles/以及http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Implementing_Support_for_Your_Own_Language小节中的信息

#1


1  

You can use the default text editor org.eclipse.ui.editors.text.TextEditor in your own RCP apps by including the org.eclipse.ui.editors plugin (and all of its dependencies). You can also subclass org.eclipse.ui.texteditor.AbstractTextEditor from the plugin that you mentioned. Information on working with the platform text editors is available at http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_jface.htm

您可以使用默认的文本编辑器org.eclipse.ui.editor .text。在您自己的RCP应用程序中包含org. eclipsee .ui。编辑器插件(及其所有依赖项)。您还可以对org. eclipsee .ui.texteditor进行子类化。从你提到的插件中提取出AbstractTextEditor。关于如何使用平台文本编辑器的信息可以在http://help.eclipse.org/helios/index.jsp?

You should also check out http://www.eclipse.org/articles/ and information in the section http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Implementing_Support_for_Your_Own_Language

您还应该查看http://www.eclipse.org/articles/以及http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Implementing_Support_for_Your_Own_Language小节中的信息