[Eugenia] link creation problem [message #658947] |
Thu, 10 March 2011 14:36 |
Tiancheng Chang Messages: 1 Registered: March 2011 |
Junior Member |
|
|
Hi all
I met a problem while creating en editor based on SoaML metamodel. Now I try to describe it in a simple way. Firstly see parts of the emf codes:
--------------------------
class ConnectableElement {
attr String name;
volatile transient derived ref ConnectorEnd[*] end;
}
class ConnectorEnd {
attr String name;
!ordered ref ConnectableElement[1] role;
}
class Connector {
attr String name;
!ordered ref Connector[*] redefinedConnector;
val ConnectorEnd[2..*] end;
!ordered unsettable attr ConnectorKind kind;
}
--------------------------
What shall be like in the diagram is that 'ConnectableElement' is the node linked by 'Connector'. 'ConnectorEnd' shall not be visible in the diagram.
Now the difficulty of making the editor comes from 'ConnectorEnd'. You can see that the link 'Connector' contains several 'ConnectorEnd'. Besides,
'ConnectorEnd' and 'ConnectableElement' refers to each other.
So I guess the metamodel means that in the diagram, a 'Connector' links two 'ConnectableElement' by refering them with 'ConnectorEnd'? But how to deal with it
in Eugenia? How to make the 'ConnectorEnd' invisible so that it looks that two 'ConnectableElement' are connected by a 'Connector' directly?
Thanks for your opinions about my problem! And please let me know if this problem is not clearly described
Tiancheng
[Updated on: Thu, 10 March 2011 15:04] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02696 seconds