Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Unable to find mydsl package literals
Unable to find mydsl package literals [message #1798476] Mon, 19 November 2018 16:21 Go to next message
ayman salah is currently offline ayman salahFriend
Messages: 131
Registered: June 2015
Senior Member
Hi all,

I am having trouble while trying to do the following:
regionFor.feature(xxxxxxxxxxxxx)

within the formatter2 class.

I am unable to find MydslPackage.Literals interface and I believe I have the same issue mentioned here.

So, is there any other way to refer to features inside the formatter using Xtend?

Thanks.
Re: Unable to find mydsl package literals [message #1798478 is a reply to message #1798476] Mon, 19 November 2018 16:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
if your grammar is too big it wont be generated. but you can simply use

MyDslPackage.eInstance.getXXXXX_yyyyy()


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Unable to find mydsl package literals [message #1798482 is a reply to message #1798478] Mon, 19 November 2018 17:20 Go to previous messageGo to next message
ayman salah is currently offline ayman salahFriend
Messages: 131
Registered: June 2015
Senior Member
Well I just tried and got "Only EAttributes and CrossReferences allowed".
Re: Unable to find mydsl package literals [message #1798483 is a reply to message #1798482] Mon, 19 November 2018 17:31 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
what exactly did you try

here is an example sinature

EAttribute getGreeting_Name();

=> i wonder what you have called?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Mon, 19 November 2018 17:45]

Report message to a moderator

Previous Topic:[Formatter2] format action does nothing
Next Topic:Modifying an imported Xtext file programmatically
Goto Forum:
  


Current Time: Fri Mar 29 07:03:19 GMT 2024

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

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

Back to the top