Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334052 - There is no way to filter Empty Directories in Package Explorer View
Summary: There is no way to filter Empty Directories in Package Explorer View
Status: CLOSED DUPLICATE of bug 22202
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 21:52 EST by Matt CLA
Modified: 2011-01-12 10:40 EST (History)
3 users (show)

See Also:


Attachments
A sample project that illustrates the bug (5.16 KB, application/octet-stream)
2011-01-11 21:53 EST, Matt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt CLA 2011-01-11 21:52:06 EST
Build Identifier: 20100917-0705

There should be a way to filter empty directories as a result of a filter.  When a filter set has been defined that renders a directory empty, the directory should not show up in the package explorer view.

This is different than filtering directories like '.svn' or maven's target, or filtering empty packages. It's more trying to clean up empty directories trees that show up as a result of filter rules.

Context- We have a generic project in our workspace that uses filters to ignore non text based files(mp3s, jpgs, etc). It allows us to quickly edit our files in eclipse. The problem is because of the filters there are a lot of empty folders present. If eclipse can ignore any empty folders due to filters it would make the project cleaner.

Reproducible: Always

Steps to Reproduce:
1. Create a project
2. create a folder in the project
3. add files
4. create a Resource filter on the folder to filter all the files
5. the files in the folder are gone, but the folder is not
Comment 1 Matt CLA 2011-01-11 21:53:14 EST
Created attachment 186596 [details]
A sample project that illustrates the bug
Comment 2 Dani Megert CLA 2011-01-12 10:40:27 EST
(In reply to comment #1)
> Created attachment 186596 [details]
> A sample project that illustrates the bug
That doesn't seem to contain any resource filters.

*** This bug has been marked as a duplicate of bug 22202 ***