Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342530

Summary: TCFSourceLookupParticipant should not return inaccessible resources
Product: [Tools] TCF Reporter: Anton Leherbauer <aleherb+eclipse>
Component: DebugAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Eugene Tarassov <eugene>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 0.3   
Target Milestone: 0.3.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Don't return inaccessible files cdtdoug: iplog-

Description Anton Leherbauer CLA 2011-04-12 05:44:28 EDT
Created attachment 193020 [details]
Don't return inaccessible files

TCFSourceLookupParticipant uses
ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(uri) in order
to resolve files to Eclipse resources if possible.  Unfortunately this method
returns resources which may not be accessible (as resources), because the
resource tree is out-of-sync or the files are part of a closed project.
Comment 1 Anton Leherbauer CLA 2011-04-12 06:28:37 EDT
Committed the fix.