In plug-in.xml how to associate a file extension with a specific editor view in the eclipse plugin

I am developing an eclipse plugin in which when files with the extension ".cert" should be associated with a certain kind of editor, the implementation of which is in RateBuilderEditor.java? I think I should mention this in plugin.xml? How do I achieve this? How to write this ExtensionPoint?

+3
source share
1 answer

Here you go:

<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>
+3
source

All Articles