[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Connections are not shown

Hi again,

I'm still trying to show connections among the nodes of the application I'm working on. I will give you a brief overview of my architecture so that you can help me to spot the problem.

- There is one GraphView which extends LayeredPane (so its layout is StackLayout by default)
- Inside this GraphView there is one NodeLayer which extends Layer and set its layout to ToolbarLayout.
- Inside this GraphView there is also a ConnectionLayer (org.eclipse.draw2d.ConnectionLayer)


After adding those 2 layers (Node and Connection) into the GraphView, the application populates the NodeLayer with many Nodes. After putting all nodes into the NodeLayer, the application creates connections (PolylineConnection) among them and then add those connections into the ConnectionLayer.

The result is that all the connections are added to the same point. I printed the con.getStart() and con.getEnd() values and they are set to (0,0) and (100, 100) respectively. All of them.

My nodes are displayed without any problem but all the connection are drawn on the same place.

Could someone please help me to solve this problem?
Any help is appreciated. Thank you very much.

Best Regards
Cleverson Schmidt