Community
Participate
Working Groups
Currently it is possible to add a single ELK algorithm just for the top node in a Diagram. It would be great if it were possible to select a different algorithm for each type of container designed in the *.odesign file an not just one for the top. Thanks
Currently, even with future Sirius versions 6.1.4 [1] or 6.3.0 [2], it is not possible to do that. Nevertheless, it is possible to use the experimental extension point org.eclipse.sirius.diagram.elk.layout.extension. By implementing the method org.eclipse.sirius.diagram.elk.IELKLayoutExtension.beforeELKLayout(LayoutMapping), you should be able to add specific ELK algorithm for each node. You have then to use the ELK model > ElkNode elkNode = layoutMapping.getLayoutGraph(); > elkNode.getChildren()... > elkNode.setProperty(org.eclipse.elk.core.options.CoreOptions.ALGORITHM, org.eclipse.elk.alg.mrtree.options.MrTreeOptions.ALGORITHM_ID); It will be more difficult than simply add a new algorithm under a mapping. But this improvement is not planned in future releases. [1] http://download.eclipse.org/sirius/updates/stable/6.1.4-S20190910-141057/ [2] http://download.eclipse.org/sirius/updates/milestones/6.3.0rc1