Skip to main content



      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 10:13 Go to next message
Eclipse UserFriend
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 10:20 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Transient attributes in Xtext grammar [message #1796235 is a reply to message #1796229] Mon, 08 October 2018 11:40 Go to previous message
Eclipse UserFriend
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: Thu Jun 12 09:44:36 EDT 2025

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

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

Back to the top