|
Re: Drag and Drop Node to Node [message #1749855 is a reply to message #1749838] |
Tue, 13 December 2016 09:26 |
|
Hello,
In your VSM, I guess that the mapping of the bordered node you drag, is not a child mapping of the targeted border node. Therefore, by default it is not evaluated as a valid target candidate (in opposition with the container that is a valid one). In your drop tool, in the containers list you should add the mapping of the targeted border node. Note that this means that in the operation processed by your drop tool, you will need first to test the newSemanticContainer to check if it was droped on the container or on the border node.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Drag and Drop Node to Node [message #1749883 is a reply to message #1749861] |
Tue, 13 December 2016 14:14 |
|
In your Drop tool, under the "Begin" element, did you start by a switch or two ifs to check if the targeted element is a "Container" or if its a "Bordered Node Target", containing two different process, respectively moving inside the new container and referencing the targeted element?
You can also have 2 drop tool, one where Containers only contain Element and the other one with only Bordered Node Target. This way in the begin, you do not need to test the type of the targeted element.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Drag and Drop Node to Node [message #1750041 is a reply to message #1749938] |
Thu, 15 December 2016 12:10 |
|
My bad, I was confused with the extra mapping functionality of the creation tool. You can't use a drag and drop tool as you want by default. You will need a custom style to provide your own editpart having DragDropEditPolicy close to the SiriusContainerDropPolicy one. My opinion is that it is a bit overkill compare to a simple edge creation tool to add a reference between two border nodes.
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03137 seconds