Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] link creation problem(how to deal with link while link and node are not connected directly)
[Eugenia] link creation problem [message #658947] Thu, 10 March 2011 14:36 Go to next message
Tiancheng Chang is currently offline Tiancheng ChangFriend
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 Smile

Tiancheng

[Updated on: Thu, 10 March 2011 15:04]

Report message to a moderator

Re: [Eugenia] link creation problem [message #660024 is a reply to message #658947] Wed, 16 March 2011 15:07 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Tiancheng,

This thread might help: http://www.eclipse.org/forums/index.php?t=msg&goto=49873 3&

Cheers,
Dimitris
Previous Topic:ETL - How to Handle Metamodel Extensions
Next Topic:[ECL] The Matches Method, Abstract Classes, and Super-Rules
Goto Forum:
  


Current Time: Wed Apr 24 22:22:11 GMT 2024

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

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

Back to the top