|
Re: Customizing saving Model to XMI via XMISaveImpl options [message #986973 is a reply to message #986938] |
Thu, 22 November 2012 15:56 |
|
Hi,
Add an annotation to your Box::title attribute in the Ecore model as follows:
source: http:///org/eclipse/emf/ecore/util/ExtendedMetaData
detail: kind -> element
Cheers,
Christian
On 2012-11-22 12:44:46 +0000, Alexander Unsonamed said:
> Is there any possibility to extract model to XMI file with the
> following option:
>
> <root>
> ..
> <box xmi:type="mymodel:Box" xmi:id="_123wefwefwjefgeg" name="GreatBox">
> <title>_k84xEzSoEeKTvczlP0YbOQ</title>
> </box>
> </root>
> ..
> <title xmi:id="_k84xEzSoEeKTvczlP0YbOQ" name="SomeTitle" elementType="NORMAL"/>
>
>
> Instead of the following:
>
> <root>
> ..
> <box xmi:type="mymodel:Box" xmi:id="_123wefwefwjefgeg"
> name="GreatBox" title="_k84xEzSoEeKTvczlP0YbOQ"/>
> </root>
> ..
> <title xmi:id="_k84xEzSoEeKTvczlP0YbOQ" name="SomeTitle" elementType="NORMAL"/>
>
>
>
> I tried to play with Containment option of Box.title attr in Ecore
> model, but it seem's that I need to extends XMISaveImpl and change smth
> there.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05762 seconds