本文整理汇总了Java中org.eclipse.emf.ecore.InternalEObject.eInverseAdd方法的典型用法代码示例。如果您正苦于以下问题:Java InternalEObject.eInverseAdd方法的具体用法?Java InternalEObject.eInverseAdd怎么用?Java InternalEObject.eInverseAdd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.emf.ecore.InternalEObject
的用法示例。
在下文中一共展示了InternalEObject.eInverseAdd方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getScript
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例2: getLineProperties
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例3: getLineProperties
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例4: getDefaultLogonCredentials
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Credentials getDefaultLogonCredentials ()
{
if ( defaultLogonCredentials != null && defaultLogonCredentials.eIsProxy () )
{
InternalEObject oldDefaultLogonCredentials = (InternalEObject)defaultLogonCredentials;
defaultLogonCredentials = (Credentials)eResolveProxy ( oldDefaultLogonCredentials );
if ( defaultLogonCredentials != oldDefaultLogonCredentials )
{
InternalEObject newDefaultLogonCredentials = (InternalEObject)defaultLogonCredentials;
NotificationChain msgs = oldDefaultLogonCredentials.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__DEFAULT_LOGON_CREDENTIALS, null, null );
if ( newDefaultLogonCredentials.eInternalContainer () == null )
{
msgs = newDefaultLogonCredentials.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__DEFAULT_LOGON_CREDENTIALS, null, msgs );
}
if ( msgs != null )
msgs.dispatch ();
if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, GlobalizePackage.GLOBAL__DEFAULT_LOGON_CREDENTIALS, oldDefaultLogonCredentials, defaultLogonCredentials ) );
}
}
return defaultLogonCredentials;
}
示例5: getScript
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例6: getInitScript
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例7: getUpdateScript
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Script getUpdateScript ()
{
if ( updateScript != null && updateScript.eIsProxy () )
{
InternalEObject oldUpdateScript = (InternalEObject)updateScript;
updateScript = (Script)eResolveProxy ( oldUpdateScript );
if ( updateScript != oldUpdateScript )
{
InternalEObject newUpdateScript = (InternalEObject)updateScript;
NotificationChain msgs = oldUpdateScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__UPDATE_SCRIPT, null, null );
if ( newUpdateScript.eInternalContainer () == null )
{
msgs = newUpdateScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.SCRIPT_MODULE__UPDATE_SCRIPT, null, msgs );
}
if ( msgs != null )
msgs.dispatch ();
if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.SCRIPT_MODULE__UPDATE_SCRIPT, oldUpdateScript, updateScript ) );
}
}
return updateScript;
}
示例8: getCustomizationProfile
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例9: getDefaultCredentials
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Credentials getDefaultCredentials ()
{
if ( defaultCredentials != null && defaultCredentials.eIsProxy () )
{
InternalEObject oldDefaultCredentials = (InternalEObject)defaultCredentials;
defaultCredentials = (Credentials)eResolveProxy ( oldDefaultCredentials );
if ( defaultCredentials != oldDefaultCredentials )
{
InternalEObject newDefaultCredentials = (InternalEObject)defaultCredentials;
NotificationChain msgs = oldDefaultCredentials.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, null, null );
if ( newDefaultCredentials.eInternalContainer () == null )
{
msgs = newDefaultCredentials.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, null, msgs );
}
if ( msgs != null )
msgs.dispatch ();
if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, oldDefaultCredentials, defaultCredentials ) );
}
}
return defaultCredentials;
}
示例10: getSource
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InputDefinition getSource ()
{
if ( source != null && source.eIsProxy () )
{
InternalEObject oldSource = (InternalEObject)source;
source = (InputDefinition)eResolveProxy ( oldSource );
if ( source != oldSource )
{
InternalEObject newSource = (InternalEObject)source;
NotificationChain msgs = oldSource.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.DELTA_VALUE__SOURCE, null, null );
if ( newSource.eInternalContainer () == null )
{
msgs = newSource.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ComponentPackage.DELTA_VALUE__SOURCE, null, msgs );
}
if ( msgs != null )
msgs.dispatch ();
if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ComponentPackage.DELTA_VALUE__SOURCE, oldSource, source ) );
}
}
return source;
}
示例11: getLocalPlatform
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例12: getCustomizationProfile
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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 - ModbusPackage.MODBUS_DRIVER__CUSTOMIZATION_PROFILE, null, null );
if ( newCustomizationProfile.eInternalContainer () == null )
{
msgs = newCustomizationProfile.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - ModbusPackage.MODBUS_DRIVER__CUSTOMIZATION_PROFILE, null, msgs );
}
if ( msgs != null )
msgs.dispatch ();
if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ModbusPackage.MODBUS_DRIVER__CUSTOMIZATION_PROFILE, oldCustomizationProfile, customizationProfile ) );
}
}
return customizationProfile;
}
示例13: getLocalPull
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例14: getDataMapper
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- 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;
}
示例15: getTimer
import org.eclipse.emf.ecore.InternalEObject; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ScriptTimer getTimer ()
{
if ( timer != null && timer.eIsProxy () )
{
InternalEObject oldTimer = (InternalEObject)timer;
timer = (ScriptTimer)eResolveProxy ( oldTimer );
if ( timer != oldTimer )
{
InternalEObject newTimer = (InternalEObject)timer;
NotificationChain msgs = oldTimer.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_ITEM__TIMER, null, null );
if ( newTimer.eInternalContainer () == null )
{
msgs = newTimer.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_ITEM__TIMER, null, msgs );
}
if ( msgs != null )
msgs.dispatch ();
if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SCRIPT_ITEM__TIMER, oldTimer, timer ) );
}
}
return timer;
}