public EObject eContainer() { InternalEObject result = eInternalContainer(); /* * if (result != null) * { * if (result.eIsProxy()) * { * EObject resolved = eResolveProxy(result); * if (resolved != result) * { * int eContainerFeatureID = eContainerFeatureID(); * NotificationChain notificationChain = eBasicRemoveFromContainer(null); * eBasicSetContainer((InternalEObject)resolved, eContainerFeatureID); * if (notificationChain != null) * { * notificationChain.dispatch(); * } * if (eNotificationRequired() && eContainerFeatureID > EOPPOSITE_FEATURE_BASE) * { * eNotify(new ENotificationImpl(this, Notification.RESOLVE, eContainerFeatureID, result, resolved)); * } * return resolved; * } * } * } */ return(result); //return this._eContainer; }
public override NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.MODIFIER_BODYDECLARATION: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetBodyDeclaration((BodyDeclaration)otherEnd, msgs)); case Java_PackageImpl.MODIFIER_VARIABLEDECLARATIONSTATEMENT: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetVariableDeclarationStatement((VariableDeclarationStatement)otherEnd, msgs)); case Java_PackageImpl.MODIFIER_SINGLEVARIABLEDECLARATION: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetSingleVariableDeclaration((SingleVariableDeclaration)otherEnd, msgs)); case Java_PackageImpl.MODIFIER_VARIABLEDECLARATIONEXPRESSION: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetVariableDeclarationExpression((VariableDeclarationExpression)otherEnd, msgs)); } return(base.eInverseAdd(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TestmodelPackageImpl.SOURCE_MANY_MANY_NO_NO: return(many_many_no_no.basicAdd((Target)otherEnd, msgs)); case TestmodelPackageImpl.SOURCE_ONE_ONE_NO_YES: if (_one_one_no_yes != null) { msgs = ((InternalEObject)_one_one_no_yes).eInverseRemove(this, TestmodelPackageImpl.SOURCE_ONE_ONE_NO_YES, typeof(Target), msgs); } return(basicSetOne_one_no_yes((Target)otherEnd, msgs)); case TestmodelPackageImpl.SOURCE_ONE_MANY_NO_NO: return(one_many_no_no.basicAdd((Target)otherEnd, msgs)); case TestmodelPackageImpl.SOURCE_ONE_MANY_NO_YES: return(one_many_no_yes.basicAdd((Target)otherEnd, msgs)); case TestmodelPackageImpl.SOURCE_ONE_ONE_NO_NO: if (_one_one_no_no != null) { msgs = ((InternalEObject)_one_one_no_no).eInverseRemove(this, TestmodelPackageImpl.SOURCE_ONE_ONE_NO_NO, typeof(Target), msgs); } return(basicSetOne_one_no_no((Target)otherEnd, msgs)); } return(base.eInverseAdd(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.PACKAGE_OWNEDELEMENTS: return(ownedElements.basicAdd((AbstractTypeDeclaration)otherEnd, msgs)); case Java_PackageImpl.PACKAGE_OWNEDPACKAGES: return(ownedPackages.basicAdd((Package)otherEnd, msgs)); case Java_PackageImpl.PACKAGE_PACKAGE: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetPackage((Package)otherEnd, msgs)); case Java_PackageImpl.PACKAGE_MODEL: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetModel((Model)otherEnd, msgs)); case Java_PackageImpl.PACKAGE_USAGESINPACKAGEACCESS: return(usagesInPackageAccess.basicAdd((PackageAccess)otherEnd, msgs)); } return(base.eInverseAdd(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.BODYDECLARATION_ABSTRACTTYPEDECLARATION: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetAbstractTypeDeclaration((AbstractTypeDeclaration)otherEnd, msgs)); case Java_PackageImpl.BODYDECLARATION_MODIFIER: if (_modifier != null) { msgs = ((InternalEObject)_modifier).eInverseRemove(this, Java_PackageImpl.BODYDECLARATION_MODIFIER, typeof(Modifier), msgs); } return(basicSetModifier((Modifier)otherEnd, msgs)); case Java_PackageImpl.BODYDECLARATION_ANONYMOUSCLASSDECLARATIONOWNER: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetAnonymousClassDeclarationOwner((AnonymousClassDeclaration)otherEnd, msgs)); } return(base.eInverseAdd(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.SINGLEVARIABLEDECLARATION_CATCHCLAUSE: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetCatchClause((CatchClause)otherEnd, msgs)); case Java_PackageImpl.SINGLEVARIABLEDECLARATION_MODIFIER: if (_modifier != null) { msgs = ((InternalEObject)_modifier).eInverseRemove(this, Java_PackageImpl.SINGLEVARIABLEDECLARATION_MODIFIER, typeof(Modifier), msgs); } return(basicSetModifier((Modifier)otherEnd, msgs)); case Java_PackageImpl.SINGLEVARIABLEDECLARATION_METHODDECLARATION: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetMethodDeclaration((AbstractMethodDeclaration)otherEnd, msgs)); case Java_PackageImpl.SINGLEVARIABLEDECLARATION_ENHANCEDFORSTATEMENT: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetEnhancedForStatement((EnhancedForStatement)otherEnd, msgs)); } return(base.eInverseAdd(otherEnd, featureID, msgs)); }
public NotificationChain inverseRemove(T element, NotificationChain notifications) { InternalEObject internalEObject = (InternalEObject)element; if (hasNavigableInverse()) { if (!hasInstanceClass()) { return (internalEObject.eInverseRemove (owner, internalEObject.eClass().getFeatureID(getInverseEReference()), null, notifications)); } else { return (internalEObject.eInverseRemove (owner, this.oppositeFeatureId, getInverseFeatureClass(), notifications)); } } else { return (internalEObject.eInverseRemove (owner, BasicEObjectImpl.EOPPOSITE_FEATURE_BASE - featureId, null, notifications)); } }
public virtual NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { //return eDynamicInverseAdd(otherEnd, featureID, msgs); //call generated function return(msgs); }
public override NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackageImpl.EPACKAGE_ESUPERPACKAGE: if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } return(basicSetESuperPackage((EPackage)otherEnd, msgs)); case EcorePackageImpl.EPACKAGE_ECLASSIFIERS: return(eClassifiers.basicAdd((EClassifier)otherEnd, msgs)); case EcorePackageImpl.EPACKAGE_EFACTORYINSTANCE: if (_eFactoryInstance != null) { msgs = ((InternalEObject)_eFactoryInstance).eInverseRemove(this, EcorePackageImpl.EPACKAGE_EFACTORYINSTANCE, typeof(EFactory), msgs); } return(basicSetEFactoryInstance((EFactory)otherEnd, msgs)); case EcorePackageImpl.EPACKAGE_ESUBPACKAGES: return(eSubpackages.basicAdd((EPackage)otherEnd, msgs)); } return(base.eInverseAdd(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.METHODREF_METHOD: return(basicSetMethod(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackageImpl.ECLASSIFIER_EPACKAGE: return(basicSetEPackage(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.BREAKSTATEMENT_LABEL: return(basicSetLabel(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackageImpl.EANNOTATION_EMODELELEMENT: return(basicSetEModelElement(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackageImpl.EENUMLITERAL_EENUM: return(basicSetEEnum(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.MODEL_OWNEDELEMENTS: return(ownedElements.basicRemove((Package)otherEnd, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.IMPORTDECLARATION_IMPORTEDELEMENT: return(basicSetImportedElement(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.VARIABLEDECLARATIONFRAGMENT_VARIABLESCONTAINER: return(basicSetVariablesContainer(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.ANNOTATIONMEMBERVALUEPAIR_MEMBER: return(basicSetMember(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.VARIABLEDECLARATION_USAGEINVARIABLEACCESS: return(usageInVariableAccess.basicRemove((SingleVariableAccess)otherEnd, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackageImpl.EPARAMETER_EOPERATION: return(basicSetEOperation(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.ENHANCEDFORSTATEMENT_PARAMETER: return(basicSetParameter(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.TYPEACCESS_TYPE: return(basicSetType(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.CATCHCLAUSE_EXCEPTION: return(basicSetException(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.NAMEDELEMENT_USAGESINIMPORTS: return(usagesInImports.basicRemove((ImportDeclaration)otherEnd, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackageImpl.ESTRUCTURALFEATURE_ECONTAININGCLASS: return(basicSetEContainingClass(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.TYPE_USAGESINTYPEACCESS: return(usagesInTypeAccess.basicRemove((TypeAccess)otherEnd, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.SINGLEVARIABLEACCESS_VARIABLE: return(basicSetVariable(null, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EcorePackageImpl.EMODELELEMENT_EANNOTATIONS: return(eAnnotations.basicRemove((EAnnotation)otherEnd, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.FIELDDECLARATION_FRAGMENTS: return(fragments.basicRemove((VariableDeclarationFragment)otherEnd, msgs)); } return(base.eInverseRemove(otherEnd, featureID, msgs)); }
public override NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Java_PackageImpl.ANNOTATIONTYPEMEMBERDECLARATION_USAGES: return(usages.basicAdd((AnnotationMemberValuePair)otherEnd, msgs)); } return(base.eInverseAdd(otherEnd, featureID, msgs)); }