Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Transforming Ecore diagrams with mediniQVT
Transforming Ecore diagrams with mediniQVT [message #1695588] Sun, 17 May 2015 14:09 Go to next message
Gonzalo Bressan Zuber is currently offline Gonzalo Bressan ZuberFriend
Messages: 35
Registered: May 2015
Member
Dear Community, i dont know if this is the place of this post

I have the MoDisco Java metamodel and i need replace a plus sign for a minus sign. Is it functionally possible?

relation InfixExpression2InfixExpression {

tvl : String;
tvr : String;


checkonly domain sourcemodel s: java::InfixExpression {

leftOperand = sLOperand : java::NumberLiteral {
tokenValue = tvl
},
rightOperand = sROperand : java::NumberLiteral {
tokenValue = tvr
},
operator = java::InfixExpressionKind::PLUS
};

enforce domain targetmodel t: java1::InfixExpression {

leftOperand = tLOperand : java1::NumberLiteral {
tokenValue = tvl
},
rightOperand = tROperand : java1::NumberLiteral {
tokenValue = tvr
},
operator = java1::InfixExpressionKind::MINUS
};
}


I attach the qvt file.

I recieve the following error at the transformation execution.

Exception occured in transformation
The value 'PLUS' is not a valid enumerator of 'InfixExpressionKind'

I hope you can help me.

Thanks.
Re: Transforming Ecore diagrams with mediniQVT [message #1732556 is a reply to message #1695588] Wed, 18 May 2016 08:53 Go to previous message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 430
Registered: July 2009
Senior Member
I sincerly hope you got your anwser since then but I'll drop a note anyway for anybody ending on this post.

You should probably ask on the QVT forum: https://www.eclipse.org/forums/index.php?t=thread&frm_id=244



http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Previous Topic:SPEM2 metamodel defined with Ecore
Next Topic:[Texo] Install texo in eclipse neon fails - org.json not found
Goto Forum:
  


Current Time: Sat Sep 22 14:34:18 GMT 2018

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

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

Back to the top