return null;
}
public static void moveChoreographyMessageLinks(ContainerShape choreographyContainer) {
BPMNShape bpmnShape = BusinessObjectUtil.getFirstElementOfType(choreographyContainer, BPMNShape.class);
Bounds bounds = bpmnShape.getBounds();
int x = (int) ((bounds.getX() + bounds.getWidth() / 2) - (ENV_W / 2));
Map<AnchorLocation, BoundaryAnchor> boundaryAnchors = AnchorUtil.getBoundaryAnchors(choreographyContainer);
BoundaryAnchor topBoundaryAnchor = boundaryAnchors.get(AnchorLocation.TOP);
BoundaryAnchor bottomBoundaryAnchor = boundaryAnchors.get(AnchorLocation.BOTTOM);
for (Connection connection : topBoundaryAnchor.anchor.getOutgoingConnections()) {
EObject container = connection.getEnd().eContainer();
if (container instanceof PropertyContainer) {
String property = peService.getPropertyValue((PropertyContainer) container, MESSAGE_LINK);
if (property != null && new Boolean(property)) {
int y = (int) (bounds.getY() - ENVELOPE_HEIGHT_MODIFIER - ENV_H);
gaService.setLocation(((ContainerShape) container).getGraphicsAlgorithm(), x, y);
break;
}
}
}
for (Connection connection : bottomBoundaryAnchor.anchor.getOutgoingConnections()) {
EObject container = connection.getEnd().eContainer();
if (container instanceof PropertyContainer) {
String property = peService.getPropertyValue((PropertyContainer) container, MESSAGE_LINK);
if (property != null && new Boolean(property)) {
int y = (int) (bounds.getY() + bounds.getHeight() + ENVELOPE_HEIGHT_MODIFIER);
gaService.setLocation(((ContainerShape) container).getGraphicsAlgorithm(), x, y);
break;
}
}
}