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://

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' |

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: 7871
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: Sun Nov 29 12:38:36 GMT 2015

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

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