[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Advice -- IResource properties and more

Hi All,

I've hit a wall with a plugin I'm writing and don't know the best way to progress from here. I'm writing a custom nature for apaches XMLBeans technology. I have a custom nature and a custom builder at the moment and it all works fine. The nature attaches itself to java projects and the build creates the source from .xsd files before the java builder kicks in...it's working really well.

The next step is to add property information to .xsd files so that users can configure the XMLBeans generation settings on a per file basis. XMLBeans keeps the configuration information in files called .xsdconfig.

So here's what I'm having difficulty doing...I want to add a property page for IResources with the .xsd, and have that properties page sync with the files respective .xsdconfig file....I also want to, for usability reasons, hide the .xsdconfig file from view in the package explorer.

I know how to create the properties page and hook it to the IFile with the xsd extension, that's no problem. Generating the .xsdconfig file is also no problem. Where I'm having an issue is the two following areas:

1) How to I filter the IFiles property page so that it's only visible when the parent projects nature is my nature (is there a filter property for 'nature' on IFile)?

2) How do I hide all files in the package explorer that have the extension .xsdconfig

Any help anyone could provider here would be really appreciated. It's an open source plugin, and it's almost finished...so help you give will hopefully benefit many.

Cheers
Adam