Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Unable to find mydsl package literals
Unable to find mydsl package literals [message #1798476] Mon, 19 November 2018 11:21 Go to next message
Eclipse UserFriend
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 11:22 Go to previous messageGo to next message
Eclipse UserFriend
if your grammar is too big it wont be generated. but you can simply use

MyDslPackage.eInstance.getXXXXX_yyyyy()
Re: Unable to find mydsl package literals [message #1798482 is a reply to message #1798478] Mon, 19 November 2018 12:20 Go to previous messageGo to next message
Eclipse UserFriend
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 12:31 Go to previous message
Eclipse UserFriend
what exactly did you try

here is an example sinature

EAttribute getGreeting_Name();

=> i wonder what you have called?

[Updated on: Mon, 19 November 2018 12:45] by Moderator

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


Current Time: Sun Jun 15 02:10:08 EDT 2025

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

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

Back to the top