我正在开发一个 eclipse 插件,当扩展名为“.cert”的文件要与某种编辑器相关联时,该编辑器的实现在 RateBuilderEditor.java 中? 我想,我必须在 plugin.xml 中提到这个吗?我如何实现这一目标?这个ExtensionPoint怎么写?
最佳答案
给你:
<extension point="org.eclipse.ui.editors">
<editor
class="[editor-impl-class]"
default="true"
filenames="*.cert"
id="[some-id-or-use-impl-class]"
name="My Custom Editor"
icon="images/something.png"/>
</extension>
关于eclipse - 在 plug-in.xml 中如何将文件扩展名与 eclipse 插件中的特定类型的编辑器相关联,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5317563/