本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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));
}
示例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));
}
示例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);
}
示例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));
}
示例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);
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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 );
}
示例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);
}
示例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));
}