Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Feature Value Spec with Enumeration Type
Feature Value Spec with Enumeration Type [message #171182] Fri, 01 February 2008 16:54 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Re-order using drag and drop
Next Topic:Make an Life Line/message in sequence diagram
Goto Forum:
  


Current Time: Sat Apr 27 00:08:19 GMT 2024

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

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

Back to the top