Skip to main content



      Home
Home » Modeling » Graphiti » how to link references
how to link references [message #1060330] Fri, 24 May 2013 03:41 Go to next message
Eclipse UserFriend
In the Graphiti tutorial references among objects of the model, which in the tutorial is an instance of the ECORE meta-meta-model, are stored via a EReference instance like this

link(connection, addedEReference);


The problem is that in the instance of my own ECORE meta-model references ar just properties of the involved meta-classes. How should I link these to the related connections?

Regards
Re: how to link references [message #1060367 is a reply to message #1060330] Fri, 24 May 2013 06:15 Go to previous messageGo to next message
Eclipse UserFriend
Andrea,

you may link to the source and/or target instance of the object containing
the reference. Additionally you may store the name of the reference as a
name-value-property along with the connection (e.g. in case there are
several references that might connect the 2 objects).

Michael
Re: how to link references [message #1060501 is a reply to message #1060367] Sat, 25 May 2013 09:28 Go to previous message
Eclipse UserFriend
Hi,

you could also link the connection to the "feature" which it represents.

E.g. XPackage.Literals.XX_YY : EReference

With this connection you can handle everything when the connection is selected, I think.

See the thread under [1] for a more detailed explanation.

Aljoscha

[1] http://www.eclipse.org/forums/index.php/m/924268/#msg_924268
Previous Topic:Question about Link Model
Next Topic:Graphiti and EMF Properties View
Goto Forum:
  


Current Time: Wed Jul 23 13:22:56 EDT 2025

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

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

Back to the top