Skip to main content



      Home
Home » Eclipse Projects » GEF » [GEF] [Zest] GraphViewer.setInput without effect?
[GEF] [Zest] GraphViewer.setInput without effect? [message #245985] Wed, 29 October 2008 08:08 Go to next message
Eclipse UserFriend
Hello everybody,

first let me thank the people who developed Zest. It seems to be the
perfect tool for my problem!

I am new to Java, Eclipse, RCP, SWT, GEF and anything related, so maybe it
is a dump question, but after spending two days looking for a solution i
am stuck.

In my application i use a GraphViewer with the TreeLayoutAlgorithm.
Everything works fine until i try to change the input using
GraphViewer.setInput(myInput). It looks to my that this has no impact on
the nodes in the graph, because GraphViewer.getNodes() still returns the
nodes created with the first input.
Is it a mistake to assume that setInput() would force the graph to display
the new input?

My workaround was to dispose the graph and draw it new, but this leads me
to an other problem i can`t solve: I am not able to disable the animation
of the node, moving to their final position. This is a bit unhandy if only
a few nodes changed. So my other question is: Is there a way to toggle off
the animation behavior?

Thank you in advance,

Daniel
Re: [GEF] [Zest] GraphViewer.setInput without effect? [message #246018 is a reply to message #245985] Fri, 31 October 2008 04:07 Go to previous messageGo to next message
Eclipse UserFriend
Solved!

With help from Andreas i found my (stupid) fault in the ContentProvider
and he told me about the bug #238529 concerning the animation problem.

Thx!
Re: [GEF] [Zest] GraphViewer.setInput without effect? [message #1729868 is a reply to message #246018] Tue, 19 April 2016 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Daniel,

I am facing the same problem. What was your solution (fault in the ContentProvider
)?

thx,
Wladimir
Re: [GEF] [Zest] GraphViewer.setInput without effect? [message #1730363 is a reply to message #1729868] Mon, 25 April 2016 06:11 Go to previous message
Eclipse UserFriend
Solved, sorry for bringing it up . ContentProvider works fine.
Wladimir
Previous Topic:[zest] Running Zest 1.5 in E4
Next Topic:[ZEST 1] Disable animation
Goto Forum:
  


Current Time: Sat Jul 19 14:37:32 EDT 2025

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

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

Back to the top