My DSL hides many attributes from xmi.
1) User will open xmi file and i will create another temp file (dsl) and open XTextEditor for it.
2) User will edit the DSL and save i want to update the xmi file back.
I am kinda of able to achieve 1. How can I achieve 2nd ?
You have to implement this yourself, and it's going to be tough.
We call this procedure roundtrip engineering, and it as proven to be a
bad idea most of the times. The main reason is that the two models have
different levels of abstraction. You somehow have to add information out
of nowhere inside the transformation from Xtext -> XMI. A colleague has
compared this once with trying to get a pig from a sausage.
If you want to do it anyway, interesting topics to dig into could be
finding stable IDs for EObjects on each side, model-to-model
transformations, model compare etc.
Am 18.02.13 18:15, schrieb Ashwani Kr Sharma:
> I am able to serialize a xmi to dsl format using xTextResource. This
> thread was very useful there:
> My DSL hides many attributes from xmi.
> 1) User will open xmi file and i will create another temp file (dsl) and
> open XTextEditor for it. 2) User will edit the DSL and save i want to
> update the xmi file back.
> I am kinda of able to achieve 1. How can I achieve 2nd ?
> Ashwani Kr Sharma