|
|
|
Re: Text to Model Transformation [message #635127 is a reply to message #635088] |
Mon, 25 October 2010 17:00 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Tim,
Comments below.
Tim Joussen wrote:
> thanks for the fast answer
>
> I got the ecore model of the xtext grammar thats right.
> The thing is to visualize the dsl script that is written in the
> editor, which is based on the Xtext grammar. And to make some diagramm
> out of the script I have to transform it into kind of Metamodel,
> preferably to an ecore model , which GMF is able to work with
Again, I think there is a meta-level mismatch. You have an Ecore model
for the DSL. GMF can work with that to let you visualize instances of
your DSL graphically. If you literally want to convert instances of
your DSL to Ecore, that's another story. Things like XSDEcoreBuilder
will convert XML Schema instances of Ecore instances, so you could look
at how that's done. But given that I know nothing about your DSL,
there's nothing concrete I can say about mapping it to Ecore or whether
it even make sense. It wouldn't make sense, for example, to map the
Library model to Ecore...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03515 seconds