Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Enumeration error (Importing from existing ecore)
Enumeration error (Importing from existing ecore) [message #1049874] Fri, 26 April 2013 11:45 Go to next message
Brian Tost is currently offline Brian TostFriend
Messages: 4
Registered: April 2013
Junior Member
Hello. This is my first post and I'm new in xtext.

I'm trying to import an ecore model using enumeration like this (using Xtext 2.4.1):

Link: http:// s18.postimg.org/48pkmuqkl/Captura_de_ecr_2013_04_26_s_12_37_25.png

The grammar generated from enumeration is:

FunctionToApply returns FunctionToApply:
	'FunctionToApply' /* TODO: implement this rule and an appropriate IValueConverter */;


I tried to set the enumeration this way:

enum FunctionToApply returns FunctionToApply:
	Handle='0' |
	Forward='1';


But It gives me error on the editor.
Re: Enumeration error (Importing from existing ecore) [message #1050003 is a reply to message #1049874] Fri, 26 April 2013 15:07 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6485
Registered: July 2009
Senior Member
What kind of error do you get i cannot reproduce that. can you share a complete example (e.g as zip file)
Previous Topic:Xtext 2.4 scoping
Next Topic:how to specify to use a name between single quotes in xtext
Goto Forum:
  


Current Time: Mon Nov 24 09:46:37 GMT 2014

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

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