How to hide src folder from Eclipse Project Explorer?

mamuso picture mamuso · Jan 21, 2013 · Viewed 9.5k times · Source

I use a maven standard directory layout for my projects.

The image Below is a typical project explorer view of a "not so minimum working example" of the view I want to customize.

My typical project explorer view layout

As you can see, all the relevant folders are marked as source folders, so there is no need to show the src folder hierarchy as it is shown below the included libraries.

So the question is, how can I get rid of the redundant src folder showing, i.e. how to show only source folders and libraries?

I've playing around with filters and content configuration of the view but couldn't find the way to do it.

Answer

Andreas B. picture Andreas B. · Mar 8, 2013

Click to the third right top button, then "Filters" and then check "Name filter patterns" and write "src". Then the second src folder is hidden.