Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Can I get an EMF model of an existing Xtend class ?(How can I get an EMF model of an existing Xtend class ?)
Can I get an EMF model of an existing Xtend class ? [message #1743606] Fri, 16 September 2016 20:57 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
I have an existing Xtend class and want to access it as an emf model to be able to use its elements in my DSL.
Is ist possible to retrieve an Xtend class as emf model ?
if yes how ?
Re: Can I get an EMF model of an existing Xtend class ? [message #1743614 is a reply to message #1743606] Sat, 17 September 2016 06:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Can you be a bit more specific on what you are doing.
Simply define the reference as you would do it for other cross Lang references
And go for it should work


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Can I get an EMF model of an existing Xtend class ? [message #1743646 is a reply to message #1743614] Sat, 17 September 2016 19:31 Go to previous messageGo to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
I want to read the class members from the emf model (abstract methods) to be able to offer implementation info in my model which the generator should generate the real implementation from.
Re: Can I get an EMF model of an existing Xtend class ? [message #1743649 is a reply to message #1743646] Sun, 18 September 2016 05:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
No I meant: what did you actually try to do the cross referencing . This should work out of the box

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Can I get an EMF model of an existing Xtend class ? [message #1743761 is a reply to message #1743649] Mon, 19 September 2016 13:27 Go to previous message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Yes you are right it works out of the box. I only did not know that there is an ecore model for Xtend that i can import to my model.
Thank you.
Previous Topic:Retrieving STRING terminals in Xtend?
Next Topic:Error deploying Xtext-Web war
Goto Forum:
  


Current Time: Fri Apr 19 23:29:04 GMT 2024

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

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

Back to the top