DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Querying Without a Query Language
  • Hadoop on AmpereOne Reference Architecture
  • From 13,000 to 20,000+ Endpoints: Architecting Forensics for the Remote Workforce
  • Bootstrapping a Java File System

Trending

  • How to Migrate From C/C++ to Rust: A Practical Guide for Embedded IoT Systems
  • Running a Self-Hosted WAF in Production: Practical Lessons From SafeLine
  • The SDLC After AI
  • Adding Graph Retrieval to a RAG Pipeline With Python

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Coding
  3. Frameworks
  4. Eclipse Project Explorer Filters

Eclipse Project Explorer Filters

By 
Erich Styger
·
May. 22, 15 · Interview
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
8.2K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Wondering why the Eclipse Project view might not show all files in the Project Explorer view? For example it shows this:

Eclipse Project Explorer View

Eclipse Project Explorer View

But on disk I have more files? Where are they?

:idea: I’m using Eclipse Luna (4.4) in this post, but things are very similar for earlier versions of Eclipse.

File System has more Files?

Checking the files on my file system (e.g. with the Windows Explorer), I have more files/folders listed:

Files on the File System

Files on the File System

Obviously, files and folders starting with a dot (‘.’) are not shown in the Project Explorer view.

Project View Filters

The reason is that the Eclipse Project Explorer view has a filter built-in to hide files. There is a setting for this in the View Menu of that view:

Project Explorer View Menu

Project Explorer View Menu

There is a ‘Customize View…‘ menu item:

Customize Project Explorer View

Customize Project Explorer View

And here I have the filters:

Customize Project Explorer View

Customize Project Explorer View

Now it should be clear why the files starting with a dot are ont shown: they are filtered out with the filter for “.*”:

Project Explorer View Filters

Project Explorer View Filters

Un-checking that filter will show now as well the dot files:

Showing Dot Files in Project Explorer View

Showing Dot Files in Project Explorer View

Defining my own Filters

The list of filters in the project view is provided by the plugins. And unfortunately there is no way to define my own filters in the above dialog, unless I would implement my Java plugin. Defining my own filters without programming things is possible, it is just in a different place:-).

For example I do not want to see that ‘ProjectInfo.xml’. For this, I select the project and use the ‘Properties’ menu. Inside the project properties, there is Resource > Resource Filters:

Resource Filters

Resource Filters

Use the Add button to add a new filter:

Adding Filter

Adding Filter

To exclude just the ProjectInfo.xml:

  1. Exclude all (this will exclude all files matching my filter)
  2. Applies to Files (I only want to have it applied to files)
  3. [Name] [matches] the file name
Excluding Files

Excluding Files

With that, I can build any kind of filters.

Pressing OK, and it gets added to my filter list:

Added Filter

Added Filter

Now the ProjectInfo.xml is not listed any more in the Project Explorer view:

Filtered ProjectView.xml

Filtered ProjectView.xml

Summary

The Eclipse Project Explorer view has a setting to turn on/off filters for files/folders, or in general to configure the view. I can use project resource filters to define my own filters too.

Happy Filtering :-)

Filter (software) Eclipse File system

Published at DZone with permission of Erich Styger. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Querying Without a Query Language
  • Hadoop on AmpereOne Reference Architecture
  • From 13,000 to 20,000+ Endpoints: Architecting Forensics for the Remote Workforce
  • Bootstrapping a Java File System

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook