Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » attributes in ecore model
attributes in ecore model [message #550222] Thu, 29 July 2010 14:48 Go to next message
wiwi is currently offline wiwiFriend
Messages: 10
Registered: July 2010
Junior Member
hi everybody,

in my model ecore i create a Eclass and i need a table of integer for this i add to it an Eattribute named content, how can i set this Eattribute to be a table.

thanks for help
Re: attributes in ecore model [message #551157 is a reply to message #550222] Thu, 05 August 2010 13:09 Go to previous messageGo to next message
wiwi is currently offline wiwiFriend
Messages: 10
Registered: July 2010
Junior Member
hi everybody,

in my model ecore i create a Eclass and i need a table of integer for this i add to it an Eattribute named content, how can i set this Eattribute to be a table.

thanks for help
Re: attributes in ecore model [message #551180 is a reply to message #551157] Thu, 05 August 2010 14:14 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hello,

don't know if you are asking this question in the right forum (the EMF Forum can be found here: http://www.eclipse.org/forums/index.php?t=thread&frm_id= 108). never the less eattributes can only be of primitive types. what do you mean with "a table"?

Regards
Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 05 August 2010 15:15]

Report message to a moderator

Re: attributes in ecore model [message #551465 is a reply to message #551180] Fri, 06 August 2010 14:34 Go to previous messageGo to next message
wiwi is currently offline wiwiFriend
Messages: 10
Registered: July 2010
Junior Member
so, how can i have an array of objects,
Re: attributes in ecore model [message #551466 is a reply to message #551465] Fri, 06 August 2010 14:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi

Just add a new EReference (with containment=true and upper bounds = -1) to have a child list of objects.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 06 August 2010 14:37]

Report message to a moderator

Re: attributes in ecore model [message #551467 is a reply to message #551466] Fri, 06 August 2010 14:37 Go to previous message
wiwi is currently offline wiwiFriend
Messages: 10
Registered: July 2010
Junior Member
ok, thanks
Previous Topic:Displaying blank value in the properties window
Next Topic:Do bounds (lower and upper) of EReference have any effect?
Goto Forum:
  


Current Time: Tue Apr 23 10:33:29 GMT 2024

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

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

Back to the top