gpt4 book ai didi

eclipse - 在 plug-in.xml 中如何将文件扩展名与 eclipse 插件中的特定类型的编辑器相关联

转载 作者:行者123 更新时间:2023-12-02 00:34:14 26 4
gpt4 key购买 nike

我正在开发一个 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com