Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342530 - TCFSourceLookupParticipant should not return inaccessible resources
Summary: TCFSourceLookupParticipant should not return inaccessible resources
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Debug (show other bugs)
Version: 0.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.3.1   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 05:44 EDT by Anton Leherbauer CLA
Modified: 2011-05-17 10:45 EDT (History)
1 user (show)

See Also:


Attachments
Don't return inaccessible files (2.90 KB, patch)
2011-04-12 05:44 EDT, Anton Leherbauer CLA
cdtdoug: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.