Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Can Project Explorer Filters actually hide things?(Trying to find out if there's a way to configure filters to actually hide things in the project explorer.)
Can Project Explorer Filters actually hide things? [message #551654] Sun, 08 August 2010 20:06 Go to next message
Eclipse UserFriend
If, at the Project Explorer window, I go to Customize View... I get a nice list of filters I can add to the view. I currently have the object and executable files filter turned on (I'm using CDT). But after you configure those, the files aren't achtually hidden, as the Custimize View... window says it will, but are grayed, which is not good enough for me.

Is there a way to actually hide them?

David E. Narváez
Re: Can Project Explorer Filters actually hide things? [message #552282 is a reply to message #551654] Wed, 11 August 2010 11:03 Go to previous messageGo to next message
Eclipse UserFriend
They should actually be hidden, that's what the filters do. I can't think of a situation where changing a filter will grey something out, as that's handled by a totally different part to the Project Explorer (the label providers).

If you can make this happen at will, I suggest you file a bug and provide the exact steps as well as exactly what you have installed (and on what version).
Re: Can Project Explorer Filters actually hide things? [message #552382 is a reply to message #551654] Wed, 11 August 2010 21:48 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the feedback. I investigated a bit more, and here's the real problem:

I have a CDT project, with many folders, some of them have source files, others have header files, and then others have additional support files, etc. I marked my src folder as a source folder for the project, and my bin folder is not marked as a special folder at all. Now, if I apply flters to the Project Explorer, the object files in the src folder are not affected (the graying actually came from a filter setting of the source folder, not of the project view) but the files in the bin folder are hidden.

So I guess the bottom line is I don't get Project Explorer filters if I configure a folder as a special folder, right? Or is this a bug?

Thanks again for your interest.

David E. Narváez
Re: Can Project Explorer Filters actually hide things? [message #552390 is a reply to message #552382] Wed, 11 August 2010 23:25 Go to previous message
Eclipse UserFriend
This depends on how CDT has set up their filters.

The common navigator (Project Explorer) filters are in some plugin.xml files of some CDT plugin (that's the limit of my knowledge there).

The base filters for the project explorer are in the org.eclipse.ui.navigiator.resources/plugin.xml file.

The filters are identified by the commonFilter element and have an expression that determines what they filter.

For example:

<commonFilter
id="org.eclipse.ui.navigator.resources.filters.startsWithDot "
name="%filters.startsWithDot.name"
description="%filters.startsWithDot.description"
activeByDefault="true"
>
<filterExpression>
<and>
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.name" value=".*"/>
</adapt>
</and>
</filterExpression>
</commonFilter>

Filters out any resources whose name starts with a ".".

The filters for any special CDT folders would be part of CDT, so I suggest asking on the CDT newsgroup or looking at the CDT sources.
Previous Topic:How to detect node selection change in CN inside Editor
Next Topic:Helios update site looks different from two clients
Goto Forum:
  


Current Time: Sun Aug 31 17:19:10 EDT 2025

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

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

Back to the top