Skip to main content



      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 02:46 Go to next message
Eclipse UserFriend
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 03:22 Go to previous messageGo to next message
Eclipse UserFriend
You can simply call YourPackage.eINSTANCE.get.....
As alternative
Re: "The method or field Literals is undefined for the type Class<...>" [message #1828513 is a reply to message #1828507] Thu, 11 June 2020 04:25 Go to previous message
Eclipse UserFriend
Ah I see, that's great, thanks!
Previous Topic:Error running mwe2
Next Topic:Beginner tries on Xtext
Goto Forum:
  


Current Time: Sat Jul 05 10:54:26 EDT 2025

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

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

Back to the top