Community
Participate
Working Groups
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.]