i have checked the src-gen to see the Ecore generated , butthere is no Ecore there , only a xmi file.
as i said before , i have created an Ecore file and with that i generated the correesponding grammar of that ecore model, last time i was discussing with people in the forum and they advice that if i want to make change in my Ecore without changing my grammar is preferable to make the change directly in my grammar and that will automatically change(update) my Ecore model .
now i was looking a way to change my grammar and see the effect in my ecore . i have looked in the src--gen but there is no ecor ethere only xmi file , that is why i'm asking if there is a way to generate that ecore or to see the direct relation between the 2(Ecore and the corresponding grammar).
thanks Christian ,
i think that at the beginning i was misunderstanding what you were trying to said , but i did as you said and may i can conclude that xtext can generate the Ecore and the genModel only when you start a new xtext project with the Xtext project wizard. But if you builded a project from an Ecore model and you want to modify your grammar in the futur there is no way too have a direct relation between your ecore and the grammar such that when you change your grammar that change directly your Ecore.
Why this questions?
i ask this because i'm suppose to create a model similar to the one propose by the XSd technologies, and with the XSD you can import file in another ad make many imports in a single file. i asked last week to the forum and the answers says that you can import a grammar in another grammar . but i know that with Ecore you can Import a model in another one that is why i want to create my Ecore model at the beginning and generate the grammar from that, since in meta-model i will have may imported file.
so now i'm looking for a way relate the changement made in my grammar directly to my Ecore .