當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。