|
|
|
|
Re: xtext project from existing ecore model don [message #849013 is a reply to message #842361] |
Wed, 18 April 2012 20:03 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
The "Existing xtext project from ecore model" is meant for very simple
models only. It will definitely have problems with Ecore generated from
XML or multiple packages in one genmodel.
You could file a ticket, but it this feature does currently not have
high priority. The resulting grammar won't be much better than XML
anyway, so I'd really suggest to write your own grammar, which is not as
hard as you might think.
Am 12.04.12 10:16, schrieb Virgilio García:
> Hi, my first doubt and certainly not the last with xtext! :roll:
>
> I created an EMF model from an XSD, and when I use the "Existing xtext project from ecore model" it only generates a very small part of the grammar. Specifically only the root element attributes ...
>
> The model is correct and is validated. And this works with other models I've tried (though with many other case the same as I explained above ...)
>
> Will I have to write all the grammar by hand or anyone has any solution for this?
>
> I attached here the ecore´s wich give me the problem. scxml.ecore as default and as root ScxmlScxmlType (although I tried it with other elements and the same happens)
>
> Thank you!
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.03580 seconds