Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322815 - Source look-up should be generalized
Summary: Source look-up should be generalized
Status: VERIFIED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3 M2   Edit
Assignee: Michael Rennie CLA
QA Contact: Simon Kaegi CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 12:40 EDT by Michael Rennie CLA
Modified: 2010-08-16 12:42 EDT (History)
1 user (show)

See Also:


Attachments
fix (10.06 KB, patch)
2010-08-16 12:40 EDT, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2010-08-16 12:40:49 EDT
Created attachment 176697 [details]
fix

code from HEAD

Our JavaScriptSourceLookupParticipant has logic in it that would be better in a utility class so that other consumers can look source up in the 'Extenal JavaScript Source' project and resolve URIs, etc for source elements.

The patch provides a new utility class SourceLookup in org.eclipse.wst.jsdt.debug.internal.core.launching (can be made API if requested) with the following methods:

- getSourceURI(obj)
- getSource(obj)
- getExternalSource(uri, obj)
Comment 1 Michael Rennie CLA 2010-08-16 12:42:20 EDT
applied to HEAD