Page 1 of 1
urging 2.0.3 plug-in to open a text file as XML
Posted: Tue Aug 26, 2003 4:46 pm
by Mat
Hi, I also want to use the Oxygen plug-in for Eclipse to open and edit .conf-Files. But it didn't recognize that the content is xml and the text editor is used instead. How can I say to the plug-in to open these files as xml?
Thanks in advance,
Mat
Re: urging 2.0.3 plug-in to open a text file as XML
Posted: Wed Aug 27, 2003 4:13 pm
by Mircea
Hi Mat,
You just have to edit the plugin.xml file and add to the editor's extensions list the extensions you need.
See example below:
<extension
point="org.eclipse.ui.editors">
<editor
name="Oxygen XML Editor"
icon="eclipseIcons/XmlIcon16.gif"
extensions="xml, vxml, xtm, xhtml, fo, mathml, SOME_EXT"
...
The same operation can be performed for all editors that are contained in our plugin.
Posted: Mon Sep 01, 2003 12:03 pm
by Mircea
A simpler way to make file associations for specific extensions, is to go to the menu and select Window/Preferences/Workbench/File Associations and add the necessary extension to editors mappings.
Regards Mircea.