Oxygen XML Editor

xml editor

 
About
Downloads
Register
Shop
Resources
Support
Supported platforms
It is currently Tue Oct 07, 2008 12:41 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [SOLVED ?] oXygen Eclipse Plugin conflicts with Spring IDE
PostPosted: Thu Jan 04, 2007 11:00 am 
Offline

Joined: Tue Jul 04, 2006 2:57 pm
Posts: 5
Location: www.mainsys.be
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:
   <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:
  <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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 12:06 pm 
Offline

Joined: Tue Mar 25, 2003 10:21 am
Posts: 43
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000-2007 phpBB Group
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor