I have a flowchart editor for which xml file is the input. in the plugin.xml i have specified the extension as xml for my editor but it is opening in the default xml editor. what makes the file opening in my editor ? i want to do this in my plugin development. after i launch my plugin there is no preference or open with context menu. and i want to keep my editor as default for xml files
Share
Eclipse provides a mechanism to programmatically identify file types based on their actual content. The org. eclipse. core. contenttype. contentTypes extension point can be used to define a content type described by a “describer,” which is a class capable of recognizing specific types of content given an input stream. Editors designed to work with a specific content type can be bound to it instead of a file extension.
We need to specify the content type in the plugin.xml like below
below is the references and it works fine
http://www.developer.com/java/data/article.php/3648736/Eclipse-Tip-Define-Custom-Content-Types-to-Identify-Your-Data-Files.htm