Community
Participate
Working Groups
Hi, Thats the declaration of my algorithm class : public void layout(ElkNode layoutGraph, IElkProgressMonitor progressMonitor) { The layoutGraph element is ELKNode type, so i'm not able to get getModel()).getElement()).getTarget() methods. I can access children's of ELKNode too, that's ok, but i'm not able to know if one specific node (children of layoutGraph) is type of PersonDomainModel or type of BallDomainModel. Thats my big problem. our topic name is "ELK nodes". Regards
See https://www.eclipse.org/forums/index.php/m/1807654/#msg_1807654
Are you trying to implement your own layout algorithm? You should add custom Property constants for the information you are trying to access. Then you can set those properties on the graph while transforming the Sirius / GMF model into an ELK graph, and you can read the properties from the graph in the layout algorithm.
See the ELK documentation: https://www.eclipse.org/elk/documentation/tooldevelopers/graphdatastructure/layoutoptions.html