|
Re: How to draw edges between list items? [message #1849471 is a reply to message #1849340] |
Thu, 20 January 2022 23:43  |
|
Hi Konrad,
Unfortunately, this is a limitation that we still have, node in a list containers can't be source or target. Well you can specify an edge mapping using a node mapping that is displayed in a list container but the edges on the diagram will not be computed and drawn. There is a bugzilla about this enhancement [1], but it is quite old as you can see so I do not know when or if we will implement it. It is not on any roadmap that I know of, unless someone order it (wink wink). More seriously, there is a specification in the bugzilla that could give you some pointer if you want to implement it with some custom edit parts[2].
You probably have some alternative with less custom code by having your edge mapping source/target to the container mapping and compute some custom anchor (style need custom edit parts but just for the containers).
Otherwise, you can have border nodes on the mapping and force there position (custom code again) next to the list element and hide the border nodes with a filter.
Best regards,
Steve
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=455056
[2] https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_style.html
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02425 seconds