Java Code Examples for org.eclipse.emf.ecore.InternalEObject#eInverseRemove()

The following examples show how to use org.eclipse.emf.ecore.InternalEObject#eInverseRemove() . 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 vote down vote up
/**
 * <!-- 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: WorldImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public Credentials getDefaultDriverAccessCredentials ()
{
    if ( defaultDriverAccessCredentials != null && defaultDriverAccessCredentials.eIsProxy () )
    {
        InternalEObject oldDefaultDriverAccessCredentials = (InternalEObject)defaultDriverAccessCredentials;
        defaultDriverAccessCredentials = (Credentials)eResolveProxy ( oldDefaultDriverAccessCredentials );
        if ( defaultDriverAccessCredentials != oldDefaultDriverAccessCredentials )
        {
            InternalEObject newDefaultDriverAccessCredentials = (InternalEObject)defaultDriverAccessCredentials;
            NotificationChain msgs = oldDefaultDriverAccessCredentials.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_DRIVER_ACCESS_CREDENTIALS, null, null );
            if ( newDefaultDriverAccessCredentials.eInternalContainer () == null )
            {
                msgs = newDefaultDriverAccessCredentials.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_DRIVER_ACCESS_CREDENTIALS, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.WORLD__DEFAULT_DRIVER_ACCESS_CREDENTIALS, oldDefaultDriverAccessCredentials, defaultDriverAccessCredentials ) );
        }
    }
    return defaultDriverAccessCredentials;
}
 
Example 3
Source File: MasterServerImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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 - OsgiPackage.MASTER_SERVER__CUSTOMIZATION_PROFILE, null, null );
            if ( newCustomizationProfile.eInternalContainer () == null )
            {
                msgs = newCustomizationProfile.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.MASTER_SERVER__CUSTOMIZATION_PROFILE, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.MASTER_SERVER__CUSTOMIZATION_PROFILE, oldCustomizationProfile, customizationProfile ) );
        }
    }
    return customizationProfile;
}
 
Example 4
Source File: LocalImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public Credentials getLogonCredentials ()
{
    if ( logonCredentials != null && logonCredentials.eIsProxy () )
    {
        InternalEObject oldLogonCredentials = (InternalEObject)logonCredentials;
        logonCredentials = (Credentials)eResolveProxy ( oldLogonCredentials );
        if ( logonCredentials != oldLogonCredentials )
        {
            InternalEObject newLogonCredentials = (InternalEObject)logonCredentials;
            NotificationChain msgs = oldLogonCredentials.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.LOCAL__LOGON_CREDENTIALS, null, null );
            if ( newLogonCredentials.eInternalContainer () == null )
            {
                msgs = newLogonCredentials.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.LOCAL__LOGON_CREDENTIALS, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, GlobalizePackage.LOCAL__LOGON_CREDENTIALS, oldLogonCredentials, logonCredentials ) );
        }
    }
    return logonCredentials;
}
 
Example 5
Source File: ParserDriverImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- 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: AbstractEquinoxDriverImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public UserService getUserService ()
{
    if ( userService != null && userService.eIsProxy () )
    {
        InternalEObject oldUserService = (InternalEObject)userService;
        userService = (UserService)eResolveProxy ( oldUserService );
        if ( userService != oldUserService )
        {
            InternalEObject newUserService = (InternalEObject)userService;
            NotificationChain msgs = oldUserService.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.ABSTRACT_EQUINOX_DRIVER__USER_SERVICE, null, null );
            if ( newUserService.eInternalContainer () == null )
            {
                msgs = newUserService.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.ABSTRACT_EQUINOX_DRIVER__USER_SERVICE, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.ABSTRACT_EQUINOX_DRIVER__USER_SERVICE, oldUserService, userService ) );
        }
    }
    return userService;
}
 
Example 7
Source File: JdbcUserServiceImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- 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 8
Source File: DataMapperServiceImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public DataMapper getDataMapper ()
{
    if ( dataMapper != null && dataMapper.eIsProxy () )
    {
        InternalEObject oldDataMapper = (InternalEObject)dataMapper;
        dataMapper = (DataMapper)eResolveProxy ( oldDataMapper );
        if ( dataMapper != oldDataMapper )
        {
            InternalEObject newDataMapper = (InternalEObject)dataMapper;
            NotificationChain msgs = oldDataMapper.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.DATA_MAPPER_SERVICE__DATA_MAPPER, null, null );
            if ( newDataMapper.eInternalContainer () == null )
            {
                msgs = newDataMapper.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.DATA_MAPPER_SERVICE__DATA_MAPPER, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.DATA_MAPPER_SERVICE__DATA_MAPPER, oldDataMapper, dataMapper ) );
        }
    }
    return dataMapper;
}
 
Example 9
Source File: ValueArchiveServerImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public ArchiveConfiguration getDefaultArchiveconfiguration ()
{
    if ( defaultArchiveconfiguration != null && defaultArchiveconfiguration.eIsProxy () )
    {
        InternalEObject oldDefaultArchiveconfiguration = (InternalEObject)defaultArchiveconfiguration;
        defaultArchiveconfiguration = (ArchiveConfiguration)eResolveProxy ( oldDefaultArchiveconfiguration );
        if ( defaultArchiveconfiguration != oldDefaultArchiveconfiguration )
        {
            InternalEObject newDefaultArchiveconfiguration = (InternalEObject)defaultArchiveconfiguration;
            NotificationChain msgs = oldDefaultArchiveconfiguration.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.VALUE_ARCHIVE_SERVER__DEFAULT_ARCHIVECONFIGURATION, null, null );
            if ( newDefaultArchiveconfiguration.eInternalContainer () == null )
            {
                msgs = newDefaultArchiveconfiguration.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.VALUE_ARCHIVE_SERVER__DEFAULT_ARCHIVECONFIGURATION, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.VALUE_ARCHIVE_SERVER__DEFAULT_ARCHIVECONFIGURATION, oldDefaultArchiveconfiguration, defaultArchiveconfiguration ) );
        }
    }
    return defaultArchiveconfiguration;
}
 
Example 10
Source File: EndpointImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- 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;
}
 
Example 11
Source File: EquinoxApplicationImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public UserService getUserService ()
{
    if ( userService != null && userService.eIsProxy () )
    {
        InternalEObject oldUserService = (InternalEObject)userService;
        userService = (UserService)eResolveProxy ( oldUserService );
        if ( userService != oldUserService )
        {
            InternalEObject newUserService = (InternalEObject)userService;
            NotificationChain msgs = oldUserService.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.EQUINOX_APPLICATION__USER_SERVICE, null, null );
            if ( newUserService.eInternalContainer () == null )
            {
                msgs = newUserService.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.EQUINOX_APPLICATION__USER_SERVICE, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.EQUINOX_APPLICATION__USER_SERVICE, oldUserService, userService ) );
        }
    }
    return userService;
}
 
Example 12
Source File: ValueArchiveServerImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ArchiveConfiguration getDefaultArchiveConfiguration ()
{
    if ( defaultArchiveConfiguration != null && defaultArchiveConfiguration.eIsProxy () )
    {
        InternalEObject oldDefaultArchiveConfiguration = (InternalEObject)defaultArchiveConfiguration;
        defaultArchiveConfiguration = (ArchiveConfiguration)eResolveProxy ( oldDefaultArchiveConfiguration );
        if ( defaultArchiveConfiguration != oldDefaultArchiveConfiguration )
        {
            InternalEObject newDefaultArchiveConfiguration = (InternalEObject)defaultArchiveConfiguration;
            NotificationChain msgs = oldDefaultArchiveConfiguration.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.VALUE_ARCHIVE_SERVER__DEFAULT_ARCHIVE_CONFIGURATION, null, null );
            if ( newDefaultArchiveConfiguration.eInternalContainer () == null )
            {
                msgs = newDefaultArchiveConfiguration.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.VALUE_ARCHIVE_SERVER__DEFAULT_ARCHIVE_CONFIGURATION, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.VALUE_ARCHIVE_SERVER__DEFAULT_ARCHIVE_CONFIGURATION, oldDefaultArchiveConfiguration, defaultArchiveConfiguration ) );
        }
    }
    return defaultArchiveConfiguration;
}
 
Example 13
Source File: TransitionImpl.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- 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 14
Source File: ScriptItemImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CodeFragment getUpdateScript ()
{
    if ( updateScript != null && updateScript.eIsProxy () )
    {
        InternalEObject oldUpdateScript = (InternalEObject)updateScript;
        updateScript = (CodeFragment)eResolveProxy ( oldUpdateScript );
        if ( updateScript != oldUpdateScript )
        {
            InternalEObject newUpdateScript = (InternalEObject)updateScript;
            NotificationChain msgs = oldUpdateScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_ITEM__UPDATE_SCRIPT, null, null );
            if ( newUpdateScript.eInternalContainer () == null )
            {
                msgs = newUpdateScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_ITEM__UPDATE_SCRIPT, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SCRIPT_ITEM__UPDATE_SCRIPT, oldUpdateScript, updateScript ) );
        }
    }
    return updateScript;
}
 
Example 15
Source File: PlainTextImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public ValueConverterDefinition getValueConverter ()
{
    if ( valueConverter != null && valueConverter.eIsProxy () )
    {
        InternalEObject oldValueConverter = (InternalEObject)valueConverter;
        valueConverter = (ValueConverterDefinition)eResolveProxy ( oldValueConverter );
        if ( valueConverter != oldValueConverter )
        {
            InternalEObject newValueConverter = (InternalEObject)valueConverter;
            NotificationChain msgs = oldValueConverter.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ParserPackage.PLAIN_TEXT__VALUE_CONVERTER, null, null );
            if ( newValueConverter.eInternalContainer () == null )
            {
                msgs = newValueConverter.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ParserPackage.PLAIN_TEXT__VALUE_CONVERTER, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ParserPackage.PLAIN_TEXT__VALUE_CONVERTER, oldValueConverter, valueConverter ) );
        }
    }
    return valueConverter;
}
 
Example 16
Source File: MsiDeploymentMechanismImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- 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 17
Source File: CommonDriverImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
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 - InfrastructurePackage.COMMON_DRIVER__PASSWORD, null, null );
            if ( newPassword.eInternalContainer () == null )
            {
                msgs = newPassword.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.COMMON_DRIVER__PASSWORD, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.COMMON_DRIVER__PASSWORD, oldPassword, password ) );
        }
    }
    return password;
}
 
Example 18
Source File: VariableImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- 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;
}
 
Example 19
Source File: ScriptSeriesImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public LineProperties getLineProperties ()
{
    if ( lineProperties != null && lineProperties.eIsProxy () )
    {
        InternalEObject oldLineProperties = (InternalEObject)lineProperties;
        lineProperties = (LineProperties)eResolveProxy ( oldLineProperties );
        if ( lineProperties != oldLineProperties )
        {
            InternalEObject newLineProperties = (InternalEObject)lineProperties;
            NotificationChain msgs = oldLineProperties.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ChartPackage.SCRIPT_SERIES__LINE_PROPERTIES, null, null );
            if ( newLineProperties.eInternalContainer () == null )
            {
                msgs = newLineProperties.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ChartPackage.SCRIPT_SERIES__LINE_PROPERTIES, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ChartPackage.SCRIPT_SERIES__LINE_PROPERTIES, oldLineProperties, lineProperties ) );
        }
    }
    return lineProperties;
}
 
Example 20
Source File: ArchiveSeriesImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public LineProperties getLineProperties ()
{
    if ( lineProperties != null && lineProperties.eIsProxy () )
    {
        InternalEObject oldLineProperties = (InternalEObject)lineProperties;
        lineProperties = (LineProperties)eResolveProxy ( oldLineProperties );
        if ( lineProperties != oldLineProperties )
        {
            InternalEObject newLineProperties = (InternalEObject)lineProperties;
            NotificationChain msgs = oldLineProperties.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ChartPackage.ARCHIVE_SERIES__LINE_PROPERTIES, null, null );
            if ( newLineProperties.eInternalContainer () == null )
            {
                msgs = newLineProperties.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ChartPackage.ARCHIVE_SERIES__LINE_PROPERTIES, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ChartPackage.ARCHIVE_SERIES__LINE_PROPERTIES, oldLineProperties, lineProperties ) );
        }
    }
    return lineProperties;
}