/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Type getType () { if ( type != null && type.eIsProxy () ) { InternalEObject oldType = (InternalEObject)type; type = (Type)eResolveProxy ( oldType ); if ( type != oldType ) { InternalEObject newType = (InternalEObject)type; NotificationChain msgs = oldType.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - MemoryPackage.VARIABLE__TYPE, null, null ); if ( newType.eInternalContainer () == null ) { msgs = newType.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - MemoryPackage.VARIABLE__TYPE, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, MemoryPackage.VARIABLE__TYPE, oldType, type ) ); } } return type; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Type getType () { if ( type != null && type.eIsProxy () ) { InternalEObject oldType = (InternalEObject)type; type = (Type)eResolveProxy ( oldType ); if ( type != oldType ) { InternalEObject newType = (InternalEObject)type; NotificationChain msgs = oldType.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - MemoryPackage.VARIABLE__TYPE, null, null ); if ( newType.eInternalContainer () == null ) { msgs = newType.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - MemoryPackage.VARIABLE__TYPE, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, MemoryPackage.VARIABLE__TYPE, oldType, type ) ); } } return type; }