Bug 547987

Summary: [ELK] algorithm selection is not applied to containers
Product: [Modeling] Sirius Reporter: Enrico Vincenzi <enr.vnr>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: UNCONFIRMED --- QA Contact:
Severity: normal    
Priority: P3 CC: laurent.redor
Version: unspecifiedKeywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

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