Bug 346928 - Unable to refresh external classfolder
Summary: Unable to refresh external classfolder
Status: VERIFIED DUPLICATE of bug 305172
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 00:27 EDT by Andrew Eisenberg CLA
Modified: 2011-05-24 11:23 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 Andrew Eisenberg CLA 2011-05-24 00:27:29 EDT
I cannot refresh a text file in an external class folder when its contents changes.  Here's how to reproduce:

1. create a java project
2. in a directory outside the workspace, create a text file with some content
3. add this diectory as an external class folder to the classpath of the java project
4. open the text file in a text editor
5. outside of the workspace, make a change to the text file.
6. close and reopen the text editor in the workspace
7. "Resource is out of sync with the file system: '/.org.eclipse.jdt.core.external.folders/.link2/foo.txt'"
8. Right click on Project -> Refresh

I would expect that Step 8 would actually refresh the text file that was changed, but it does not.  The only way that I can find to refresh the text file in the class folder is by removing the classpath entry and then re-adding it.

Is there something much simpler that I am missing?
Comment 1 Srikanth Sankaran CLA 2011-05-24 00:33:49 EDT
Jay, please follow up - re-route as needed, Thanks.
Comment 2 Jay Arthanareeswaran CLA 2011-05-24 01:44:08 EDT
This isn't reproducible in 3.7. I believe this has been fixed as part of the
fix to bug 305172.

*** This bug has been marked as a duplicate of bug 305172 ***
Comment 3 Jay Arthanareeswaran CLA 2011-05-24 01:46:39 EDT
(In reply to comment #2)
> This isn't reproducible in 3.7. I believe this has been fixed as part of the
> fix to bug 305172.

I used the build I20110521-0800 to verify, by the way.
Comment 4 Satyam Kandula CLA 2011-05-24 04:09:15 EDT
Verified that this works from both package explorer and project explorer. 
Verified for 3.7 RC3 using build I20110521-0800.
Comment 5 Andrew Eisenberg CLA 2011-05-24 11:23:08 EDT
Thanks.  Good news.  I hadn't tried it on 3.7.