MultiDeleteInfo mi = new MultiDeleteInfo(
false, false, toBeDeleted.size());
for (Connection c : toBeDeleted) {
DeleteContext dc = new DeleteContext(c);
dc.setMultiDeleteInfo(mi);
IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc);
if (del.canDelete(dc)) {
del.delete(dc);
}
}
}
EcoreUtil.delete((LocalVariableStatement) obj);
}