Page 1 of 1

Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Apr 29, 2008 1:08 am
by sanderson
I have an Eclipse plugin that defines some schemas in the Eclipse XML catalog. I'd like to figure out how to get oxygen in Eclipse to use that catalog as well as the ones I've defined.

That probably doesn't make a lot of sense. Let me walk you through it.

In Eclipse, go to Windows -> Preferences. In the tree control, expand Web and XML. There is an entry for XML Catalog.

There's a whole list of Plugin specified entries there. I'd like those to automatically be included in the oxygen catalog. Windows -> Preferences -> Oxygen -> XML -> XML Catalog.

I feel like this would be a common request for eclipse users, but I couldn't find it by searching the forums. If I missed it, I apologize.

Re: Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Apr 29, 2008 5:35 pm
by sorin_ristache
Hello,

Oxygen does not use yet the XML catalogs defined in the general Eclipse list of XML catalogs available from Preferences - Web and XML - XML Catalog. You have to add the XML catalogs that you need when working with the Oxygen plugin to the list of Oxygen XML catalogs (Preferences - Oxygen - XML - XML Catalog). We will consider using also the catalogs set in the general Eclipse list.

Thank you for your request,
Sorin

Re: Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Apr 29, 2008 8:09 pm
by sanderson
That'd be great.

The reason I ask is that some of the plugins I use have the schema in the plugin jar file. To use it in oxygen, I have to find that xsd, extract it from the plugin file, copy it somewhere else, then add it to the oxygen catalog.

Then, if the plugin is updated, I have to remember to re-extract the xsd file to make sure I'm using the right one.

If it can point to the location in the plugin jar file, that'd help, but then I'd have to update the oxygen catalog when I update my plugins because the plugin names usually change between releases.

I suppose, being the needy user that I am, I'd like to be able to choose to use the Eclipse catalog or choose to use the one I defined in the oxygen preferences with a handy check-box.

Re: Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Jun 17, 2008 11:38 am
by amix
That would be a nice feature, indeed. Generally I am all for anything, that resembles integration of oXygen with Eclipse.

Re: Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Jun 17, 2008 12:32 pm
by sorin_ristache
Hello,

There is a problem. The list of XML catalogs is available in Preferences - Web and XML - XML Catalog only when the Web Tools Platform is installed in Eclipse. The Oxygen plugin can add other XML catalogs to the list only when Web Tools Platform is installed.


Regards,
Sorin

Re: Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Jun 17, 2008 5:13 pm
by amix
I thought more about the other way around: The main catalogs settings would be in oXygen. If the WTP is installed, it could grab and integrate those settings, no?

Re: Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Jun 17, 2008 5:24 pm
by sorin_ristache
We will consider using the XML catalogs set for WTP also in the Oxygen plugin.


Regards,
Sorin

Re: Use the Eclipse XML Catalog in the oxygen plugin

Posted: Tue Jun 17, 2008 5:28 pm
by amix
Thanks a lot.

As one uses Eclipse for many tasks (I use it for XML, XSLT, web-design (Ajax, etc.), XUL, Python, Django, SQL) the configuration gets pretty overloaded with so many places. The more integration exists, the better the workflow.