Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » [ecoretools] Problem creating opposite ERelation through the graphical editor
[ecoretools] Problem creating opposite ERelation through the graphical editor [message #795231] Fri, 10 February 2012 08:19 Go to next message
Benoit Cantin is currently offline Benoit CantinFriend
Messages: 34
Registered: January 2012
Member
Hello all,

This topic is following http://www.eclipse.org/forums/index.php/mv/msg/281817/786463/#msg_786463. I didn't see at that time that there was a forum dedicated to Ecore tools.

My version of ecore tools is 1.0.0.v20110608-1633

When I am using the .ecorediag graphical editor, if I create 2 EClass, linked by 2 ERelation (one in each sense), if I click on one of the ERelation, then in the Properties EOpposite, button '...', the second relation is not listed, until I manually change the cardinalities. If I change cardinalities, then the second ERelation does appear.

When both relations are set as opposite, one of the relations disappears. All the cardinalities are then displayed on the same link (this seems correct to me).

If I save, and reopen, then the second relation reappears. Each time I modify those relations, they merge each other...

I can reproduce that on a very simple test case :

Initial state
index.php/fa/7109/0/

Empty list of candidate opposites (1 single item, coming from ?)
index.php/fa/7110/0/

After having changed one of the cardinalities, I can set the opposite :
index.php/fa/7111/0/

And the result is :
index.php/fa/7112/0/

Once saved and reopened, I get :
index.php/fa/7113/0/

Any idea ? Does this look normal to you ?
Re: [ecoretools] Problem creating opposite ERelation through the graphical editor [message #795239 is a reply to message #795231] Fri, 10 February 2012 08:29 Go to previous message
Benoit Cantin is currently offline Benoit CantinFriend
Messages: 34
Registered: January 2012
Member
Please also note that when I set Eopposite in the .ecore editor, if I save and then reopen the .ecorediag, then both relations appear undirected.
Previous Topic: UI Acceleo Launcher Project fails
Next Topic:Is Ecore tools development dead ?
Goto Forum:
  


Current Time: Sun Dec 21 18:11:44 GMT 2014

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

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