本文整理汇总了Java中org.eclipse.emf.ecore.impl.ENotificationImpl类的典型用法代码示例。如果您正苦于以下问题:Java ENotificationImpl类的具体用法?Java ENotificationImpl怎么用?Java ENotificationImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ENotificationImpl类属于org.eclipse.emf.ecore.impl包,在下文中一共展示了ENotificationImpl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setMaster
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMaster ( MasterServer newMaster )
{
if ( newMaster != eInternalContainer () || ( eContainerFeatureID () != InfrastructurePackage.MASTER_IMPORT__MASTER && newMaster != null ) )
{
if ( EcoreUtil.isAncestor ( this, newMaster ) )
throw new IllegalArgumentException ( "Recursive containment not allowed for " + toString () ); //$NON-NLS-1$
NotificationChain msgs = null;
if ( eInternalContainer () != null )
msgs = eBasicRemoveFromContainer ( msgs );
if ( newMaster != null )
msgs = ( (InternalEObject)newMaster ).eInverseAdd ( this, InfrastructurePackage.MASTER_SERVER__IMPORT_MASTER, MasterServer.class, msgs );
msgs = basicSetMaster ( newMaster, msgs );
if ( msgs != null )
msgs.dispatch ();
}
else if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.SET, InfrastructurePackage.MASTER_IMPORT__MASTER, newMaster, newMaster ) );
}
示例2: setFavorites
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFavorites(Favorites newFavorites)
{
if (newFavorites != favorites)
{
NotificationChain msgs = null;
if (favorites != null)
msgs = ((InternalEObject)favorites).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.LAUNCH_CONFIG__FAVORITES, null, msgs);
if (newFavorites != null)
msgs = ((InternalEObject)newFavorites).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.LAUNCH_CONFIG__FAVORITES, null, msgs);
msgs = basicSetFavorites(newFavorites, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, LcDslPackage.LAUNCH_CONFIG__FAVORITES, newFavorites, newFavorites));
}
示例3: setResource
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setResource(NamedResourceDefinition newResource)
{
if (newResource != resource)
{
NotificationChain msgs = null;
if (resource != null)
msgs = ((InternalEObject)resource).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, null, msgs);
if (newResource != null)
msgs = ((InternalEObject)newResource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, null, msgs);
msgs = basicSetResource(newResource, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, newResource, newResource));
}
示例4: setName
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName)
{
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RestaurantePackage.INGREDIENTE__NAME, oldName, name));
}
示例5: getCapDS
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SPC getCapDS() {
if (capDS != null && capDS.eIsProxy()) {
InternalEObject oldCapDS = (InternalEObject)capDS;
capDS = (SPC)eResolveProxy(oldCapDS);
if (capDS != oldCapDS) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupZPackage.ZCAP__CAP_DS, oldCapDS, capDS));
}
}
return capDS;
}
示例6: basicSetURI
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetURI(ComplexValue newURI, NotificationChain msgs)
{
ComplexValue oldURI = uRI;
uRI = newURI;
if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FileResourcePackage.XML_NAMESPACE_DEFINITION__URI, oldURI, newURI);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例7: basicSetErpQuoteLineItem
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetErpQuoteLineItem(ErpQuoteLineItem newErpQuoteLineItem, NotificationChain msgs) {
ErpQuoteLineItem oldErpQuoteLineItem = erpQuoteLineItem;
erpQuoteLineItem = newErpQuoteLineItem;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_INVOICE_LINE_ITEM__ERP_QUOTE_LINE_ITEM, oldErpQuoteLineItem, newErpQuoteLineItem);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例8: basicSetPhaseVariationCurve
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPhaseVariationCurve(PhaseVariationCurve newPhaseVariationCurve, NotificationChain msgs) {
PhaseVariationCurve oldPhaseVariationCurve = phaseVariationCurve;
phaseVariationCurve = newPhaseVariationCurve;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WiresPackage.PHASE_TAP_CHANGER__PHASE_VARIATION_CURVE, oldPhaseVariationCurve, newPhaseVariationCurve);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例9: setSection
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSection(String newSection) {
String oldSection = section;
section = newSection;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TOWN_DETAIL__SECTION, oldSection, section));
}
示例10: basicSetProgramEntries
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetProgramEntries(ElectricityProgramEntries newProgramEntries, NotificationChain msgs) {
ElectricityProgramEntries oldProgramEntries = programEntries;
programEntries = newProgramEntries;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, COSEMPackage.LOGICAL_DEVICE__PROGRAM_ENTRIES, oldProgramEntries, newProgramEntries);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例11: getConnection
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataAccessConnection getConnection ()
{
if ( connection != null && connection.eIsProxy () )
{
InternalEObject oldConnection = (InternalEObject)connection;
connection = (DataAccessConnection)eResolveProxy ( oldConnection );
if ( connection != oldConnection )
{
if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SOURCE_ITEM__CONNECTION, oldConnection, connection ) );
}
}
return connection;
}
示例12: setSymbolID
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSymbolID(String newSymbolID) {
String oldSymbolID = symbolID;
symbolID = newSymbolID;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, InfGMLSupportPackage.GML_GRAPHIC__SYMBOL_ID, oldSymbolID, symbolID));
}
示例13: setI
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setI(int newI) {
int oldI = i;
i = newI;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DataclassesPackage.ANALOGUE_VALUE__I, oldI, i));
}
示例14: setSource
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSource(ConformLoadGroup newSource) {
ConformLoadGroup oldSource = source;
source = newSource;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OutagePreventionMjtracePackage.REF_CONFORM_LOAD_GROUP_CONFORM_LOAD_GROUP_LOAD_GROUP__SOURCE, oldSource, source));
}
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:12,代码来源:ref_ConformLoadGroup_ConformLoadGroup_LoadGroupImpl.java
示例15: getPhDlTmms
import org.eclipse.emf.ecore.impl.ENotificationImpl; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ING getPhDlTmms() {
if (phDlTmms != null && phDlTmms.eIsProxy()) {
InternalEObject oldPhDlTmms = (InternalEObject)phDlTmms;
phDlTmms = (ING)eResolveProxy(oldPhDlTmms);
if (phDlTmms != oldPhDlTmms) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupPPackage.PDIS__PH_DL_TMMS, oldPhDlTmms, phDlTmms));
}
}
return phDlTmms;
}