xml editor

    XML Editor
    XML Author
        DITA Editor
        DocBook Editor
        TEI Editor
        XHTML Editor
        XML Schema Editor
        RelaxNG Editor
    XQuery
    SVN Client
        Office Open XML
        Open Document Format
        XSL:FO Editor
        SVG Editor
        WSDL Editor
Supported platforms
Compatible with Windows7 & Mac OS X Snow Leopard
Ready for
data server software

[SOLVED ?] oXygen Eclipse Plugin conflicts with Spring IDE

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.

[SOLVED ?] oXygen Eclipse Plugin conflicts with Spring IDE

Postby bgillis » Thu Jan 04, 2007 12:00 pm

After installing the oXygen Eclipse Plugin, the plugin breaks content assist in the Spring IDE Eclipse Plugin. This occurs even if the xml resource is opened with the default XML Editor of WTP that Spring IDE extends.

I've found another post on this forum talking about this issue. The solution provided doesn't work. By default, the "priority" attribute on Spring IDE plugin.xml is already set to the value "high" (in %ECLIPSE_HOME%\plugins\org.springframework.ide.eclipse.beans.ui.editor_x.x.x).

Code: Select all
   <extension point="org.eclipse.core.runtime.contentTypes">
      <content-type id="beansConfig"
         name="%contentTypeName"
         base-type="org.eclipse.core.runtime.xml"
         priority="high"
         default-charset="UTF-8">
         <describer
            class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
            <parameter name="element" value="beans" />
         </describer>
      </content-type>
   </extension>


So I try another attempt to solve this issue by modifying the "priority" attribute in the oXygen XML Editor plugin.xml (in %ECLIPSE_HOME\plugins\com.oxygenxml.editor_x.x.x).

Code: Select all
  <extension point="org.eclipse.core.runtime.contentTypes">
    <content-type
      base-type="org.eclipse.core.runtime.xml"
      priority="normal"
file-extensions="xml,vxml,xtm,xhtml,fo,mathml,jspx,svg,wssr,wssc,rng,nrl,nvdl,xsl,xslt,xsd,tsd,wsdl,sch"
      id="XmlFile" name="oXygen XML">
      <describer class="com.oxygenxml.editor.editors.xml.XMLContentDescriber"/>
    </content-type>
  </extension>


In this file, I change the value of the attribute "priority" from "high" to "normal" and suprisingly, it seems to solve all the conflicts between oXygen XML Editor and Spring IDE ! Does this modification break anything in oXygen XML Editor ? I don't know but until now I haven't seen any side effects. So would you please confirm that this modification doesn't break anything in oXygen XML Editor ?

Don't hesitate to publish this solution on your FAQ if it is the right way to solve this issue.

I thank you in advance for your help.
Bertrand GILLIS
Mainsys Engineering SA
http://www.mainsys.be
bgillis
 
Posts: 5
Joined: Tue Jul 04, 2006 3:57 pm
Location: www.mainsys.be

Postby Mircea » Thu Jan 04, 2007 1:06 pm

Hi Bertrand,

The modification of the priority attribute does not break anything in the Oxygen's code. It was introduced to ensure that xml files are opened with our editor, but if there are conflicts with other tools, decreasing the priority is a good solution.

Best regards,
Mircea
Mircea
 
Posts: 53
Joined: Tue Mar 25, 2003 11:21 am


Return to Common Problems

Who is online

Users browsing this forum: No registered users and 0 guests

XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2009 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor