Skip to content
Discussion options

You must be logged in to vote

GLSP typically does the transformation from the source model (EMF-based or otherwise) to the graphical Model (GNodes, GEdges, etc.) in the GModelFactory. However, in the example, the source model and the graphical model are the same for simplicity, so there is no need for any factory to be bound since we already have GNodes and GEdges that the client can render. I'm not aware of any annotation that you can do that automatically provides the mapping from references to GEdges in your case. So you either need a custom GModelFactory to translate your already almost-GModel source model into a full GModel or you need to make sure that the source model already uses GEdges.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@martin-fleck-at
Comment options

Answer selected by mohamadreza77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants