Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to set the Java compliance level of the generated genmodel
How to set the Java compliance level of the generated genmodel [message #1750625] Fri, 23 December 2016 07:42 Go to next message
Eclipse UserFriend
Hi Xtext team,

When using Xtext, the generated genmodel has a property called "Compliance level" that is set by default to 6.0 (I´m using Xtext 2.10)

I need the genmodel to have that compliance level property set to 8.0.

I´ve tried to look for something in the MWE file to set that propertly value, with no luck. Any hint about about how to do this via cofiguration (e.g changing an MWE file or similar) ?

Thanks in advance,
Adolfo.
Re: How to set the Java compliance level of the generated genmodel [message #1750627 is a reply to message #1750625] Fri, 23 December 2016 07:51 Go to previous messageGo to next message
Eclipse UserFriend
hi, are you sure that you use 2.10 with the new style workflow?

something like the following should work
	emfGenerator = {
		jdkLevel = "JDK80"
	}
Re: How to set the Java compliance level of the generated genmodel [message #1750629 is a reply to message #1750627] Fri, 23 December 2016 07:59 Go to previous message
Eclipse UserFriend
No,

My example is currently using the old style, but your comment has helped me to figure out how to configure it:

"fragment = ecore.EMFGeneratorFragment auto-inject {
jdkLevel = "JDK80"
}"

Cheers,
Adolfo.
Previous Topic:Reference to files from plugins or projects
Next Topic:Creating update site for my xText DSL
Goto Forum:
  


Current Time: Mon Jul 14 09:43:35 EDT 2025

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

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

Back to the top