Can Project Explorer Filters actually hide things? [message #551654] |
Sun, 08 August 2010 20:06  |
Eclipse User |
|
|
|
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 #552382 is a reply to message #551654] |
Wed, 11 August 2010 21:48   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04227 seconds