/** Update the target decoration */ private void updateTargetDecoration() { Association association = (Association) Utils.getElement(getGraphEdge()); boolean isNavigable = false; if (association.getSecondEnd() != null) { isNavigable = association.getSecondEnd().isNavigable(); } if (!isNavigable) { if (association.getAssociationType() == AssociationType.COMPOSITION) { targetDecor = createCompositionDecoration(); } else if (association.getAssociationType() == AssociationType.AGGREGATION) { targetDecor = createAggregationDecoration(); } else { targetDecor = null; } } else { targetDecor = createNavigableDecoration(); } ((PolylineConnection) figure).setTargetDecoration(targetDecor); }