Here is the FAQ page of the Ecore Tools.
- How to create a Two-way EReference between two EClasses ?
-
- First, you have to create the first EReference between the 'Source' EClass and the 'Target' EClass.
- Then, create the second EReference between the 'Target' EClass and the 'Source' EClass.
- Finally update the "EOpposite" attribute of one of the two EReference in the Properties View. The other reference is automatically updated and the graphic refreshed to hide the arrow decorations of the two EReferences.
- What is the best way to completely remove an Inheritance link ?
- Use the dedicated action available in the editor. Select the InheritanceLink, then "Right Click > Delete Inheritance Link" : this will remove graphically the connection and it will unset the ESuperType reference in the source EClass of the model.
- What are the recommendations for the 'name' attributes of Ecore model objects ?
-
- The fist character of an EClass should always be an uppercase letter.
- The name of an EPackage should always be defined with lowercase letters.
- The name of an EReference should always be defined with lowercase letters.
- The name of an EAttribute should always be defined with lowercase letters.