Can't edit .XSD files in Eclipse plug-in

Having trouble installing Oxygen? Got a bug to report? Post it all here.
terris
Posts: 8
Joined: Wed Jan 19, 2005 10:18 pm

Can't edit .XSD files in Eclipse plug-in

Post by terris »

Eclipse 3.1.1
6.2 plug-in

When I load a .xsd file, the XSD menu in eclipse is blank and I can't type anything into the editor.

The file is not read-only.

What gives?
terris
Posts: 8
Joined: Wed Jan 19, 2005 10:18 pm

Post by terris »

XSD menu is not blank but everything in it is disabled.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

The cause is one of the following:

1. You did not provide a license key in the <oXygen/> registration dialog displayed when you activated the plugin (opening an XML file, XSD file, etc with an editor provided by the <oXygen/> plugin, accessing the preferences at Window -> Preferences -> oXygen).

2. The period covered by the trail license key entered in the registration dialog is expired now.

Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

There is another possibility:

3. The .xsd file is an external file (not included in the current Eclipse workspace). Starting with the next version the menu actions will be enabled and will work correctly also for external files.

Regards,
Sorin
terris
Posts: 8
Joined: Wed Jan 19, 2005 10:18 pm

Post by terris »

Yes, it's an external file because I don't know how to deal with Eclipse workspaces yet.

Looking forward to the next version and yes I'm a paying customer. I love oxygen.

Thank you.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Just create a simple project in Eclipse (File - New - Project ... and in the dialog select Simple - Project or other project type) if you don't have one already and add the XML Schema document to the project. Then open it with <oXygen/>. The <oXygen/> plugin should be associated with .xsd files by default if other plugins don't override that, so double-clicking on the .xsd should be enough. Otherwise right-click on the file and select Open With - Oxygen XSD Editor which will always use <oXygen/> to open the .xsd file.

Regards,
Sorin
Post Reply