title: Reference Ecore model path of a different Ecore model
body: <p>Here is my problem></p>
  
  <p>We currently have several Ecore models for our applications. One of the Ecore models (<code>mainModel.ecore</code>) has stuff that is common in all the rest of the models. So, what i want to do is have all the other models reference the contents of that one model so we do not have to constantly copy the contents of that one model into all the models every time there is a change.</p>
  
  <p><strong>Is this possible and how can I do this?</strong> </p>
  
  <p>(I am very new to Ecore and still do not understand a lot of the terminology.)</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>How do i get the <code>EcoreUtil.getRootContainer</code> to return the the container of the loaded resource? I need to have that location so that i can resolve certain paths from that root. This may resolve my issue.</p>
  
  <hr>
  
  <p><strong>Here is what i attempted so far:</strong></p>
  
  <p>I tried "load resource..." by loading the mainModel.ecore into all the other models and deleting the local references. There were a lot of places that i had to fix after doing this and i did. After re-generating the source and trying to compile there are places where it tried accessing the "dotpath" that was local to the original file and i do not know how to change that "dotpath" to reference the "loaded resource". So it is not able to resolve those paths.</p>
  
  <p>Thanks!</p>