SapphireDiagramEditorPagePart diagramPart = context( SapphireDiagramEditorPagePart.class );
ConnectionService connService = diagramPart.service(ConnectionService.class);
for (DiagramConnectionPart connPart : connService.list())
{
ComponentDependency dependency = (ComponentDependency)connPart.getLocalModelElement();
if (!dependency.disposed())
{
writeDependencyBendPoints(dependency, connPart);
}
}