urging 2.0.3 plug-in to open a text file as XML

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Mat

urging 2.0.3 plug-in to open a text file as XML

Post 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
Mircea
Posts: 131
Joined: Tue Mar 25, 2003 11:21 am

Re: urging 2.0.3 plug-in to open a text file as XML

Post 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.
Mircea
Posts: 131
Joined: Tue Mar 25, 2003 11:21 am

Post 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.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply