Skip to main content



      Home
Home » Modeling » Graphiti » How to link to non modelelements
How to link to non modelelements [message #561974] Fri, 30 July 2010 06:20
Eclipse UserFriend
I am trying to create a visual link between two elements that does not refer to a metaclass, but to a reference in the metamodel.

Example: I have an ecore metamodel with metaclass "BusinessClass" and a reference from DomainClass to itself called "superclass".

I create feature providers to create and add a "BusinessClass" and link the shape to the model object representing the BusinessClass.

Now I would like to have featureproviders to create/add the "superclass" reference between two existing BusinessClasses. As there is no metaclass representing the "superclass" (it is just a reference from one businessclass to another in the metamodel) I wonder how I should setup the Graphiti link from the "superclass" shape (a polyline) to the 'superclass model object, because there is no such model object.

Any pointers on how to achieve this?

-- Jos
Previous Topic:More examples
Next Topic:Problem in Loading a saved file
Goto Forum:
  


Current Time: Tue Jul 01 19:41:37 EDT 2025

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

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

Back to the top