Dropping palette element from palette onto connection [message #1771587] |
Mon, 28 August 2017 07:08  |
Eclipse User |
|
|
|
When element is dropped, the connection is broken up and two connections are created A-B-C. It looks like this is done automatically by Graphiti, if this is the case, how can I attach a listener when this happens?
[Updated on: Mon, 28 August 2017 15:40] by Moderator
|
|
|
|
|
|
|
|
|
|
Re: Dropping palette element from palette onto connection [message #1772506 is a reply to message #1772099] |
Mon, 11 September 2017 11:40  |
Eclipse User |
|
|
|
Alex,
as I wrote above Graphiti as a framework does not have any knowledge about tool-specific things, like how and when to create connections. When you drop an object onto a connection, the tool needs to react on that and:
1) Create the new object or move an existing one in case a more that a location change is required
2) Let the existing connection end (or start) at the dropped object
3) Create a new connection (as clone or also different) as required to connect the dropped object with the original target object
4) Create any domain object for the new connection
5) Adapt existing domain objects if needed
Especially Graphiti does not assume it can create the new connection just the same as the old one.
HTH,
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.48630 seconds