strange zest rendering in RCP? [message #245467] |
Fri, 12 September 2008 04:13  |
Eclipse User |
|
|
|
Hi,
I am getting stsrted with Zest and have a simple 'HelloWorld' RCP with a
zest graphviewer, which should display a small data atructure that is set
as the input. When I run the app, I should see 4 edges and 5 nodes, but
often edges or nodes are missing. When I step through the debugger to see
what's going on it all looks fine and the graph is displayed correctly.
I can only think there's some sort of threading issuw with the display -
I'm using Ganymede 3.4.0 on Windows XP
All the 'graphsnippet' examples work fine.
We are really keen to use Zest in our project, it's exactly what we were
looking for, apart from this bug.
Would be really grateful if anyone has any ideas how this might be
happening
Thanks
Richard
|
|
|
|
Re: strange zest rendering in RCP? [message #245509 is a reply to message #245505] |
Tue, 16 September 2008 04:09   |
Eclipse User |
|
|
|
Hi Ian
Thanks for your reply.
I have discovered that it only seems to happen when the view appears
from application startup. I have added a Window->ShowView action to the
menubar, and if I close the graphview, and reopen it, the graph appears
fine.
The model is 4 source nodes connected to a central destination node
Node1
|
|
|
Node2 ----> CentralNode<------Node 3
|
|
|
Node4
When running from start up, the central node, 1 edge, and and 1 source
node appear in the view, and another node with a self edge but no label.
Two nodes are missing completely. I.e.,
A node -------------> CentralNode
Another_unconnected_node
This is actually pretty consistent - so the central node always appears,
and 2 others.
This is using the 'GraphViewer' class in a custom view class that extends
ViewPart, and is contributed via the plugin.xml, in exactly the same way
as the
'Hello World' RCP view.
Cheers
Richard
|
|
|
Re: strange zest rendering in RCP? [message #245631 is a reply to message #245509] |
Fri, 19 September 2008 17:42  |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Can you open a bug for this? Now that I think about it, there may be
some threading on startup. (I check to see if the canvas is visible
before I try and compute the bounds, and if the canvas is not visible, I
add a callback). I wonder if this is causing some problems.
cheers,
ian
Richard Adams wrote:
> Hi Ian
> Thanks for your reply.
> I have discovered that it only seems to happen when the view appears
> from application startup. I have added a Window->ShowView action to the
> menubar, and if I close the graphview, and reopen it, the graph appears
> fine.
>
> The model is 4 source nodes connected to a central destination node
> Node1
> |
> |
> |
> Node2 ----> CentralNode<------Node 3
> |
> |
> |
> Node4
>
> When running from start up, the central node, 1 edge, and and 1 source
> node appear in the view, and another node with a self edge but no label.
> Two nodes are missing completely. I.e.,
>
> A node -------------> CentralNode
>
>
> Another_unconnected_node
>
>
> This is actually pretty consistent - so the central node always appears,
> and 2 others.
> This is using the 'GraphViewer' class in a custom view class that
> extends ViewPart, and is contributed via the plugin.xml, in exactly the
> same way as the 'Hello World' RCP view.
>
> Cheers
> Richard
>
|
|
|
Powered by
FUDForum. Page generated in 0.03469 seconds