arcanefoam / ecco

A Feature-Oriented Version Control System
https://llinsbauer.github.io/ecco/
0 stars 0 forks source link

Improve containment tracking #7

Open arcanefoam opened 7 years ago

arcanefoam commented 7 years ago

An EObject can appear multiple times in an ECCO tree because on each variant it might be contained by a different parent. We could either change the EmfReconstruct so a chace of Id:EObject is kept so we don't instantiate the same EObject more than once. A bettter approach is to make the Emf Ecco tree to take containment into consideration containment. Currently the parent has a node for each contained EObject. Perhaps all objects should be in the root and have a child node that points to the container. That way we can store the information about possible multiple containers.

arcanefoam commented 7 years ago

All EObjects are not children of the root node. A new EContainerData and ResourceContainerData classes where added so each EObjectNode can can a child that contains information about its containment.