Skip to main content



      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 05:58 Go to next message
Eclipse UserFriend
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 04:08 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 15:06:48 EDT 2025

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

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

Back to the top