Bug 144921 - CrossReferencer does not answer all imports
Summary: CrossReferencer does not answer all imports
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P2 enhancement
Target Milestone: 2.1   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 13:28 EDT by Christian Damus CLA
Modified: 2010-07-19 21:57 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 Christian Damus CLA 2006-06-01 13:28:10 EDT
The CrossReferencer.getImports(Resource) method does not return all imported resources.  It returns only resources that have already been loaded.  Thus, this API is not useful for determining which other resources are referenced by a given resource (e.g., for dependency analysis).

The cause of the problem is in the the fact that the setTarget() method does not handle proxies:  their eResource() is null.

In fact, proxies readily provide import information because their URIs indicate the imported resource.
Comment 1 Anthony Hunter CLA 2006-06-30 10:05:42 EDT
This bug got moved to 2.0 yet has severity major.
Please comment.
Comment 2 Christian Damus CLA 2006-06-30 11:58:00 EDT
Sorry, I should have updated this one earlier, as we managed to work around the problem in our application.

On further reflection, it seems that this will be a larger undertaking, requiring significant redesign of the cross-reference adapter.  It may even be more appropriate to do this in EMF.  Let's identify this as an enhancement.
Comment 3 Anthony Hunter CLA 2007-06-19 11:38:16 EDT
Not yet assigned to a release (assigned to a milestone with the Plan keyword).

Moving to the next release, GMF 2.1. 
Comment 4 Eclipse Webmaster CLA 2010-07-19 21:57:16 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug