Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Problem creating a model
icon4.gif  Problem creating a model [message #634864] Sun, 24 October 2010 17:38 Go to next message
Marina is currently offline MarinaFriend
Messages: 9
Registered: July 2009
Junior Member
Hi all,

I'm trying to get a model following the tutorial that I've found at http:// www.vogella.de/articles/EclipseEMF/article.html#emfeditor_ed itmodel, but when I try to edit my model I can't add all the children that should be available.

The only child I can add is from Ereference IsContainment property.

Is that depending from a particular EReference property? I'm not able to set Eopposite property for instance, I've got no idea.

Thanks
Re: Problem creating a model [message #634885 is a reply to message #634864] Sun, 24 October 2010 20:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hello Marina,

use the "Properties View" to edit attributes and non-containment references.

~Christian
Re: Problem creating a model [message #634949 is a reply to message #634864] Mon, 25 October 2010 08:17 Go to previous messageGo to next message
Marina is currently offline MarinaFriend
Messages: 9
Registered: July 2009
Junior Member
Thank you Christian,

I've tried to change some properties but nothing happens.
Moreover, i can't change some properties like EOpposite, because there is nothing to select from the menu.

I don't know if I need to change some properties or to modify the xml code in order to get a model like the Vogella's expample.

[Updated on: Mon, 25 October 2010 08:17]

Report message to a moderator

Re: Problem creating a model [message #635422 is a reply to message #634949] Tue, 26 October 2010 18:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi,

you can find Lars' sample code here: http://www.vogella.de/code/codeeclipse.html

~Christian
Re: Problem creating a model [message #635537 is a reply to message #634864] Wed, 27 October 2010 09:37 Go to previous message
Marina is currently offline MarinaFriend
Messages: 9
Registered: July 2009
Junior Member
I figured out what the problem was eventually, I have to set the Ereferences in both directions end use generalization in order to get the appropriare children for my model.

Thank you again for your help,

Marina
Previous Topic:How to override the label provider of a referenced model element
Next Topic:Ordering Siblings
Goto Forum:
  


Current Time: Sun Dec 21 23:30:00 GMT 2014

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

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