Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Zest] All the nodes are in the upper left corner - please help
[Zest] All the nodes are in the upper left corner - please help [message #638846] Fri, 12 November 2010 18:23 Go to next message
William Koscho is currently offline William KoschoFriend
Messages: 10
Registered: May 2010
Junior Member
I am using a Zest GraphViewer, with a ContentProvider and LabelProvider and set my layout to RadialLayout. Everything displays fine the first time.

However, when I update the underlying model the ContentProvider gets notified and then calls refresh on the GraphView.

When it re-displays, all the nodes are in the upper left corner, on top of each other.

Any ideas why this is happening?

Thanks in advance,
Re: [Zest] All the nodes are in the upper left corner - please help [message #642315 is a reply to message #638846] Tue, 30 November 2010 18:52 Go to previous message
Johan Schulz is currently offline Johan SchulzFriend
Messages: 20
Registered: November 2010
Junior Member
You have to call applyLayout() on your GraphViewer reference. I use this helper method to refresh my UI after a model change occured.

private void updateGraph()  {

All new nodes move (nicely animated) from the upper left corner to their final position.

Previous Topic:How can I have a Draw2d button event start a request ?
Next Topic:Drag-drop and embed (refer) one diagram in another
Goto Forum:

Current Time: Tue Jun 19 12:46:24 GMT 2018

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

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

Back to the top