|Re: Problem with Edge Creation Description [message #1300332 is a reply to message #1300294]
||Thu, 17 April 2014 13:54
|| Maxime Porhel
Registered: July 2009
Location: Nantes, France
Le 17/04/2014 15:21, Marc Z a écrit :|
> Hi all,
> I have a problem using 'Edge Creation Description'.
> I have an ecore model in which the relation between an element A and an
> element b is realized by an element called 'Connection'. Moreover, all
> instances of A, B & Connection are included in an ecore element called
> 'Model'. All connections should be contained in the connections
> Attribute of the Model element.
> However, when I try to implement an 'Edge Creation Description' and
> using 'Create Instance' to create a Connection element in order to
> create a relationship between an instance of A and B, I always get the
> following exception:
> connections on mailto:myModel.impl.AImpl@...
> Does anyone know what I am doing wrong and how to realize teh edge
> creation in this case properly?
I think you have to add a Change Context operation before the Create
Instance, the expression will alows you change the context to your Model
element and then the connections feature should be found.
If you directly add the CreateInstance a child of the inital operation
node, note that the context is the semantic source (the semantic element
of the your first click). The EdgeCreationTool have the same behavior
for Relation based edge mappings and Element based edge mappings.
> Thank you!
Maxime Porhel - Obeo
Need training or professional services for Sirius?
Powered by FUDForum
. Page generated in 0.01571 seconds