Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365168 - [pivot] Support cross-containment resources
Summary: [pivot] Support cross-containment resources
Status: NEW
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 04:01 EST by Ed Willink CLA
Modified: 2011-11-30 04:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2011-11-30 04:01:17 EST
The root EObject in a normal resource has a null eContainer() and a non-null eResource().

The root EObject in a cross-contained resource has a non--null eContainer() and a non-null eResource().

Therefore to detect model commonality it is necessary to traverse the eContainer before invoking eResource. 

Review all calls to eResource to see whether they should first call eContainer; better use a PivotUtil/EcoreUtil method to make the intent clear.

[Failure to support this can lead to multiple ambiguous pivot Packages as each resource is treated individually.]