IFeatureProvider featureProvider = getDiagramEditor().getDiagramTypeProvider().getFeatureProvider();
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) {
IReason ret = updateFeature.updateNeeded(updateCtx);
if (ret.toBoolean())
return ret;
}
}
for (Connection connection : anchor.getOutgoingConnections() ) {
IUpdateContext updateCtx = new UpdateContext(connection);
IUpdateFeature updateFeature = featureProvider.getUpdateFeature(updateCtx);
if (updateFeature != null) {
IReason ret = updateFeature.updateNeeded(updateCtx);
if (ret.toBoolean())
return ret;