当前位置: 首页>>代码示例>>Java>>正文


Java ENotificationImpl类代码示例

本文整理汇总了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 ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:24,代码来源:MasterImportImpl.java

示例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));
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:21,代码来源:LaunchConfigImpl.java

示例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));
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:21,代码来源:JSONComplexValueImpl.java

示例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));
}
 
开发者ID:vicegd,项目名称:org.xtext.dsl.restaurante,代码行数:13,代码来源:IngredienteImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:17,代码来源:ZCAPImpl.java

示例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;
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:17,代码来源:XMLNamespaceDefinitionImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:ErpInvoiceLineItemImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:PhaseTapChangerImpl.java

示例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));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:12,代码来源:TownDetailImpl.java

示例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;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:15,代码来源:LogicalDeviceImpl.java

示例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;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:20,代码来源:SourceItemImpl.java

示例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));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:12,代码来源:GmlGraphicImpl.java

示例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));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:12,代码来源:AnalogueValueImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:17,代码来源:PDISImpl.java


注:本文中的org.eclipse.emf.ecore.impl.ENotificationImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。