Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Xcore] specifying GenModel annotations
[Xcore] specifying GenModel annotations [message #802409] Sun, 19 February 2012 23:33 Go to next message
Markus Klink is currently offline Markus KlinkFriend
Messages: 14
Registered: July 2009
Junior Member
The tutorial for Xcore mentions that the genmodel can be annotated using the known GenModel annotations.
http://wiki.eclipse.org/Xcore#Specifying_an_Annotation

It also states that during creation of the tutorial some bugs were fixed which only become available with Eclipse Juno M6.

I wonder if that is the case here, since no matter which annotation I specify (rootExtendsClass, rootExtendsInterface...) the code does not reflect the changes, even if I delete all the packages in src-gen. In contrast to the tutorial all my classes are always using the MinimalEObject$Container class as a root.

Does that work for others? Am I having maybe particular kinds of problems as I use eclipse juno M5 for Mac OS X as a base?

Thanks Markus

Re: [Xcore] specifying GenModel annotations [message #802594 is a reply to message #802409] Mon, 20 February 2012 06:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Markus,

Comments below.

On 20/02/2012 12:33 AM, Markus Klink wrote:
> The tutorial for Xcore mentions that the genmodel can be annotated
> using the known GenModel annotations.
> http://wiki.eclipse.org/Xcore#Specifying_an_Annotation
>
> It also states that during creation of the tutorial some bugs were
> fixed which only become available with Eclipse Juno M6.
>
> I wonder if that is the case here, since no matter which annotation I
> specify (rootExtendsClass, rootExtendsInterface...) the code does not
> reflect the changes, even if I delete all the packages in src-gen. In
> contrast to the tutorial all my classes are always using the
> MinimalEObject$Container class as a root.
Yes, I was lucky that the one thing I tried seemed to work, but as you
noticed, that's the default anyway.
>
> Does that work for others?
No, I'm sure it doesn't. The latest nightly build has the fixes. It
depends on the latest nightly for Xtext and the recently-migrated Xtend.
> Am I having maybe particular kinds of problems as I use eclipse juno
> M5 for Mac OS X as a base?
I'll ask Dennis for the update sites for the latest nightly builds and
put them in the wiki as well as post them here.
>
> Thanks Markus
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] start lightweight CDO server in setup method of unittest
Next Topic:[Xcore] invoking constructor for Data Type
Goto Forum:
  


Current Time: Sat Apr 27 04:48:53 GMT 2024

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

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

Back to the top