Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JvmGenericType does not contain @Property operations
JvmGenericType does not contain @Property operations [message #956806] Wed, 24 October 2012 20:32 Go to next message
Edwin Park is currently offline Edwin ParkFriend
Messages: 124
Registered: July 2009
Senior Member
Hi,

I have a DSL that uses JvmGenericType references to Java classes. If the Java class being referenced is generated via Xtend and has @Property annotations on its fields, e.g.:

class Foo {
@Property String thing
}

I would expect the JvmGenericType to contain the setThing() and getThing() methods that are generated in the Java class, but they do not.

Edwin
Re: JvmGenericType does not contain @Property operations [message #956816 is a reply to message #956806] Wed, 24 October 2012 20:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Hi,

for Xtext 2.3.x
have a look at XtendJvmModelInferrer

~Christian

P.S: the approach will become a first class concept in the next Xtend version - Active Annotations (http://blog.efftinge.de/2012/10/introducing-active-annotations.html)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: JvmGenericType does not contain @Property operations [message #956842 is a reply to message #956816] Wed, 24 October 2012 21:04 Go to previous message
Edwin Park is currently offline Edwin ParkFriend
Messages: 124
Registered: July 2009
Senior Member
Ah cool. I'm using Xtext/Xtend 2.4 tho and I am seeing this behavior. I guess the new stuff isn't fully baked yet..

Thanks,
Edwin
Previous Topic:quick fix for add import using JvmType ?
Next Topic:Xtext as Plug-In Editor
Goto Forum:
  


Current Time: Thu May 13 23:21:25 GMT 2021

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

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

Back to the top