Bug 547987 - [ELK] algorithm selection is not applied to containers
Summary: [ELK] algorithm selection is not applied to containers
Status: UNCONFIRMED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2019-06-06 06:10 EDT by Enrico Vincenzi CLA
Modified: 2019-10-29 11:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Vincenzi CLA 2019-06-06 06:10:20 EDT
The algorithm choosen under the diagram description is applied only to the "first layer" of itmes/containers in the diagram. Everything inside child containers is arranged with the ELK Layered algorithm automatically selected as default one.

The reason is that algorithm property is set only for the top node and not inside the createNode function. This leads to every child container is rearranged with ELK Layered layout later on.

Solution could be to add

childLayoutNode.setProperty(CoreOptions.ALGORITHM, layoutConfiguration.getId().trim());

to createNode function in the Connector class.
Comment 1 Laurent Redor CLA 2019-10-29 11:15:17 EDT
We have recently worked on ELK integration,among others on "bug 550389 - Improve ELK graph transformation" and "bug 550368 - All ELK algorithm options are not avalaible in VSM". Do you have a way to test your problem with the new fixes with one of the following version?
* Sirius 6.1.4 : http://download.eclipse.org/sirius/updates/stable/6.1.4-S20190910-141057/
* Sirius 6.3.0 : http://download.eclipse.org/sirius/updates/milestones/6.3.0rc1