Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Inverse operation of ModelJvmModelInferrer(Infer model elements from Java elements)
Inverse operation of ModelJvmModelInferrer [message #1801500] Mon, 21 January 2019 10:19 Go to next message
David Paz is currently offline David PazFriend
Messages: 9
Registered: November 2013
Junior Member
Hello,

i am sorry if this is answered somewhere else. I have look through the forum and in code but can not find anything. Any hint will be welcome.

I also dont know if it even makes sense. I am aware that infering model elements from manual or generated code is not desired in most of contexts.

Still, in the dmodel example bundle with xtext.

Would it be possible to build an inferrer that could parse a (or many) Java Class(s) and obtain an Entity out of it in our entities model?

Basically would be the inverse operation of ModelJvmModelInferrer.

Many thanks in advance.
David

PD: Have found class org.eclipse.xtend.ide.javaconverter.ConvertJavaCode would this be the direction to take? Is there any other solution avaiable?

[Updated on: Mon, 21 January 2019 10:30]

Report message to a moderator

Re: Inverse operation of ModelJvmModelInferrer [message #1801526 is a reply to message #1801500] Mon, 21 January 2019 17:58 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13124
Registered: July 2009
Senior Member
i dont know of any capability in xtext for that usecase

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Inverse operation of ModelJvmModelInferrer [message #1801592 is a reply to message #1801526] Wed, 23 January 2019 07:37 Go to previous message
David Paz is currently offline David PazFriend
Messages: 9
Registered: November 2013
Junior Member
Hi Christian,

thanks for your answer. If finally i came up with something I'll post it here.

Regards,
David
Previous Topic:Access parent object in ProposalProvider even if parent is broken reference
Next Topic:Using EclipseResourceFileSystemAccess2 in test
Goto Forum:
  


Current Time: Mon Sep 23 14:11:20 GMT 2019

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

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

Back to the top