Use the Eclipse XML Catalog in the oxygen plugin

Having trouble installing Oxygen? Got a bug to report? Post it all here.
sanderson
Posts: 51
Joined: Fri Jan 27, 2006 12:51 am

Use the Eclipse XML Catalog in the oxygen plugin

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Use the Eclipse XML Catalog in the oxygen plugin

Post 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
sanderson
Posts: 51
Joined: Fri Jan 27, 2006 12:51 am

Re: Use the Eclipse XML Catalog in the oxygen plugin

Post 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.
amix
Posts: 81
Joined: Sat Aug 05, 2006 10:43 pm

Re: Use the Eclipse XML Catalog in the oxygen plugin

Post by amix »

That would be a nice feature, indeed. Generally I am all for anything, that resembles integration of oXygen with Eclipse.
Andreas
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Use the Eclipse XML Catalog in the oxygen plugin

Post 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
amix
Posts: 81
Joined: Sat Aug 05, 2006 10:43 pm

Re: Use the Eclipse XML Catalog in the oxygen plugin

Post 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?
Andreas
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Use the Eclipse XML Catalog in the oxygen plugin

Post by sorin_ristache »

We will consider using the XML catalogs set for WTP also in the Oxygen plugin.


Regards,
Sorin
amix
Posts: 81
Joined: Sat Aug 05, 2006 10:43 pm

Re: Use the Eclipse XML Catalog in the oxygen plugin

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