Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351141 - Refresh on access does not work for directories
Summary: Refresh on access does not work for directories
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 03:32 EDT by Lars Vogel CLA
Modified: 2011-07-18 12:25 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2011-07-05 03:32:50 EDT
Eclipse 3.7 introduces the "Refresh on access" preference settings and functionality which is tremendous useful. Unfortunately it seems that this setting does not refresh folder if their content has changed. 

I think that would be a great enhancements. 


To test, create a new folder, add some files outside of Eclipse and try to delete it.
Comment 1 Szymon Brandys CLA 2011-07-18 11:50:41 EDT
Right. It was designed this way. James, do you plan to look at refreshing folders the same way?
Comment 2 James Blackburn CLA 2011-07-18 11:56:03 EDT
I think this should be WONT_FIX as I don't think we can do this without paying a *very* high I/O penalty.  The resource tree is fast because iterating over it acts on the in memory tree only.

The refresh-on-access for files is somewhat different, in that we only refresh when the API-user is fetching the contents of the file. i.e. they're already initiating I/O.

Refresh automatically would be better than always stat()ing on access.  Failing that we should add refresh providers for other non-Windows platforms.
Comment 3 Szymon Brandys CLA 2011-07-18 12:25:37 EDT
I agree. We should rather look at native refresh providers for non-Windows platforms.