if (src instanceof ConnectionInitialization
&& dst instanceof IdentifierReference) {
IdentifierReference dst_i = (IdentifierReference) dst;
ConnectionInitialization src_i = (ConnectionInitialization) src;
/* |- X -| => PE2.in */
if (src_i.getConnectionElement() instanceof IdentifierReference
&& dst_i.getNext() != null
&& dst_i.getNext() instanceof IdentifierReference) {
IdentifierReference ir = (IdentifierReference) src_i
.getConnectionElement();
IdentifierReference dst_n = (IdentifierReference) dst_i
.getNext();
if (dst_n.getTarget() instanceof ProcessingElementParameter
&& ir.getTarget() instanceof LocalVariable) {
result.add(new DispelLinkDescriptor(((LocalVariable) ir
.getTarget()), ((ProcessingElementParameter) dst_n
.getTarget()), link,
DispelElementTypes.ConnectionExpression_4001,
ConnectionExpressionEditPart.VISUAL_ID));
}
}
/* |- 100 -| => PE2.in */
if (src_i.getConnectionElement() instanceof Literal
&& dst_i.getNext() != null
&& dst_i.getNext() instanceof IdentifierReference) {
IdentifierReference dst_n = (IdentifierReference) dst_i
.getNext();
if (dst_n.getTarget() instanceof ProcessingElementParameter) {
result.add(new DispelLinkDescriptor(src,
((ProcessingElementParameter) dst_n.getTarget()),
link, DispelElementTypes.ConnectionExpression_4001,
ConnectionExpressionEditPart.VISUAL_ID));
}
}
/* |- "A" -| => PE2.in */
if (src_i.getConnectionElement() instanceof StringReference
&& dst_i.getNext() != null
&& dst_i.getNext() instanceof IdentifierReference) {
IdentifierReference dst_n = (IdentifierReference) dst_i
.getNext();
if (dst_n.getTarget() instanceof ProcessingElementParameter) {
result.add(new DispelLinkDescriptor(src,
((ProcessingElementParameter) dst_n.getTarget()),
link, DispelElementTypes.ConnectionExpression_4001,
ConnectionExpressionEditPart.VISUAL_ID));
}
}
/* |- ["A","B"] -| => PE2.in */
if (src_i.getConnectionElement() instanceof ArrayInitializationByElements
&& dst_i.getNext() != null
&& dst_i.getNext() instanceof IdentifierReference) {
IdentifierReference dst_n = (IdentifierReference) dst_i
.getNext();