Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Updating File editor after ECore model modification
Updating File editor after ECore model modification [message #1066265] Mon, 01 July 2013 19:06 Go to next message
Vincent De Bry is currently offline Vincent De BryFriend
Messages: 55
Registered: May 2013
Member
Hi,

My previous question did not get any answer Sad
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 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
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
Previous Topic: com.google.inject.CreationException with current XTEXT 2.4.2
Next Topic:hints for a grammar
Goto Forum:
  


Current Time: Fri Apr 26 03:09:59 GMT 2024

Powered by FUDForum. Page generated in 0.02728 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top