Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to make the default value of "Literals Interface" to be "true"
How to make the default value of "Literals Interface" to be "true" [message #1181014] Mon, 11 November 2013 05:05 Go to next message
Eclipse UserFriend
Hello all,

In the generated *.genmodel file, the default value of "Literals Interface" (EPackage --> Model) is "false" (Please see the attached screen-shot). However, I need to use the literals in my customization code. So I have to manually set the value to "true" and re-generate the Model code (it is not convenient for me).

So, my question is: could I make the default value to be "true' when running the MWE2 workflow? Do I need extra configuration in the *.mwe2 file? Thanks in advance!

Best Regards,
Matthew Liu

[Updated on: Mon, 11 November 2013 23:30] by Moderator

Re: How to make the default value of "Literals Interface" to be "false&am [message #1182409 is a reply to message #1181014] Tue, 12 November 2013 01:55 Go to previous message
Eclipse UserFriend
You should switch to an imported metamodel in the grammar and maintain
the ecore stuff manually.

Am 11.11.13 11:05, schrieb Matthew Liu:
> Hello all,
>
> In the generated *.genmodel file, the default value of "Literals Interface" (EPackage --> Model) is "false" (Please see the attached screen-shot). However, I need to use the literals in my customization code. So I have to manually set the value to "true" and re-generate the Model code (it is not convenient for me).
>
> So, my question is: could I make the default value to be "true' when running the MWE2 workflow? Do I need extra configuration in the *.mwe2 file? Thanks in advance!
>
> Best Regards,
> Matthew Liu
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:Create an Eclipse product
Next Topic:Validation in xtext
Goto Forum:
  


Current Time: Fri Jul 25 07:39:21 EDT 2025

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

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

Back to the top