}
}
public static ConnectionHashKey createKey(final DiagramConnectionPart connPart)
{
SapphireDiagramEditorPagePart diagramPart = connPart.nearest(SapphireDiagramEditorPagePart.class);
String connId = connPart.getId();
String nodeId = null;
if (connPart instanceof StandardEmbeddedConnectionPart)
{
Element srcElement = connPart.getEndpoint1();
DiagramNodePart nodePart = diagramPart.getDiagramNodePart(srcElement);
nodeId = nodePart.getId();
}
ConnectionHashKey hashKey = new ConnectionHashKey(nodeId, connId);
return hashKey;
}