/**
* @generated
*/
private static Collection<DispelLinkDescriptor> getOutgoingTypeModelFacetLinks_ConnectionExpression_4001(
ConnectionEnabledElement source) {
ConnectionStatement container = null;
// Find container element for the link.
// Climb up by containment hierarchy starting from the source
// and return the first element that is instance of the container class.
for (EObject element = source; element != null && container == null; element = element
.eContainer()) {
if (element instanceof ConnectionStatement) {
container = (ConnectionStatement) element;
}
}
if (container == null) {
return Collections.emptyList();
}
LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
ConnectionExpression link = container.getExpression();
if (ConnectionExpressionEditPart.VISUAL_ID != DispelVisualIDRegistry
.getLinkWithClassVisualID(link)) {
return result;
}
ConnectionEnabledElement dst = link.getValue();