Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Question about using enumerated types!
Question about using enumerated types! [message #499991] Tue, 24 November 2009 16:28 Go to next message
Lucas Schubert is currently offline Lucas SchubertFriend
Messages: 11
Registered: July 2009
Junior Member
Hey,

I'm new in this group, so if it is a newbie question, sorry! Razz

I'm trying to set a enumerated type value to a property in my target model (ECore) but it is not working.

I've tried to do it like it is written in the Epsilon Book and also using ".instance" at the end. But it is still not working.

The code line:

aMetricResult.type := QueryResult!MetricTypes#mtNumberOfChildren.instance;

The error Msg:

EXCEPTION: Cannot find enumeration literal MetricTypes#mtNumberOfChildren in model QueryResult.


If I don't set this field, the transformation works fine.

I've registered the Ecore model. (Magic Draw (UML) converted to eCore model).
I'm executing the transformation using an ant file.
The Epsilon Version is : 0.8.8

So I would like to ask if some of you knows what I may be doing wrong! Razz

Thanks a lot in advance!

Lucas


Re: Question about using enumerated types! [message #499994 is a reply to message #499991] Tue, 24 November 2009 16:36 Go to previous messageGo to next message
Lucas Schubert is currently offline Lucas SchubertFriend
Messages: 11
Registered: July 2009
Junior Member
Hey! I've just found the problem!
My mistake! Razz
Now it is working fine!

Lucas


Re: Question about using enumerated types! [message #500101 is a reply to message #499994] Tue, 24 November 2009 23:27 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Lucas,

Glad you managed to solve this :)

Cheers,
Dimitris

Lucas Schubert wrote:
> Hey! I've just found the problem!
> My mistake! :p Now it is working fine!
>
> Lucas
>
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Question about using enumerated types! [message #583236 is a reply to message #499994] Tue, 24 November 2009 23:27 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Lucas,

Glad you managed to solve this :)

Cheers,
Dimitris

Lucas Schubert wrote:
> Hey! I've just found the problem!
> My mistake! :p Now it is working fine!
>
> Lucas
>
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:Model Elemenet Types: "!" vs. "::"
Next Topic:[HUTN] I can't create an instance from UML.ecore
Goto Forum:
  


Current Time: Thu Apr 25 11:59:59 GMT 2024

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

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

Back to the top