Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: how to hide custom files in Project Explorer

I have a custom builder in CDT, which adds alot of files into project directory. I want those files to be filtered out from Project Explorer, but cannot figure out how (the file mask is *.ooj).

Is it possible to add a custom filter by file mask into Customize View? Or maybe there is anther way to hide files in Project Explorer?

like image 483
rmflow Avatar asked May 26 '11 11:05

rmflow


People also ask

How do I change the project Explorer view in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

How do I show hidden projects in eclipse?

Eclipse -> Preferences -> Remote Systems -> Files: Check the "Show hidden files" Ok.

How do I see all files in eclipse?

Eclipse shows hidden files in the "Navigator" view. You can add that via Window->Show View->Navigator. With Eclipse 4.14 for Mac OS X: Window > Navigation > Show View Menu > Filters ans Customization, then after just uncheck .


2 Answers

Here's how to do it on Eclipse Indigo/Luna/Neon (as of 2018-05-22):

  • Open the "project properties"
    • pull down menu --> Project --> Properties
    • A new dialog window named "Properties" will appear
  • Create a "Resource Filter"
    • Select Resource --> Resource Filters -> Add Filter...
    • A new dialog window named "Add Resource Filter for project" will appear
    • In the new dialog select the following
      • Filter Type: Exclude All
      • Applies to: Files
      • Make sure to click the checkbox for "All children (recusive)"
      • File and Folder Attributes
        • select: Name
        • select: Matches
        • fill in: *.ooj
      • Click OK
      • Dialog closes
  • Apply the new filter
    • Click Apply
    • You should see a change in your "Navigator" View
  • Close the "Project Properties"
    • Click OK
  • Done
like image 134
Colm Ryan Avatar answered Oct 07 '22 12:10

Colm Ryan


You can define a filter for that. Open the view menu in the Package Explorer and then choose "Filters..." Here you can define a pattern to hide files.

like image 42
Kai Avatar answered Oct 07 '22 14:10

Kai