Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Advice -- IResource properties and more
Advice -- IResource properties and more [message #227467] Sun, 09 April 2006 15:13 Go to next message
Eclipse UserFriend
Originally posted by: ajenkins.infocomp.com

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
Re: Advice -- IResource properties and more [message #227509 is a reply to message #227467] Mon, 10 April 2006 06:14 Go to previous message
Eclipse UserFriend
Adam Jenkins wrote:
> [..]
> 2) How do I hide all files in the package explorer that have the
> extension .xsdconfig
> [..]

You can contribute a filter to the extension point
org.eclipse.jdt.ui.javaElementFilters

Markus
Previous Topic:CVS version info in Java perspective
Next Topic:How to hook the local history action?
Goto Forum:
  


Current Time: Thu Nov 06 23:40:38 EST 2025

Powered by FUDForum. Page generated in 0.03562 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top