/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public P2Platform getSharedPlatform () { if ( sharedPlatform != null && sharedPlatform.eIsProxy () ) { InternalEObject oldSharedPlatform = (InternalEObject)sharedPlatform; sharedPlatform = (P2Platform)eResolveProxy ( oldSharedPlatform ); if ( sharedPlatform != oldSharedPlatform ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__SHARED_PLATFORM, oldSharedPlatform, sharedPlatform ) ); } } return sharedPlatform; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public P2Platform getLocalPlatform () { if ( localPlatform != null && localPlatform.eIsProxy () ) { InternalEObject oldLocalPlatform = (InternalEObject)localPlatform; localPlatform = (P2Platform)eResolveProxy ( oldLocalPlatform ); if ( localPlatform != oldLocalPlatform ) { InternalEObject newLocalPlatform = (InternalEObject)localPlatform; NotificationChain msgs = oldLocalPlatform.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__LOCAL_PLATFORM, null, null ); if ( newLocalPlatform.eInternalContainer () == null ) { msgs = newLocalPlatform.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__LOCAL_PLATFORM, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__LOCAL_PLATFORM, oldLocalPlatform, localPlatform ) ); } } return localPlatform; }