Updating File editor after ECore model modification [message #1066265] |
Mon, 01 July 2013 19:06 |
Vincent De Bry Messages: 55 Registered: May 2013 |
Member |
|
|
Hi,
My previous question did not get any answer
So I decided to rephrase the question:
Imagine the internal ECore model associated to a DSL is modified independently from any manual entry from the Xtext file Editor generatied for my DSL (for instance by loading a model from outside of the editor). How is it possible to transform this model into text so that it can be read and modified from the Xtext file editor ?
Thanks.
[Updated on: Wed, 03 July 2013 16:09] Report message to a moderator
|
|
|
Re: reverse-XPAND: generating xtext file from xml file ? [message #1066786 is a reply to message #1066265] |
Thu, 04 July 2013 10:50 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Rountrip engineering is considered harmful, as usually you have a higher
level of abstraction on the DSL side, and it is not generally possible
to map things from the target back.
If you want to go this direction nevertheless, you should maybe
transform your model to a DOM and serializing this instead of using a
code generator. That transformation is likely to be much easier to
reverse. But you have been warned.
Am 01.07.13 21:06, schrieb Vincent De Bry:
> Hi,
>
> I know it is possible, with XPAND, to generate XML (or other kind) files
> from a XTEXT specification that respects a given DSL.
>
> May be my question will seem strange but I foresee to modify manually
> these xml files (once generated), in order to make minor modifications.
> Thus, I am wondering if it would be possible to update the XTEXT file
> with these modifications. A kind of reverse-XPAND...
>
> Could someone tell me if there is a support for such a need, of give me
> an advice or a track ?
>
> Thanks.
>
>
--
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.02728 seconds