Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » ELK algorithm selection in containers(The selected Algorithm is appied only to the diagram description. Nodes inside containers always apply the default one)
ELK algorithm selection in containers [message #1807588] Tue, 04 June 2019 09:34 Go to next message
Enrico Vincenzi is currently offline Enrico VincenziFriend
Messages: 3
Registered: May 2019
Junior Member
Hello,

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

index.php/fa/35677/0/

and not inside the createNode function. This leads to every child container is rearranged with ELK Layered layout later on.

It would be cool if the top Algorithm is applied also for child containers. This could just be adding
childLayoutNode.setProperty(CoreOptions.ALGORITHM, layoutConfiguration.getId().trim());

in the createNode function (ELK recursive algorithm only applies the algorithm to nodes with childs).

It would be cooler to be able to select a custom algorithm for each kind of container inside the odesign file.

Thanks
  • Attachment: topalgo.png
    (Size: 10.68KB, Downloaded 404 times)

[Updated on: Tue, 04 June 2019 09:35]

Report message to a moderator

Re: ELK algorithm selection in containers [message #1807599 is a reply to message #1807588] Tue, 04 June 2019 13:05 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi Enrico,

If I understand correctly there is one problem with top algorithm not applied to children containers.
The second problem is that you want to be able to specify different algorithms from the top one in the odesign for some sub node container.

Is that correct?

The first problem seems to be a bug and the second one a feature request.

Can you do one Sirius ticket per problem? https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Custom ELK algorithm with Sirius in Custom Eclipse IDE strange behavior
Next Topic:EFeatureMapEntries not loaded in sirius diagram editor
Goto Forum:
  


Current Time: Thu Mar 28 10:05:19 GMT 2024

Powered by FUDForum. Page generated in 0.03935 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top