Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Different editors for same file-extensions
Different editors for same file-extensions [message #945222] Mon, 15 October 2012 05:51 Go to previous message
Hazem ELRAFFIEE is currently offline Hazem ELRAFFIEE
Messages: 25
Registered: September 2012
Junior Member
Hey all Smile

If I have an XML type called "msxml" and all files following this schema are named "anything.msxml", I'll register its editor like this:
<extension point="org.eclipse.ui.editors">
    <editor
        class="com.hazem.msxmleditor.ui.MSXMLEditor"
        default="true"
        extensions="msxml"
        id="com.hazem.msxmleditor.ui.MSXMLEditor"
        name="MS Editor"/>
</extension>


The problem is that a schema is usually changing by time. That's why a field in an "msxml" file is always reserved for its schema version.

I already created two editors for two versions of the "msxml". What I'm trying to do is to create a generic editor for both versions. The editor should first check that field, in order to determine which editor it should launch, then it launches the correct editor.

Is that possible?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Simple custom constraint on a property editor
Next Topic:Announcing Sapphire 0.6 Release
Goto Forum:
  


Current Time: Thu May 23 06:19:54 EDT 2013

Powered by FUDForum. Page generated in 0.01783 seconds