Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext with Java as code generator(Looking for a tutorial on Xtext with Java)
Xtext with Java as code generator [message #1848482] Sat, 04 December 2021 12:58 Go to next message
Niloy Ray is currently offline Niloy RayFriend
Messages: 1
Registered: December 2021
Junior Member
I am new to Xtext and was looking for a short tutorial on Xtext with Java as language generator. Not sure if this is the right way, but trying to avoid Xtend if possible.

Re: Xtext with Java as code generator [message #1848483 is a reply to message #1848482] Sat, 04 December 2021 14:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14434
Registered: July 2009
Senior Member
hi, changing the workflow to

			generator = {
				generateXtendStub = false

should do the trick

the traverse over resource.getContents and the AST with java means, calculate the output string can call fileSystemAccess.generateFile

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :

[Updated on: Sat, 04 December 2021 15:37]

Report message to a moderator

Re: Xtext with Java as code generator [message #1849352 is a reply to message #1848482] Thu, 13 January 2022 13:05 Go to previous message
Abdelgafar  Elkhaoui is currently offline Abdelgafar ElkhaouiFriend
Messages: 5
Registered: January 2022
Junior Member
check this
Previous Topic:Validator context based
Next Topic:XText model to XMI model
Goto Forum:

Current Time: Thu Feb 02 08:26:06 GMT 2023

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

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

Back to the top