Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344420 - Resource filter does not work on linked folder
Summary: Resource filter does not work on linked folder
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-02 05:17 EDT by Deepak Azad CLA
Modified: 2011-05-06 03:24 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Azad CLA 2011-05-02 05:17:41 EDT
3.7 M7
- Create java project
- Create a linked src folder 'linkedsrc'

- Create a resource filter with following settings
  - Exclude All
  - Files and folders
  - All children
  - Name matches 'src'
=> 'src' folder is excluded - Good

- Create a resource filter with following settings
  - Exclude All
  - Files and folders
  - All children
  - Name matches 'linkedsrc'
=> nothing happens - BAD

Same behavior is 3.6
Comment 1 Dani Megert CLA 2011-05-06 03:15:27 EDT
Looks like a general issue: it also doesn't work for a linked folder.
Comment 2 Serge Beauchamp CLA 2011-05-06 03:24:26 EDT
This is not a bug, this is by design

As mentioned in the documentation:

"Resource filters only apply to files and/or folders that are implicitly included in the workspace by the refresh operation. Link files and folders are not affected by resource filters, since they need to be created explicitly by the user." 

The reason why that is, is because linked resources are explicitly created, as opposed to implicitly created by the refresh operation as ordinary resources are.

So if you want to exclude a linked resource, you don't need to setup complicated resource filters, you simply have to delete the linked resource.

Resource filters are designed to configure how the refresh operation implicitly create resources in the workspace.