Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Disappearing Elements
Disappearing Elements [message #589955] Thu, 10 June 2010 15:53 Go to next message
Andy Ed is currently offline Andy EdFriend
Messages: 64
Registered: December 2009
Member
I'm using ETL to generate a target Model. In ETL I write,

var eq := new tgtFmula!`EqualPredicate`;

I then create some contents and add it to a parent. However, the contents of the predicate 'disappear' in the persisted model. When I look at the target xml file I see an href associated with the element,

<extensions xsi:type="formulas:EqualPredicate"
href=" platform:/resource/CodeGenerationExamples2/MyEventWrapper.ta sking#/1 "/>

But I am expecting to see something like the following, (which I generate by cloning instead (from the same source)):

<extensions xsi:type="formulas:EqualPredicate">
<left xsi:type="formulas:IdentifierExpression" name="v1"/>
<right xsi:type="formulas:IntegerLiteralExpression" number="0"/>
</extensions>

Where does the href come from? I've not encountered this problem while generating other target elements. The only difference with my current translation is that the source and target meta-models are the same.

cheers, Andy
Re: Disappearing Elements [message #589974 is a reply to message #589955] Thu, 10 June 2010 16:55 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Andy,

Not sure what may be going wrong here. Could you please send me a
minimal configuration which I can use to reproduce this?

Cheers,
Dimitris

On 10/06/2010 18:53, Andy wrote:
> I'm using ETL to generate a target Model. In ETL I write,
>
> var eq := new tgtFmula!`EqualPredicate`;
> I then create some contents and add it to a parent. However, the
> contents of the predicate 'disappear' in the persisted model. When I
> look at the target xml file I see an href associated with the element,
>
> <extensions xsi:type="formulas:EqualPredicate" href="
> platform:/resource/CodeGenerationExamples2/MyEventWrapper.ta sking#/1 "/>
>
> But I am expecting to see something like the following, (which I
> generate by cloning instead (from the same source)):
>
> <extensions xsi:type="formulas:EqualPredicate">
> <left xsi:type="formulas:IdentifierExpression" name="v1"/>
> <right xsi:type="formulas:IntegerLiteralExpression" number="0"/>
> </extensions>
>
> Where does the href come from? I've not encountered this problem while
> generating other target elements. The only difference with my current
> translation is that the source and target meta-models are the same.
> cheers, Andy
>
>
Previous Topic:Disappearing Elements
Next Topic:EWL wizard
Goto Forum:
  


Current Time: Sat May 04 21:04:51 GMT 2024

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

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

Back to the top