[SOLVED ?] oXygen Eclipse Plugin conflicts with Spring IDE

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bgillis
Posts: 5
Joined: Tue Jul 04, 2006 3:57 pm
Location: www.mainsys.be

[SOLVED ?] oXygen Eclipse Plugin conflicts with Spring IDE

Post by bgillis »

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

Post by Mircea »

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
Post Reply