Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Transient attributes in Xtext grammar (Transient attributes in Xtext grammar )
Transient attributes in Xtext grammar [message #1796227] Mon, 08 October 2018 14:13 Go to next message
Edmundo López Bóbeda is currently offline Edmundo López BóbedaFriend
Messages: 26
Registered: October 2012
Junior Member
Hello,

I have a DSL where I'm generating the Ecore meta model from from the Xtext grammar.

Due to a feature request I needed to add a transient volatile attribute in the generated metamodel and implement it in the generated code.

Is there a way to define this directly in the Xtext grammar, so that I can continue to generate everything (including the ecore model) from the Xtext grammar?

Thanks in advance for your help.

Best regards,

Edmundo López Bóbeda
Re: Transient attributes in Xtext grammar [message #1796229 is a reply to message #1796227] Mon, 08 October 2018 14:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14075
Registered: July 2009
Senior Member
no

- you need either switch to a manually maintained metamodel
- or use the workarounds you can find using google to use IXtext2EcorePostProcessor with the new workflow e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=483209


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: Transient attributes in Xtext grammar [message #1796235 is a reply to message #1796229] Mon, 08 October 2018 15:40 Go to previous message
Edmundo López Bóbeda is currently offline Edmundo López BóbedaFriend
Messages: 26
Registered: October 2012
Junior Member
Thank you, I'll look into the IXtext2EcorePostProcessor.
Previous Topic:Is it possible to write Grammar in more than one Xtext file?
Next Topic:Using Formatter2
Goto Forum:
  


Current Time: Tue Oct 19 16:40:01 GMT 2021

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

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

Back to the top