Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » strange zest rendering in RCP?
strange zest rendering in RCP? [message #245467] Fri, 12 September 2008 08:13 Go to next message
Richard Adams is currently offline Richard AdamsFriend
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
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 #245505 is a reply to message #245467] Tue, 16 September 2008 03:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Is it deterministic? (i.e. if you run the app twice in a row, do the
number of nodes / edges change)?. Are you using the JFace Viewers or
simply the Zest graph widget?

cheers,
ian

Richard Adams wrote:
> 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 08:09 Go to previous messageGo to next message
Richard Adams is currently offline Richard AdamsFriend
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
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 21:42 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Is it possible to provide a Screen Capture functionality in GEF editors?
Next Topic:[Zest] How to set a ConnectionRouter
Goto Forum:
  


Current Time: Thu Apr 25 04:05:52 GMT 2024

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

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

Back to the top