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


Java NotificationChain.dispatch方法代码示例

本文整理汇总了Java中org.eclipse.emf.common.notify.NotificationChain.dispatch方法的典型用法代码示例。如果您正苦于以下问题:Java NotificationChain.dispatch方法的具体用法?Java NotificationChain.dispatch怎么用?Java NotificationChain.dispatch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.emf.common.notify.NotificationChain的用法示例。


在下文中一共展示了NotificationChain.dispatch方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setDefinition

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDefinition ( Definition newDefinition )
{
    if ( newDefinition != eInternalContainer () || ( eContainerFeatureID () != RecipePackage.TASK__DEFINITION && newDefinition != null ) )
    {
        if ( EcoreUtil.isAncestor ( this, newDefinition ) )
            throw new IllegalArgumentException ( "Recursive containment not allowed for " + toString () ); //$NON-NLS-1$
        NotificationChain msgs = null;
        if ( eInternalContainer () != null )
            msgs = eBasicRemoveFromContainer ( msgs );
        if ( newDefinition != null )
            msgs = ( (InternalEObject)newDefinition ).eInverseAdd ( this, RecipePackage.DEFINITION__TASK, Definition.class, msgs );
        msgs = basicSetDefinition ( newDefinition, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, RecipePackage.TASK__DEFINITION, newDefinition, newDefinition ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:24,代码来源:TaskImpl.java

示例2: setProject

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setProject(Project newProject)
{
  if (newProject != project)
  {
    NotificationChain msgs = null;
    if (project != null)
      msgs = ((InternalEObject)project).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.MAIN_PROJECT__PROJECT, null, msgs);
    if (newProject != null)
      msgs = ((InternalEObject)newProject).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.MAIN_PROJECT__PROJECT, null, msgs);
    msgs = basicSetProject(newProject, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, LcDslPackage.MAIN_PROJECT__PROJECT, newProject, newProject));
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:21,代码来源:MainProjectImpl.java

示例3: getScript

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public JavaScript getScript ()
{
    if ( script != null && script.eIsProxy () )
    {
        InternalEObject oldScript = (InternalEObject)script;
        script = (JavaScript)eResolveProxy ( oldScript );
        if ( script != oldScript )
        {
            InternalEObject newScript = (InternalEObject)script;
            NotificationChain msgs = oldScript.eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_EVENT_HANDLER__SCRIPT, null, null );
            if ( newScript.eInternalContainer () == null )
            {
                msgs = newScript.eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - OsgiPackage.SCRIPT_EVENT_HANDLER__SCRIPT, null, msgs );
            }
            if ( msgs != null )
                msgs.dispatch ();
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SCRIPT_EVENT_HANDLER__SCRIPT, oldScript, script ) );
        }
    }
    return script;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:28,代码来源:ScriptEventHandlerImpl.java

示例4: setProcedure

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setProcedure(Procedure newProcedure) {
	if (newProcedure != procedure) {
		NotificationChain msgs = null;
		if (procedure != null)
			msgs = ((InternalEObject)procedure).eInverseRemove(this, InfAssetsPackage.PROCEDURE__PROCEDURE_VALUES, Procedure.class, msgs);
		if (newProcedure != null)
			msgs = ((InternalEObject)newProcedure).eInverseAdd(this, InfAssetsPackage.PROCEDURE__PROCEDURE_VALUES, Procedure.class, msgs);
		msgs = basicSetProcedure(newProcedure, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.USER_ATTRIBUTE__PROCEDURE, newProcedure, newProcedure));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:UserAttributeImpl.java

示例5: setBillDeterminant

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBillDeterminant(BillDeterminant newBillDeterminant) {
	if (newBillDeterminant != billDeterminant) {
		NotificationChain msgs = null;
		if (billDeterminant != null)
			msgs = ((InternalEObject)billDeterminant).eInverseRemove(this, MarketOperationsPackage.BILL_DETERMINANT__CHARGE_PROFILE_DATA, BillDeterminant.class, msgs);
		if (newBillDeterminant != null)
			msgs = ((InternalEObject)newBillDeterminant).eInverseAdd(this, MarketOperationsPackage.BILL_DETERMINANT__CHARGE_PROFILE_DATA, BillDeterminant.class, msgs);
		msgs = basicSetBillDeterminant(newBillDeterminant, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, MarketOperationsPackage.CHARGE_PROFILE_DATA__BILL_DETERMINANT, newBillDeterminant, newBillDeterminant));
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:19,代码来源:ChargeProfileDataImpl.java

示例6: setSwitchingSchedule

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setSwitchingSchedule(SwitchingSchedule newSwitchingSchedule) {
	if (newSwitchingSchedule != switchingSchedule) {
		NotificationChain msgs = null;
		if (switchingSchedule != null)
			msgs = ((InternalEObject)switchingSchedule).eInverseRemove(this, InfOperationsPackage.SWITCHING_SCHEDULE__SCHEDULE_STEPS, SwitchingSchedule.class, msgs);
		if (newSwitchingSchedule != null)
			msgs = ((InternalEObject)newSwitchingSchedule).eInverseAdd(this, InfOperationsPackage.SWITCHING_SCHEDULE__SCHEDULE_STEPS, SwitchingSchedule.class, msgs);
		msgs = basicSetSwitchingSchedule(newSwitchingSchedule, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfOperationsPackage.SWITCHING_STEP__SWITCHING_SCHEDULE, newSwitchingSchedule, newSwitchingSchedule));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:SwitchingStepImpl.java

示例7: setCombustionTurbine

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setCombustionTurbine(CombustionTurbine newCombustionTurbine) {
	if (newCombustionTurbine != combustionTurbine) {
		NotificationChain msgs = null;
		if (combustionTurbine != null)
			msgs = ((InternalEObject)combustionTurbine).eInverseRemove(this, GenerationDynamicsPackage.COMBUSTION_TURBINE__CT_TEMP_ACTIVE_POWER_CURVE, CombustionTurbine.class, msgs);
		if (newCombustionTurbine != null)
			msgs = ((InternalEObject)newCombustionTurbine).eInverseAdd(this, GenerationDynamicsPackage.COMBUSTION_TURBINE__CT_TEMP_ACTIVE_POWER_CURVE, CombustionTurbine.class, msgs);
		msgs = basicSetCombustionTurbine(newCombustionTurbine, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GenerationDynamicsPackage.CT_TEMP_ACTIVE_POWER_CURVE__COMBUSTION_TURBINE, newCombustionTurbine, newCombustionTurbine));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:CTTempActivePowerCurveImpl.java

示例8: setSwitchingStep

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setSwitchingStep(SwitchingStep newSwitchingStep) {
	if (newSwitchingStep != switchingStep) {
		NotificationChain msgs = null;
		if (switchingStep != null)
			msgs = ((InternalEObject)switchingStep).eInverseRemove(this, InfOperationsPackage.SWITCHING_STEP__ERP_PERSON_ROLE, SwitchingStep.class, msgs);
		if (newSwitchingStep != null)
			msgs = ((InternalEObject)newSwitchingStep).eInverseAdd(this, InfOperationsPackage.SWITCHING_STEP__ERP_PERSON_ROLE, SwitchingStep.class, msgs);
		msgs = basicSetSwitchingStep(newSwitchingStep, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfOperationsPackage.ERP_PERSON_SCHEDULE_STEP_ROLE__SWITCHING_STEP, newSwitchingStep, newSwitchingStep));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:ErpPersonScheduleStepRoleImpl.java

示例9: setStartupModel

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setStartupModel(StartupModel newStartupModel) {
	if (newStartupModel != startupModel) {
		NotificationChain msgs = null;
		if (startupModel != null)
			msgs = ((InternalEObject)startupModel).eInverseRemove(this, ProductionPackage.STARTUP_MODEL__START_IGN_FUEL_CURVE, StartupModel.class, msgs);
		if (newStartupModel != null)
			msgs = ((InternalEObject)newStartupModel).eInverseAdd(this, ProductionPackage.STARTUP_MODEL__START_IGN_FUEL_CURVE, StartupModel.class, msgs);
		msgs = basicSetStartupModel(newStartupModel, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, ProductionPackage.START_IGN_FUEL_CURVE__STARTUP_MODEL, newStartupModel, newStartupModel));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:StartIgnFuelCurveImpl.java

示例10: setSecond_Terminal

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setSecond_Terminal(Terminal newSecond_Terminal) {
	if (newSecond_Terminal != second_Terminal) {
		NotificationChain msgs = null;
		if (second_Terminal != null)
			msgs = ((InternalEObject)second_Terminal).eInverseRemove(this, CorePackage.TERMINAL__HAS_SECOND_MUTUAL_COUPLING, Terminal.class, msgs);
		if (newSecond_Terminal != null)
			msgs = ((InternalEObject)newSecond_Terminal).eInverseAdd(this, CorePackage.TERMINAL__HAS_SECOND_MUTUAL_COUPLING, Terminal.class, msgs);
		msgs = basicSetSecond_Terminal(newSecond_Terminal, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, WiresPackage.MUTUAL_COUPLING__SECOND_TERMINAL, newSecond_Terminal, newSecond_Terminal));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:MutualCouplingImpl.java

示例11: setPropertySpecification

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setPropertySpecification(Specification newPropertySpecification) {
	if (newPropertySpecification != propertySpecification) {
		NotificationChain msgs = null;
		if (propertySpecification != null)
			msgs = ((InternalEObject)propertySpecification).eInverseRemove(this, InfAssetsPackage.SPECIFICATION__ASSET_PROPERITES, Specification.class, msgs);
		if (newPropertySpecification != null)
			msgs = ((InternalEObject)newPropertySpecification).eInverseAdd(this, InfAssetsPackage.SPECIFICATION__ASSET_PROPERITES, Specification.class, msgs);
		msgs = basicSetPropertySpecification(newPropertySpecification, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.USER_ATTRIBUTE__PROPERTY_SPECIFICATION, newPropertySpecification, newPropertySpecification));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:UserAttributeImpl.java

示例12: setVendor

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setVendor(Vendor newVendor) {
	if (newVendor != vendor) {
		NotificationChain msgs = null;
		if (vendor != null)
			msgs = ((InternalEObject)vendor).eInverseRemove(this, PaymentMeteringPackage.VENDOR__CASHIERS, Vendor.class, msgs);
		if (newVendor != null)
			msgs = ((InternalEObject)newVendor).eInverseAdd(this, PaymentMeteringPackage.VENDOR__CASHIERS, Vendor.class, msgs);
		msgs = basicSetVendor(newVendor, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, PaymentMeteringPackage.CASHIER__VENDOR, newVendor, newVendor));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:CashierImpl.java

示例13: setHydroGeneratingUnit

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setHydroGeneratingUnit(HydroGeneratingUnit newHydroGeneratingUnit) {
	if (newHydroGeneratingUnit != hydroGeneratingUnit) {
		NotificationChain msgs = null;
		if (hydroGeneratingUnit != null)
			msgs = ((InternalEObject)hydroGeneratingUnit).eInverseRemove(this, ProductionPackage.HYDRO_GENERATING_UNIT__TAILBAY_LOSS_CURVE, HydroGeneratingUnit.class, msgs);
		if (newHydroGeneratingUnit != null)
			msgs = ((InternalEObject)newHydroGeneratingUnit).eInverseAdd(this, ProductionPackage.HYDRO_GENERATING_UNIT__TAILBAY_LOSS_CURVE, HydroGeneratingUnit.class, msgs);
		msgs = basicSetHydroGeneratingUnit(newHydroGeneratingUnit, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, ProductionPackage.TAILBAY_LOSS_CURVE__HYDRO_GENERATING_UNIT, newHydroGeneratingUnit, newHydroGeneratingUnit));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:19,代码来源:TailbayLossCurveImpl.java

示例14: setMemberOf

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setMemberOf(SubControlArea newMemberOf) {
	if (newMemberOf != memberOf) {
		NotificationChain msgs = null;
		if (memberOf != null)
			msgs = ((InternalEObject)memberOf).eInverseRemove(this, EnergySchedulingPackage.SUB_CONTROL_AREA__PART_OF, SubControlArea.class, msgs);
		if (newMemberOf != null)
			msgs = ((InternalEObject)newMemberOf).eInverseAdd(this, EnergySchedulingPackage.SUB_CONTROL_AREA__PART_OF, SubControlArea.class, msgs);
		msgs = basicSetMemberOf(newMemberOf, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, ReservationPackage.SERVICE_POINT__MEMBER_OF, newMemberOf, newMemberOf));
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:19,代码来源:ServicePointImpl.java

示例15: setCUGroup

import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setCUGroup(CUGroup newCUGroup) {
	if (newCUGroup != cuGroup) {
		NotificationChain msgs = null;
		if (cuGroup != null)
			msgs = ((InternalEObject)cuGroup).eInverseRemove(this, InfWorkPackage.CU_GROUP__COMPATIBLE_UNITS, CUGroup.class, msgs);
		if (newCUGroup != null)
			msgs = ((InternalEObject)newCUGroup).eInverseAdd(this, InfWorkPackage.CU_GROUP__COMPATIBLE_UNITS, CUGroup.class, msgs);
		msgs = basicSetCUGroup(newCUGroup, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfWorkPackage.COMPATIBLE_UNIT__CU_GROUP, newCUGroup, newCUGroup));
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:19,代码来源:CompatibleUnitImpl.java


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