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 name
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 Brun
Messages: 368
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.
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: Tue Sep 30 18:11:58 GMT 2014

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

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