在plug-in.xml中如何将文件扩展名与eclipse插件中的特定类型的编辑器相关联 [英] In plug-in.xml how to associate a file extension with a particular kind of editor in eclipse plug-in
本文介绍了在plug-in.xml中如何将文件扩展名与eclipse插件中的特定类型的编辑器相关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个eclipse插件,其中扩展名为.cert的文件与实现在RateBuilderEditor.java中的某种编辑器相关联?
我想,我必须在plugin.xml中提到这个?我该如何实现?如何写这个ExtensionPoint?
I'm developing an eclipse plug-in in which when files with extension ".cert" are to be associated with a certain kind of editor whose implementation is in RateBuilderEditor.java ? I think, I have to mention this in plugin.xml ? How do I achieve this ? How to write this 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>
这篇关于在plug-in.xml中如何将文件扩展名与eclipse插件中的特定类型的编辑器相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文