Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » How to create a user defined attribute
How to create a user defined attribute [message #878982] Wed, 30 May 2012 09:58 Go to next message
pllab Missing name is currently offline pllab Missing nameFriend
Messages: 6
Registered: September 2011
Junior Member
Hi~

I have met a situation that i could not add an attribute as a user-defined type.

For example:
There are two classes named Person and Motor.
In class Motor, I want to add an attribute named man whose type is Person.
However, there is no "Person" type in the field of EType that I can choose.

So my question is, does Ecore tool not offer such function to a designer to do so?

If Ecore tool does, how can I add an user-defined type attribute successfully?

Thanks for your help. Hope to receive your reply soon:)

Best regards
Lee
Re: How to create a user defined attribute [message #889901 is a reply to message #878982] Wed, 20 June 2012 08:08 Go to previous message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
Hi,

you would have to create your own datatype with the corresponding tool from the palette (EDatatype) and then you should be able to refers to it from your EAttribute.


http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Previous Topic:[Resolved] EMF diagram editor for Juno ?
Next Topic:problem when trying to open my ecore with oclin ecore editor
Goto Forum:
  


Current Time: Fri Apr 19 06:48:54 GMT 2024

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

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

Back to the top