In eclipse, navigator has a filter. You can select some filters to display the files to be viewed.
However, there are no configurable options.
Google a record on the Internet.
Eclipse Galileo (3.5.2) I am using ).
What I want to do is to add Filtering for. SVN and makefile. *.
Open the plugins folder under the installation directory and find the jar package:
Org. Eclipse. UI. Navigator. resources_3.4.1.M20090826-0800.jar
After opening the file with WinZip, edit the two files.
1. Plugin. Properties
Add the following lines:
Filters. SVN. Name =. SVN Resources
Filters. SVN. Description = hides resources that name ". SVN"
Filters. makefile. Name = makefile. * Resources
Filters. makefile. Description = hides resources that begin with "makefile"
These are to be used later
2. Plugin. xml
Find several filters that are already included in the commonfilter tag. Follow these steps. Use the strings defined above.
The content I added is
<Commonfilter
Id = "org. Eclipse. UI. Navigator. Resources. Filters. SVN"
Name = "% filters. SVN. Name"
Description = "% filters. SVN. Description"
Activebydefault = "true"
>
<Filterexpression>
<And>
<Adapt type = "org. Eclipse. Core. Resources. iresource">
<Test property = "org. Eclipse. Core. Resources. Name" value = ". SVN"/>
</Adapt>
</And>
</Filterexpression>
</Commonfilter>
<Commonfilter
Id = "org. Eclipse. UI. Navigator. Resources. Filters. makefile"
Name = "% filters. makefile. Name"
Description = "% filters. makefile. Description"
Activebydefault = "true"
>
<Filterexpression>
<And>
<Adapt type = "org. Eclipse. Core. Resources. iresource">
<Test property = "org. Eclipse. Core. Resources. Name" value = "makefile. *"/>
</Adapt>
</And>
</Filterexpression>
</Commonfilter>
Then restart .... Not effective .... Restart the instance, but it does not take effect .... After restarting the instance, Run "check for update" (under the Help menu ).... It's so slow. Wait for a while and it stops... Restart the instance and it will take effect!
It's strange, but it works.