ContainerShape gatewayShape = (ContainerShape) context.getPictogramElement();
for (Anchor anchor : gatewayShape.getAnchors()) {
for (Connection connection : anchor.getIncomingConnections() ) {
IUpdateContext updateCtx = new UpdateContext(connection);
IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
if (updateFeature != null) {
updateFeature.update(updateCtx);
}
}
for (Connection connection : anchor.getOutgoingConnections() ) {
IUpdateContext updateCtx = new UpdateContext(connection);
IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
if (updateFeature != null) {
updateFeature.update(updateCtx);
}
}
}
return super.update(context);