Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How to link to non modelelements
How to link to non modelelements [message #561974] Fri, 30 July 2010 10:20
Jos Warmer is currently offline Jos WarmerFriend
Messages: 66
Registered: July 2009
Member
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: Thu Apr 18 18:33:20 GMT 2024

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

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

Back to the top