{
continue;
}
DiagramConnectionModel conn = (DiagramConnectionModel)edge.data;
NodeList nodes = edge.vNodes;
DiagramConnectionPart connPart = conn.getModelPart();
ArrayList<org.eclipse.sapphire.ui.Point> connBendPoints = new ArrayList<org.eclipse.sapphire.ui.Point>();
if (nodes != null)
{
//int bpIndex = 0;
for (int i = 0; i < nodes.size(); i++)
{
Node vn = nodes.getNode(i);
int x = vn.x;
int y = vn.y;
if (getGraphDirection() == PositionConstants.EAST)
{
if (edge.isFeedback())
{
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x + vn.width, y));
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x, y));
}
else
{
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x, y));
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x + vn.width, y));
}
}
else
{
if (edge.isFeedback())
{
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x, y + vn.height));
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x, y));
}
else
{
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x, y));
connBendPoints.add(new org.eclipse.sapphire.ui.Point(x, y + vn.height));
}
}
}
}
else
{
Point bendPoint = configManager.getConnectionRouter().route(conn);
if (bendPoint != null)
{
connBendPoints.add(new org.eclipse.sapphire.ui.Point(bendPoint.x, bendPoint.y));
}
}
connPart.resetBendpoints(connBendPoints);
connPart.setLabelPosition(null);
}
}