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

Bug 365168

Summary: [pivot] Support cross-containment resources
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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.]