|
Re: Events at the moment of connecting the edge to a target node [message #1745985 is a reply to message #1745981] |
Thu, 20 October 2016 07:46 |
|
Hello
Quote:1. How to trigger at the moment of connecting edge to the target node?
in your odesign at the Reconnect Edge tool definition, you can add a "change context" operation at the end of your operations and call a service that will do the job
Quote:2. How do I change bendpoints edges, which I just joined?
You can by inspired by the internal class org.eclipse.sirius.diagram.ui.tools.internal.handler.RemoveBendpointsHandler
regards
Laurent
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
Re: Events at the moment of connecting the edge to a target node [message #1746150 is a reply to message #1745985] |
Mon, 24 October 2016 05:57 |
Martin Jedlicka Messages: 122 Registered: January 2016 |
Senior Member |
|
|
Hi Laurent,
Thanks so much for your response.
I tried to define Reconnect Edge tool, but it only works if I reconnect the edge to another node. I need it to trigger when edge is created between two nodes.
Additionally, so I get only to the selected node (which is the source), but I need to get to the edge, I could change her bendpoints.
I tried to define Edge Cretion tool, but it's not working. Although the external java action called when creating edges (which I need), but in the selection of IExternalJavaAction is still a source node model. So I do not have instance of ConnectionNodeEditPart, as in example RemoveBendpointsHandler.
So I do not know how to get to the edge so I could change bendpoints. Because at creation time edge, the edge is not yet available.
Thank you for your help.
Martin
[Updated on: Mon, 24 October 2016 06:21] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04244 seconds