Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [xcore] Referring to an enum in xtext that is defined in Xcore(Referring to an enum in xtext that is defined in Xcore)
[xcore] Referring to an enum in xtext that is defined in Xcore [message #1732800] Fri, 20 May 2016 03:20 Go to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
I have an enum in xcore and I don't want to declare the same enum in xtext. How can I use the xcore enum in my xtext grammar? Is this possible?
Or how about referring the xtext enum in my xcore model?

[Updated on: Fri, 20 May 2016 03:20]

Report message to a moderator

Re: [xcore] [message #1732806 is a reply to message #1732800] Fri, 20 May 2016 10:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Chris,

It seems better to ask this on the Xtext forum. I'm not sure how one
refers to an enum in the grammar. In general I don't expect this
question to be specific to Xcore because an Ecore model is inferred and
of course Java code is generated and inferred even before it's
generated. Xtext will refer to the enum either via the Ecore model or
via the generated Java enum, either of which should work "as normal".


On 20.05.2016 05:20, chris yo wrote:
> I have an enum in xcore and I don't want to declare the same enum in
> xtext. How can I use the xcore enum in my xtext grammar? Is this
> possible? Or how about referring the xtext enum in my xcore model?
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [xcore] [message #1732914 is a reply to message #1732806] Sun, 22 May 2016 19:53 Go to previous message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
Thanks! I submitted the same question there. Smile
Previous Topic:NullPointerException while generating
Next Topic:[CDO] Merging and nested branches
Goto Forum:
  


Current Time: Thu Sep 26 21:23:18 GMT 2024

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

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

Back to the top