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

Bug 359415

Summary: [EMF Runtime Extensions] DefaultEcoreTraversalHelper unable to find reachable objects that are instances of a different metamodel
Product: [Automotive] Sphinx Reporter: Stephan Eberle <stephaneberle9>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: ali.akar82, idydieng, quoclan
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Stephan Eberle CLA 2011-09-29 08:49:48 EDT
= Problem description =
* Select a model element in Sphinx Model Explorer
* Make sure that it has a reference feature with a target type that belongs to a different metamodel than that of the selected model element 
* Make sure that there files with instances of the target type of the reference feature in the same project of scope
* Go to properties view
* Click on the reference feature in question

= Expected result =
The instances of the target type of the reference feature in the same project of scope are proposed as reachable objects

= Actual result = 
No reachable objects are proposed.
Fixed problem in DefaultEcoreTraversalHelper#getReachableEObjects() causing that only objects of same meta
Comment 1 Stephan Eberle CLA 2011-09-29 08:51:27 EDT
Fixed by making sure that org.eclipse.sphinx.emf.ecore.DefaultEcoreTraversalHelper#getReachableEObjects(EObject, EReference) takes not only all resources belonging to same model but all resources belonging to same scope into account.
Comment 2 Balazs Grill CLA 2021-07-14 02:14:53 EDT
Mass-closing Resolved tickets