當前位置: 首頁>>代碼示例>>Java>>正文


Java NotificationChain類代碼示例

本文整理匯總了Java中org.eclipse.emf.common.notify.NotificationChain的典型用法代碼示例。如果您正苦於以下問題:Java NotificationChain類的具體用法?Java NotificationChain怎麽用?Java NotificationChain使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NotificationChain類屬於org.eclipse.emf.common.notify包,在下文中一共展示了NotificationChain類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: eInverseRemove

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_LEDGER_ENTRY:
			return basicSetErpLedgerEntry(null, msgs);
		case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_JOURNAL:
			return basicSetErpJournal(null, msgs);
		case InfERPSupportPackage.ERP_JOURNAL_ENTRY__COST_TYPES:
			return ((InternalEList<?>)getCostTypes()).basicRemove(otherEnd, msgs);
		case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_INVOICE_LINE_ITEM:
			return basicSetErpInvoiceLineItem(null, msgs);
		case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_PAYABLE_LINE_ITEMS:
			return ((InternalEList<?>)getErpPayableLineItems()).basicRemove(otherEnd, msgs);
		case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_REC_LINE_ITEMS:
			return ((InternalEList<?>)getErpRecLineItems()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:24,代碼來源:ErpJournalEntryImpl.java

示例2: eInverseAdd

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case MeteringPackage.READING__END_DEVICE_ASSET:
			if (endDeviceAsset != null)
				msgs = ((InternalEObject)endDeviceAsset).eInverseRemove(this, MeteringPackage.END_DEVICE_ASSET__READINGS, EndDeviceAsset.class, msgs);
			return basicSetEndDeviceAsset((EndDeviceAsset)otherEnd, msgs);
		case MeteringPackage.READING__READING_QUALITIES:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getReadingQualities()).basicAdd(otherEnd, msgs);
		case MeteringPackage.READING__METER_READINGS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getMeterReadings()).basicAdd(otherEnd, msgs);
		case MeteringPackage.READING__READING_TYPE:
			if (readingType != null)
				msgs = ((InternalEObject)readingType).eInverseRemove(this, MeteringPackage.READING_TYPE__READINGS, ReadingType.class, msgs);
			return basicSetReadingType((ReadingType)otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:25,代碼來源:ReadingImpl.java

示例3: eInverseAdd

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case AssetModelsPackage.TRANSFORMER_INFO__TRANSFORMERS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getTransformers()).basicAdd(otherEnd, msgs);
		case AssetModelsPackage.TRANSFORMER_INFO__WINDING_INFOS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getWindingInfos()).basicAdd(otherEnd, msgs);
		case AssetModelsPackage.TRANSFORMER_INFO__TRANSFORMER_ASSET_MODELS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getTransformerAssetModels()).basicAdd(otherEnd, msgs);
		case AssetModelsPackage.TRANSFORMER_INFO__TRANSFORMER_ASSETS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getTransformerAssets()).basicAdd(otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:21,代碼來源:TransformerInfoImpl.java

示例4: setPlugin

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setPlugin(PluginWithVersion newPlugin)
{
  if (newPlugin != plugin)
  {
    NotificationChain msgs = null;
    if (plugin != null)
      msgs = ((InternalEObject)plugin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.PLUGIN_WITH_VERSION_AND_START_LEVEL__PLUGIN, null, msgs);
    if (newPlugin != null)
      msgs = ((InternalEObject)newPlugin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.PLUGIN_WITH_VERSION_AND_START_LEVEL__PLUGIN, null, msgs);
    msgs = basicSetPlugin(newPlugin, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, LcDslPackage.PLUGIN_WITH_VERSION_AND_START_LEVEL__PLUGIN, newPlugin, newPlugin));
}
 
開發者ID:mduft,項目名稱:lcdsl,代碼行數:21,代碼來源:PluginWithVersionAndStartLevelImpl.java

示例5: setName

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setName(ComplexValue newName)
{
  if (newName != name)
  {
    NotificationChain msgs = null;
    if (name != null)
      msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FixManipModulePackage.ADD_OPERATION__NAME, null, msgs);
    if (newName != null)
      msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FixManipModulePackage.ADD_OPERATION__NAME, null, msgs);
    msgs = basicSetName(newName, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, FixManipModulePackage.ADD_OPERATION__NAME, newName, newName));
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:20,代碼來源:AddOperationImpl.java

示例6: eInverseAdd

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case MeteringPackage.INTERVAL_BLOCK__METER_READING:
			if (meterReading != null)
				msgs = ((InternalEObject)meterReading).eInverseRemove(this, MeteringPackage.METER_READING__INTERVAL_BLOCKS, MeterReading.class, msgs);
			return basicSetMeterReading((MeterReading)otherEnd, msgs);
		case MeteringPackage.INTERVAL_BLOCK__INTERVAL_READINGS:
			return ((InternalEList<InternalEObject>)(InternalEList<?>)getIntervalReadings()).basicAdd(otherEnd, msgs);
		case MeteringPackage.INTERVAL_BLOCK__PENDING:
			if (pending != null)
				msgs = ((InternalEObject)pending).eInverseRemove(this, MeteringPackage.PENDING__INTERVAL_BLOCKS, Pending.class, msgs);
			return basicSetPending((Pending)otherEnd, msgs);
		case MeteringPackage.INTERVAL_BLOCK__READING_TYPE:
			if (readingType != null)
				msgs = ((InternalEObject)readingType).eInverseRemove(this, MeteringPackage.READING_TYPE__INTERVAL_BLOCKS, ReadingType.class, msgs);
			return basicSetReadingType((ReadingType)otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:27,代碼來源:IntervalBlockImpl.java

示例7: setException

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setException(exception newException)
{
  if (newException != exception)
  {
    NotificationChain msgs = null;
    if (exception != null)
      msgs = ((InternalEObject)exception).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PsManagerModulePackage.CHECK_SESSION_UP_OPERATION__EXCEPTION, null, msgs);
    if (newException != null)
      msgs = ((InternalEObject)newException).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PsManagerModulePackage.CHECK_SESSION_UP_OPERATION__EXCEPTION, null, msgs);
    msgs = basicSetException(newException, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, PsManagerModulePackage.CHECK_SESSION_UP_OPERATION__EXCEPTION, newException, newException));
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:20,代碼來源:CheckSessionUpOperationImpl.java

示例8: eInverseRemove

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case CustomersPackage.CUSTOMER_ACCOUNT__WORK_BILLING_INFOS:
			return ((InternalEList<?>)getWorkBillingInfos()).basicRemove(otherEnd, msgs);
		case CustomersPackage.CUSTOMER_ACCOUNT__PAYMENT_TRANSACTIONS:
			return ((InternalEList<?>)getPaymentTransactions()).basicRemove(otherEnd, msgs);
		case CustomersPackage.CUSTOMER_ACCOUNT__CUSTOMER_AGREEMENTS:
			return ((InternalEList<?>)getCustomerAgreements()).basicRemove(otherEnd, msgs);
		case CustomersPackage.CUSTOMER_ACCOUNT__ERP_INVOICEES:
			return ((InternalEList<?>)getErpInvoicees()).basicRemove(otherEnd, msgs);
		case CustomersPackage.CUSTOMER_ACCOUNT__CUSTOMER_BILLING_INFOS:
			return ((InternalEList<?>)getCustomerBillingInfos()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:22,代碼來源:CustomerAccountImpl.java

示例9: setPerlCode

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setPerlCode(ComplexValue newPerlCode)
{
  if (newPerlCode != perlCode)
  {
    NotificationChain msgs = null;
    if (perlCode != null)
      msgs = ((InternalEObject)perlCode).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SaturnPackage.PERL_RUN_GROUP_MODIFIER__PERL_CODE, null, msgs);
    if (newPerlCode != null)
      msgs = ((InternalEObject)newPerlCode).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SaturnPackage.PERL_RUN_GROUP_MODIFIER__PERL_CODE, null, msgs);
    msgs = basicSetPerlCode(newPerlCode, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, SaturnPackage.PERL_RUN_GROUP_MODIFIER__PERL_CODE, newPerlCode, newPerlCode));
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:20,代碼來源:PerlRunGroupModifierImpl.java

示例10: setOwningFSM

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setOwningFSM(StateMachine newOwningFSM) {
	if (newOwningFSM != eInternalContainer() || (eContainerFeatureID() != FsmPackage.STATE__OWNING_FSM && newOwningFSM != null)) {
		if (EcoreUtil.isAncestor(this, newOwningFSM))
			throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
		NotificationChain msgs = null;
		if (eInternalContainer() != null)
			msgs = eBasicRemoveFromContainer(msgs);
		if (newOwningFSM != null)
			msgs = ((InternalEObject)newOwningFSM).eInverseAdd(this, FsmPackage.STATE_MACHINE__OWNED_STATES, StateMachine.class, msgs);
		msgs = basicSetOwningFSM(newOwningFSM, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, FsmPackage.STATE__OWNING_FSM, newOwningFSM, newOwningFSM));
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:21,代碼來源:StateImpl.java

示例11: setDescription

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDescription(Description newDescription)
{
  if (newDescription != description)
  {
    NotificationChain msgs = null;
    if (description != null)
      msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - MyDslPackage.MENU__DESCRIPTION, null, msgs);
    if (newDescription != null)
      msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - MyDslPackage.MENU__DESCRIPTION, null, msgs);
    msgs = basicSetDescription(newDescription, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, MyDslPackage.MENU__DESCRIPTION, newDescription, newDescription));
}
 
開發者ID:fatalerrortan,項目名稱:Xtext_Xtend_HTML_Generator,代碼行數:21,代碼來源:MenuImpl.java

示例12: setUsername

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setUsername(ComplexValue newUsername)
{
  if (newUsername != username)
  {
    NotificationChain msgs = null;
    if (username != null)
      msgs = ((InternalEObject)username).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__USERNAME, null, msgs);
    if (newUsername != null)
      msgs = ((InternalEObject)newUsername).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__USERNAME, null, msgs);
    msgs = basicSetUsername(newUsername, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__USERNAME, newUsername, newUsername));
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:20,代碼來源:DocumentumConfigurationImpl.java

示例13: eInverseRemove

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove ( InternalEObject otherEnd, int featureID, NotificationChain msgs )
{
    switch ( featureID )
    {
        case ConfigurationPackage.DOCUMENT_ROOT__MIXED:
            return ( (InternalEList<?>)getMixed () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
            return ( (InternalEList<?>)getXMLNSPrefixMap () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
            return ( (InternalEList<?>)getXSISchemaLocation () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__ROOT:
            return basicSetRoot ( null, msgs );
    }
    return super.eInverseRemove ( otherEnd, featureID, msgs );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:22,代碼來源:DocumentRootImpl.java

示例14: eInverseAdd

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case ProductionPackage.STARTUP_MODEL__START_IGN_FUEL_CURVE:
			if (startIgnFuelCurve != null)
				msgs = ((InternalEObject)startIgnFuelCurve).eInverseRemove(this, ProductionPackage.START_IGN_FUEL_CURVE__STARTUP_MODEL, StartIgnFuelCurve.class, msgs);
			return basicSetStartIgnFuelCurve((StartIgnFuelCurve)otherEnd, msgs);
		case ProductionPackage.STARTUP_MODEL__START_RAMP_CURVE:
			if (startRampCurve != null)
				msgs = ((InternalEObject)startRampCurve).eInverseRemove(this, ProductionPackage.START_RAMP_CURVE__STARTUP_MODEL, StartRampCurve.class, msgs);
			return basicSetStartRampCurve((StartRampCurve)otherEnd, msgs);
		case ProductionPackage.STARTUP_MODEL__START_MAIN_FUEL_CURVE:
			if (startMainFuelCurve != null)
				msgs = ((InternalEObject)startMainFuelCurve).eInverseRemove(this, ProductionPackage.START_MAIN_FUEL_CURVE__STARTUP_MODEL, StartMainFuelCurve.class, msgs);
			return basicSetStartMainFuelCurve((StartMainFuelCurve)otherEnd, msgs);
		case ProductionPackage.STARTUP_MODEL__THERMAL_GENERATING_UNIT:
			if (thermalGeneratingUnit != null)
				msgs = ((InternalEObject)thermalGeneratingUnit).eInverseRemove(this, ProductionPackage.THERMAL_GENERATING_UNIT__STARTUP_MODEL, ThermalGeneratingUnit.class, msgs);
			return basicSetThermalGeneratingUnit((ThermalGeneratingUnit)otherEnd, msgs);
	}
	return super.eInverseAdd(otherEnd, featureID, msgs);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:28,代碼來源:StartupModelImpl.java

示例15: setId

import org.eclipse.emf.common.notify.NotificationChain; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setId(ComplexValue newId)
{
  if (newId != id)
  {
    NotificationChain msgs = null;
    if (id != null)
      msgs = ((InternalEObject)id).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.ALM_ID__ID, null, msgs);
    if (newId != null)
      msgs = ((InternalEObject)newId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TypesPackage.ALM_ID__ID, null, msgs);
    msgs = basicSetId(newId, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.ALM_ID__ID, newId, newId));
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:21,代碼來源:AlmIdImpl.java


注:本文中的org.eclipse.emf.common.notify.NotificationChain類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。