Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL and JAVA code communication(A text to model transformation)
ATL and JAVA code communication [message #1413746] Fri, 29 August 2014 10:18 Go to next message
fadouch nawara is currently offline fadouch nawaraFriend
Messages: 7
Registered: August 2014
Junior Member
Hi,

I make a M2M transformation from XX.format1 to YY.format2 models using ATL.
then I need to complete the generated model by new elements (classes, associations, attributes)provided by the user through a graphical interface.

the problem is that I get these items in text form and I must convert them to elements in accordance metamodel.

My question:
------------

Find a way to call A JAVA code function from ATL script.
=> This function returns an object
=> this object can be inserted in the target model and how i can insert them?

Regards,
nawara

Re: ATL and JAVA code communication [message #1414748 is a reply to message #1413746] Mon, 01 September 2014 07:58 Go to previous messageGo to next message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
If,
If you need to call Java from ATL just create an eOperation in your Ecore MetaModel and call that from ATL. See https://www.eclipse.org/forums/index.php/t/610805/
Regards,
Ronan
Re: ATL and JAVA code communication [message #1416202 is a reply to message #1414748] Thu, 04 September 2014 15:02 Go to previous messageGo to next message
fadouch nawara is currently offline fadouch nawaraFriend
Messages: 7
Registered: August 2014
Junior Member
Thanks for responding me Smile
Re: ATL and JAVA code communication [message #1416205 is a reply to message #1414748] Thu, 04 September 2014 15:05 Go to previous message
fadouch nawara is currently offline fadouch nawaraFriend
Messages: 7
Registered: August 2014
Junior Member
Thanks for responding me Smile
Previous Topic:How can I access Ecore elements of an input metamodel in ATL code
Next Topic:convert atl-0.2 model to atl files
Goto Forum:
  


Current Time: Thu Apr 25 23:25:04 GMT 2024

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

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

Back to the top