Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » "The method or field Literals is undefined for the type Class<...>"
"The method or field Literals is undefined for the type Class<...>" [message #1828504] Thu, 11 June 2020 06:46 Go to next message
Chris Bryan is currently offline Chris BryanFriend
Messages: 12
Registered: June 2015
Junior Member
This is due to the Literals interface being missing from my generated <DSL>Package.java.

It seems that I'm hitting some kind of ceiling in size of the grammar, as if I remove things to make it smaller it re-appears! Short of re-factoring the grammar, is there anything I can do to increase this ceiling?
Re: "The method or field Literals is undefined for the type Class<...>" [message #1828507 is a reply to message #1828504] Thu, 11 June 2020 07:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
You can simply call YourPackage.eINSTANCE.get.....
As alternative


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: "The method or field Literals is undefined for the type Class<...>" [message #1828513 is a reply to message #1828507] Thu, 11 June 2020 08:25 Go to previous message
Chris Bryan is currently offline Chris BryanFriend
Messages: 12
Registered: June 2015
Junior Member
Ah I see, that's great, thanks!
Previous Topic:Error running mwe2
Next Topic:Beginner tries on Xtext
Goto Forum:
  


Current Time: Tue Apr 23 13:38:44 GMT 2024

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

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

Back to the top