本文整理匯總了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;
}