}
private ConnectionAnchor getRecipientConnectionAnchor() {
EditPart part = getViewer().getContents();
if (part instanceof ActivityDiagramPart) {
ActivityDiagramPart diagram = (ActivityDiagramPart) part;
if (diagram.getDirection() == PositionConstants.EAST) {
return new BottomAnchor(getFigure(), getAnchorOffset());
}
}
return new RightAnchor(getFigure(), getAnchorOffset());
}