Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Zest] Maintaining order of leaves in SpaceTreeLayout
[Zest] Maintaining order of leaves in SpaceTreeLayout [message #1005293] Thu, 24 January 2013 19:46 Go to next message
Jonathan Jekeli is currently offline Jonathan JekeliFriend
Messages: 10
Registered: October 2012
Junior Member
Is it possible to maintain the order of nodes in a SpaceTreeLayout? Currently, it seems like every time I refresh the graph, a new ordering of leaves occur. For example, if I have:

/ \
2 3

Then add node 4 as a child of 3, I will get:

/ \
3 2

Is there any way to prevent this and ensure the same ordering every time?


Re: [Zest] Maintaining order of leaves in SpaceTreeLayout [message #1008026 is a reply to message #1005293] Fri, 08 February 2013 15:04 Go to previous message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 342
Registered: July 2015
Senior Member

have you tried adding a comparator using GraphViewer#setComparer or GraphViewer#setComparator. Most layout algorithms respect the order they get their nodes in.

Previous Topic:How initially scroll when editor opens?
Next Topic:Draw2D & GEF: qualified associations
Goto Forum:

Current Time: Wed Jun 20 11:48:01 GMT 2018

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

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

Back to the top