简体   繁体   English

EMF模型ecore图日食,怎么做双向关系

[英]EMF Model ecore Diagram eclipse, how to do a two way relation

I'm trying to do my first Model with ecore diagram and I didn't find a way to draw a relationship between two class with any direction on it. 我正在尝试用ecore图制作我的第一个模型, ecore我没有找到在两个类之间绘制任何方向的关系的方法。 In other words, any arrow symbol on the extremity of it. 换句话说,其末端上的任何箭头符号。

Is it possible and how to do it? 有可能并且怎么做?

Create a reference from the first class to the second. 创建从第一类到第二类的引用。 Call it ref1, for example. 例如,将其称为ref1。 Then create another reference in the opposite direction - from the second class to the first - and set its "opposite" property to ref1. 然后以相反的方向(从第二类到第一类)创建另一个引用,并将其“ opposite”属性设置为ref1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM