Feature Value Spec with Enumeration Type [message #171182] |
Fri, 01 February 2008 16:54 |
Eclipse User |
|
|
|
Originally posted by: Eclipse.stmonline.de
Hi,
I have problems defining a body to initialize a porperty of an
enumeration type
My Enumeration type is ValidationKind and has a litaral WARN.
The property is called validation
Now I add a Feature Value Spec to a Feature Seq Initializer.
The body is ocl, the Feature is validate : ValidationKind
As I have seen in the GMF_Tutorial_Part_2 on your Wiki the Body must be
set to
ValidationKind::WARN
But that doesn't work. When I generate the gmfgen I get an error saying
Invalid Expression Body, unknown enumeration literal (WARN)
I have tested several syntax variations but have no succces.
Is there anything I am missing like a full qualified name for the type
or anything else?
Any help is appreciated.
Thanks a lot,
Stefan
|
|
|
Re: Feature Value Spec with Enumeration Type [message #171200 is a reply to message #171182] |
Fri, 01 February 2008 17:02 |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
Stefan schrieb:
> Any help is appreciated.
Sounds like that your genmodel file is not up to date. Did you add this
enumeration literal lately and forgot to regenerate genmodel from ecore
file or so? Or forgot to generate source from genmodel?
jens
|
|
|
Powered by
FUDForum. Page generated in 0.02704 seconds