[GEF] [Zest] GraphViewer.setInput without effect? [message #245985] |
Wed, 29 October 2008 08:08  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06375 seconds