@Override protected void copyContainment(EReference reference, EObject object, EObject copyEObject) { if (reference == EcorePackage.Literals.EMODEL_ELEMENT__EANNOTATIONS) { List<EAnnotation> result = ((EModelElement)copyEObject).getEAnnotations(); result.clear(); for (EAnnotation eAnnotation : ((EModelElement)object).getEAnnotations()) { if (!genModel.isSuppressedAnnotation(eAnnotation.getSource())) { result.add((EAnnotation)copy(eAnnotation)); } } return; } super.copyContainment(reference, object, copyEObject); } };
if (eReference.isContainment()) copyContainment(eReference, eObject, copyEObject);
if (eReference.isContainment()) copyContainment(eReference, eObject, copyEObject);