Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [ZEST] Adding CGraphNodes to GraphContainers
[ZEST] Adding CGraphNodes to GraphContainers [message #541827] Tue, 22 June 2010 16:15 Go to next message
cefdemetser is currently offline cefdemetserFriend
Messages: 8
Registered: June 2010
Junior Member
Adding a CGraphNode to a GraphContainer in Zest doesn't seem to give any troubles. Only, the figure of the CGraphNode is not shown inside the container.

What could be the cause of this? Do I need to change Zest to enable this, if so, where should I start? I have looked at the code of Zest in detail, so you can be quite specific.

Thanks!

[Updated on: Tue, 22 June 2010 16:16]

Report message to a moderator

Re: [ZEST] Adding CGraphNodes to GraphContainers [message #541963 is a reply to message #541827] Wed, 23 June 2010 11:57 Go to previous message
cefdemetser is currently offline cefdemetserFriend
Messages: 8
Registered: June 2010
Junior Member
Actually, the custom figure shows up, not inside the container but as an independent node on the graph layer.

So the following code:

GraphContainer gC = new GraphContainer(graph, SWT.NONE);
GraphNode n2 = new GraphNode(gC ,SWT.NONE, "test");
CGraphNode cn1 = new CGraphNode(gC, SWT.NONE, t2);

Creates a container holding n2, but cn1 is drawn outside the container, as it is of type CGraphNode. Going through the code, I can't see a difference between creating n2 and cn1 which could cause this discriminating behavior.

[Updated on: Wed, 23 June 2010 11:58]

Report message to a moderator

Previous Topic:Is it a bug of GEF?
Next Topic:Another "Prevented recursive attempt" error - but it's not setFocus
Goto Forum:
  


Current Time: Thu Sep 19 15:23:04 GMT 2024

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

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

Back to the top