Java Code Examples for org.eclipse.emf.ecore.InternalEObject#eInverseAdd()
The following examples show how to use
org.eclipse.emf.ecore.InternalEObject#eInverseAdd() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RestInterceptorImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Selector getSelector () { if ( selector != null && selector.eIsProxy () ) { InternalEObject oldSelector = (InternalEObject)selector; selector = (Selector)eResolveProxy ( oldSelector ); if ( selector != oldSelector ) { InternalEObject newSelector = (InternalEObject)selector; NotificationChain msgs = oldSelector.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.REST_INTERCEPTOR__SELECTOR, null, null ); if ( newSelector.eInternalContainer () == null ) { msgs = newSelector.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.REST_INTERCEPTOR__SELECTOR, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.REST_INTERCEPTOR__SELECTOR, oldSelector, selector ) ); } } return selector; }
Example 2
Source File: TransitionImpl.java From statecharts with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Effect getEffect() { if (effect != null && effect.eIsProxy()) { InternalEObject oldEffect = (InternalEObject)effect; effect = (Effect)eResolveProxy(oldEffect); if (effect != oldEffect) { InternalEObject newEffect = (InternalEObject)effect; NotificationChain msgs = oldEffect.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.TRANSITION__EFFECT, null, null); if (newEffect.eInternalContainer() == null) { msgs = newEffect.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.TRANSITION__EFFECT, null, msgs); } if (msgs != null) msgs.dispatch(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, SGraphPackage.TRANSITION__EFFECT, oldEffect, effect)); } } return effect; }
Example 3
Source File: ScriptTimerImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public CodeFragment getScript () { if ( script != null && script.eIsProxy () ) { InternalEObject oldScript = (InternalEObject)script; script = (CodeFragment)eResolveProxy ( oldScript ); if ( script != oldScript ) { InternalEObject newScript = (InternalEObject)script; NotificationChain msgs = oldScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_TIMER__SCRIPT, null, null ); if ( newScript.eInternalContainer () == null ) { msgs = newScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_TIMER__SCRIPT, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SCRIPT_TIMER__SCRIPT, oldScript, script ) ); } } return script; }
Example 4
Source File: MsiDeploymentMechanismImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- 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; }
Example 5
Source File: ParserDriverImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Profile getCustomizationProfile () { if ( customizationProfile != null && customizationProfile.eIsProxy () ) { InternalEObject oldCustomizationProfile = (InternalEObject)customizationProfile; customizationProfile = (Profile)eResolveProxy ( oldCustomizationProfile ); if ( customizationProfile != oldCustomizationProfile ) { InternalEObject newCustomizationProfile = (InternalEObject)customizationProfile; NotificationChain msgs = oldCustomizationProfile.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ParserPackage.PARSER_DRIVER__CUSTOMIZATION_PROFILE, null, null ); if ( newCustomizationProfile.eInternalContainer () == null ) { msgs = newCustomizationProfile.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ParserPackage.PARSER_DRIVER__CUSTOMIZATION_PROFILE, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ParserPackage.PARSER_DRIVER__CUSTOMIZATION_PROFILE, oldCustomizationProfile, customizationProfile ) ); } } return customizationProfile; }
Example 6
Source File: ScriptEventHandlerImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public JavaScript getScript () { if ( script != null && script.eIsProxy () ) { InternalEObject oldScript = (InternalEObject)script; script = (JavaScript)eResolveProxy ( oldScript ); if ( script != oldScript ) { InternalEObject newScript = (InternalEObject)script; NotificationChain msgs = oldScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_EVENT_HANDLER__SCRIPT, null, null ); if ( newScript.eInternalContainer () == null ) { msgs = newScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_EVENT_HANDLER__SCRIPT, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SCRIPT_EVENT_HANDLER__SCRIPT, oldScript, script ) ); } } return script; }
Example 7
Source File: JdbcDriverInstanceImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public RootType getRoot () { if ( root != null && root.eIsProxy () ) { InternalEObject oldRoot = (InternalEObject)root; root = (RootType)eResolveProxy ( oldRoot ); if ( root != oldRoot ) { InternalEObject newRoot = (InternalEObject)root; NotificationChain msgs = oldRoot.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - JdbcPackage.JDBC_DRIVER_INSTANCE__ROOT, null, null ); if ( newRoot.eInternalContainer () == null ) { msgs = newRoot.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - JdbcPackage.JDBC_DRIVER_INSTANCE__ROOT, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, JdbcPackage.JDBC_DRIVER_INSTANCE__ROOT, oldRoot, root ) ); } } return root; }
Example 8
Source File: GlobalImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public PullEvents getLocalPull () { if ( localPull != null && localPull.eIsProxy () ) { InternalEObject oldLocalPull = (InternalEObject)localPull; localPull = (PullEvents)eResolveProxy ( oldLocalPull ); if ( localPull != oldLocalPull ) { InternalEObject newLocalPull = (InternalEObject)localPull; NotificationChain msgs = oldLocalPull.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__LOCAL_PULL, null, null ); if ( newLocalPull.eInternalContainer () == null ) { msgs = newLocalPull.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__LOCAL_PULL, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, GlobalizePackage.GLOBAL__LOCAL_PULL, oldLocalPull, localPull ) ); } } return localPull; }
Example 9
Source File: BufferedValueImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public InputDefinition getInput () { if ( input != null && input.eIsProxy () ) { InternalEObject oldInput = (InternalEObject)input; input = (InputDefinition)eResolveProxy ( oldInput ); if ( input != oldInput ) { InternalEObject newInput = (InternalEObject)input; NotificationChain msgs = oldInput.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.BUFFERED_VALUE__INPUT, null, null ); if ( newInput.eInternalContainer () == null ) { msgs = newInput.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.BUFFERED_VALUE__INPUT, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.BUFFERED_VALUE__INPUT, oldInput, input ) ); } } return input; }
Example 10
Source File: AttributeImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ScalarType getType () { if ( type != null && type.eIsProxy () ) { InternalEObject oldType = (InternalEObject)type; type = (ScalarType)eResolveProxy ( oldType ); if ( type != oldType ) { InternalEObject newType = (InternalEObject)type; NotificationChain msgs = oldType.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - MemoryPackage.ATTRIBUTE__TYPE, null, null ); if ( newType.eInternalContainer () == null ) { msgs = newType.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - MemoryPackage.ATTRIBUTE__TYPE, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, MemoryPackage.ATTRIBUTE__TYPE, oldType, type ) ); } } return type; }
Example 11
Source File: JdbcUserServiceImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public org.eclipse.scada.configuration.world.osgi.JdbcUserService getImplementation () { if ( implementation != null && implementation.eIsProxy () ) { InternalEObject oldImplementation = (InternalEObject)implementation; implementation = (org.eclipse.scada.configuration.world.osgi.JdbcUserService)eResolveProxy ( oldImplementation ); if ( implementation != oldImplementation ) { InternalEObject newImplementation = (InternalEObject)implementation; NotificationChain msgs = oldImplementation.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.JDBC_USER_SERVICE__IMPLEMENTATION, null, null ); if ( newImplementation.eInternalContainer () == null ) { msgs = newImplementation.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.JDBC_USER_SERVICE__IMPLEMENTATION, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.JDBC_USER_SERVICE__IMPLEMENTATION, oldImplementation, implementation ) ); } } return implementation; }
Example 12
Source File: TransitionImpl.java From statecharts with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Trigger getTrigger() { if (trigger != null && trigger.eIsProxy()) { InternalEObject oldTrigger = (InternalEObject)trigger; trigger = (Trigger)eResolveProxy(oldTrigger); if (trigger != oldTrigger) { InternalEObject newTrigger = (InternalEObject)trigger; NotificationChain msgs = oldTrigger.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.TRANSITION__TRIGGER, null, null); if (newTrigger.eInternalContainer() == null) { msgs = newTrigger.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.TRANSITION__TRIGGER, null, msgs); } if (msgs != null) msgs.dispatch(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, SGraphPackage.TRANSITION__TRIGGER, oldTrigger, trigger)); } } return trigger; }
Example 13
Source File: ItemImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ItemInformation getInformation () { if ( information != null && information.eIsProxy () ) { InternalEObject oldInformation = (InternalEObject)information; information = (ItemInformation)eResolveProxy ( oldInformation ); if ( information != oldInformation ) { InternalEObject newInformation = (InternalEObject)information; NotificationChain msgs = oldInformation.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.ITEM__INFORMATION, null, null ); if ( newInformation.eInternalContainer () == null ) { msgs = newInformation.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.ITEM__INFORMATION, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.ITEM__INFORMATION, oldInformation, information ) ); } } return information; }
Example 14
Source File: ReactionImpl.java From statecharts with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Effect getEffect() { if (effect != null && effect.eIsProxy()) { InternalEObject oldEffect = (InternalEObject)effect; effect = (Effect)eResolveProxy(oldEffect); if (effect != oldEffect) { InternalEObject newEffect = (InternalEObject)effect; NotificationChain msgs = oldEffect.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.REACTION__EFFECT, null, null); if (newEffect.eInternalContainer() == null) { msgs = newEffect.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.REACTION__EFFECT, null, msgs); } if (msgs != null) msgs.dispatch(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, SGraphPackage.REACTION__EFFECT, oldEffect, effect)); } } return effect; }
Example 15
Source File: ExternalDriverImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Credentials getAccessCredentials () { if ( accessCredentials != null && accessCredentials.eIsProxy () ) { InternalEObject oldAccessCredentials = (InternalEObject)accessCredentials; accessCredentials = (Credentials)eResolveProxy ( oldAccessCredentials ); if ( accessCredentials != oldAccessCredentials ) { InternalEObject newAccessCredentials = (InternalEObject)accessCredentials; NotificationChain msgs = oldAccessCredentials.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.EXTERNAL_DRIVER__ACCESS_CREDENTIALS, null, null ); if ( newAccessCredentials.eInternalContainer () == null ) { msgs = newAccessCredentials.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.EXTERNAL_DRIVER__ACCESS_CREDENTIALS, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.EXTERNAL_DRIVER__ACCESS_CREDENTIALS, oldAccessCredentials, accessCredentials ) ); } } return accessCredentials; }
Example 16
Source File: ScriptModuleImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Script getInitScript () { if ( initScript != null && initScript.eIsProxy () ) { InternalEObject oldInitScript = (InternalEObject)initScript; initScript = (Script)eResolveProxy ( oldInitScript ); if ( initScript != oldInitScript ) { InternalEObject newInitScript = (InternalEObject)initScript; NotificationChain msgs = oldInitScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__INIT_SCRIPT, null, null ); if ( newInitScript.eInternalContainer () == null ) { msgs = newInitScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__INIT_SCRIPT, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.SCRIPT_MODULE__INIT_SCRIPT, oldInitScript, initScript ) ); } } return initScript; }
Example 17
Source File: ReactionImpl.java From statecharts with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Trigger getTrigger() { if (trigger != null && trigger.eIsProxy()) { InternalEObject oldTrigger = (InternalEObject)trigger; trigger = (Trigger)eResolveProxy(oldTrigger); if (trigger != oldTrigger) { InternalEObject newTrigger = (InternalEObject)trigger; NotificationChain msgs = oldTrigger.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.REACTION__TRIGGER, null, null); if (newTrigger.eInternalContainer() == null) { msgs = newTrigger.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SGraphPackage.REACTION__TRIGGER, null, msgs); } if (msgs != null) msgs.dispatch(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, SGraphPackage.REACTION__TRIGGER, oldTrigger, trigger)); } } return trigger; }
Example 18
Source File: WorldImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public PasswordCredentials getDefaultDriverPassword () { if ( defaultDriverPassword != null && defaultDriverPassword.eIsProxy () ) { InternalEObject oldDefaultDriverPassword = (InternalEObject)defaultDriverPassword; defaultDriverPassword = (PasswordCredentials)eResolveProxy ( oldDefaultDriverPassword ); if ( defaultDriverPassword != oldDefaultDriverPassword ) { InternalEObject newDefaultDriverPassword = (InternalEObject)defaultDriverPassword; NotificationChain msgs = oldDefaultDriverPassword.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_DRIVER_PASSWORD, null, null ); if ( newDefaultDriverPassword.eInternalContainer () == null ) { msgs = newDefaultDriverPassword.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_DRIVER_PASSWORD, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.WORLD__DEFAULT_DRIVER_PASSWORD, oldDefaultDriverPassword, defaultDriverPassword ) ); } } return defaultDriverPassword; }
Example 19
Source File: CommonDriverImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public PasswordCredentials getPassword () { if ( password != null && password.eIsProxy () ) { InternalEObject oldPassword = (InternalEObject)password; password = (PasswordCredentials)eResolveProxy ( oldPassword ); if ( password != oldPassword ) { InternalEObject newPassword = (InternalEObject)password; NotificationChain msgs = oldPassword.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - WorldPackage.COMMON_DRIVER__PASSWORD, null, null ); if ( newPassword.eInternalContainer () == null ) { msgs = newPassword.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - WorldPackage.COMMON_DRIVER__PASSWORD, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, WorldPackage.COMMON_DRIVER__PASSWORD, oldPassword, password ) ); } } return password; }
Example 20
Source File: EndpointImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ServiceBinding getBoundService () { if ( boundService != null && boundService.eIsProxy () ) { InternalEObject oldBoundService = (InternalEObject)boundService; boundService = (ServiceBinding)eResolveProxy ( oldBoundService ); if ( boundService != oldBoundService ) { InternalEObject newBoundService = (InternalEObject)boundService; NotificationChain msgs = oldBoundService.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - WorldPackage.ENDPOINT__BOUND_SERVICE, null, null ); if ( newBoundService.eInternalContainer () == null ) { msgs = newBoundService.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - WorldPackage.ENDPOINT__BOUND_SERVICE, null, msgs ); } if ( msgs != null ) msgs.dispatch (); if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, WorldPackage.ENDPOINT__BOUND_SERVICE, oldBoundService, boundService ) ); } } return boundService; }