if (DispelVisualIDRegistry
.getVisualID(incomingLink) == ConnectionExpressionEditPart.VISUAL_ID) {
DestroyElementRequest r = new DestroyElementRequest(
incomingLink.getElement(), false);
cmd.add(new DestroyElementCommand(r));
cmd.add(new DeleteCommand(getEditingDomain(),
incomingLink));
continue;
}
}
for (Iterator<?> it = cnode.getSourceEdges().iterator(); it
.hasNext();) {
Edge outgoingLink = (Edge) it.next();
if (DispelVisualIDRegistry
.getVisualID(outgoingLink) == ConnectionExpressionEditPart.VISUAL_ID) {
DestroyElementRequest r = new DestroyElementRequest(
outgoingLink.getElement(), false);
cmd.add(new DestroyElementCommand(r));
cmd.add(new DeleteCommand(getEditingDomain(),
outgoingLink));
continue;
}
}
cmd.add(new DestroyElementCommand(