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


Java Notification类代码示例

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


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

示例1: setAnalyzedSystem

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setAnalyzedSystem(AnalyzedSystem newAnalyzedSystem) {
	if (newAnalyzedSystem != eInternalContainer() || (eContainerFeatureID() != AnalysisPackage.CONSTRAINT_CONTAINER__ANALYZED_SYSTEM && newAnalyzedSystem != null)) {
		if (EcoreUtil.isAncestor(this, newAnalyzedSystem))
			throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
		NotificationChain msgs = null;
		if (eInternalContainer() != null)
			msgs = eBasicRemoveFromContainer(msgs);
		if (newAnalyzedSystem != null)
			msgs = ((InternalEObject)newAnalyzedSystem).eInverseAdd(this, AnalysisPackage.ANALYZED_SYSTEM__CONSTRAINT_CONTAINER, AnalyzedSystem.class, msgs);
		msgs = basicSetAnalyzedSystem(newAnalyzedSystem, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, AnalysisPackage.CONSTRAINT_CONTAINER__ANALYZED_SYSTEM, newAnalyzedSystem, newAnalyzedSystem));
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:ConstraintContainerImpl.java

示例2: setPassword

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setPassword(ComplexValue newPassword)
{
  if (newPassword != password)
  {
    NotificationChain msgs = null;
    if (password != null)
      msgs = ((InternalEObject)password).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SoapIOResourcePackage.HTTP_TRANSPORT__PASSWORD, null, msgs);
    if (newPassword != null)
      msgs = ((InternalEObject)newPassword).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SoapIOResourcePackage.HTTP_TRANSPORT__PASSWORD, null, msgs);
    msgs = basicSetPassword(newPassword, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, SoapIOResourcePackage.HTTP_TRANSPORT__PASSWORD, newPassword, newPassword));
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:20,代码来源:HTTPTransportImpl.java

示例3: setRight

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setRight(Page newRight)
{
  if (newRight != right)
  {
    NotificationChain msgs = null;
    if (right != null)
      msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatacompareModulePackage.PAGES__RIGHT, null, msgs);
    if (newRight != null)
      msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatacompareModulePackage.PAGES__RIGHT, null, msgs);
    msgs = basicSetRight(newRight, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, DatacompareModulePackage.PAGES__RIGHT, newRight, newRight));
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:20,代码来源:PagesImpl.java

示例4: setMQResource

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setMQResource(ResourceDefinition newMQResource)
{
  if (newMQResource != mQResource)
  {
    NotificationChain msgs = null;
    if (mQResource != null)
      msgs = ((InternalEObject)mQResource).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - MqModulePackage.MQ_CONFIGURATION__MQ_RESOURCE, null, msgs);
    if (newMQResource != null)
      msgs = ((InternalEObject)newMQResource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - MqModulePackage.MQ_CONFIGURATION__MQ_RESOURCE, null, msgs);
    msgs = basicSetMQResource(newMQResource, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, MqModulePackage.MQ_CONFIGURATION__MQ_RESOURCE, newMQResource, newMQResource));
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:20,代码来源:MQConfigurationImpl.java

示例5: setDefaultUserService

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDefaultUserService ( UserService newDefaultUserService )
{
    if ( newDefaultUserService != defaultUserService )
    {
        NotificationChain msgs = null;
        if ( defaultUserService != null )
            msgs = ( (InternalEObject)defaultUserService ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.OPTIONS__DEFAULT_USER_SERVICE, null, msgs );
        if ( newDefaultUserService != null )
            msgs = ( (InternalEObject)newDefaultUserService ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.OPTIONS__DEFAULT_USER_SERVICE, null, msgs );
        msgs = basicSetDefaultUserService ( newDefaultUserService, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, InfrastructurePackage.OPTIONS__DEFAULT_USER_SERVICE, newDefaultUserService, newDefaultUserService ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:OptionsImpl.java

示例6: setDefaultCredentials

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDefaultCredentials ( Credentials newDefaultCredentials )
{
    if ( newDefaultCredentials != defaultCredentials )
    {
        NotificationChain msgs = null;
        if ( defaultCredentials != null )
            msgs = ( (InternalEObject)defaultCredentials ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, null, msgs );
        if ( newDefaultCredentials != null )
            msgs = ( (InternalEObject)newDefaultCredentials ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, null, msgs );
        msgs = basicSetDefaultCredentials ( newDefaultCredentials, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, newDefaultCredentials, newDefaultCredentials ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:WorldImpl.java

示例7: setAccessCredentials

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setAccessCredentials ( Credentials newAccessCredentials )
{
    if ( newAccessCredentials != accessCredentials )
    {
        NotificationChain msgs = null;
        if ( accessCredentials != null )
            msgs = ( (InternalEObject)accessCredentials ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.EXTERNAL_DRIVER__ACCESS_CREDENTIALS, null, msgs );
        if ( newAccessCredentials != null )
            msgs = ( (InternalEObject)newAccessCredentials ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.EXTERNAL_DRIVER__ACCESS_CREDENTIALS, null, msgs );
        msgs = basicSetAccessCredentials ( newAccessCredentials, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, InfrastructurePackage.EXTERNAL_DRIVER__ACCESS_CREDENTIALS, newAccessCredentials, newAccessCredentials ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:ExternalDriverImpl.java

示例8: basicSetUpdateScript

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetUpdateScript ( CodeFragment newUpdateScript, NotificationChain msgs )
{
    CodeFragment oldUpdateScript = updateScript;
    updateScript = newUpdateScript;
    if ( eNotificationRequired () )
    {
        ENotificationImpl notification = new ENotificationImpl ( this, Notification.SET, OsgiPackage.SCRIPT_ITEM__UPDATE_SCRIPT, oldUpdateScript, newUpdateScript );
        if ( msgs == null )
            msgs = notification;
        else
            msgs.add ( notification );
    }
    return msgs;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:20,代码来源:ScriptItemImpl.java

示例9: getRvAMod

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ING getRvAMod() {
	if (rvAMod != null && rvAMod.eIsProxy()) {
		InternalEObject oldRvAMod = (InternalEObject)rvAMod;
		rvAMod = (ING)eResolveProxy(oldRvAMod);
		if (rvAMod != oldRvAMod) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupPPackage.PSCH__RV_AMOD, oldRvAMod, rvAMod));
		}
	}
	return rvAMod;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:17,代码来源:PSCHImpl.java

示例10: setSwitchOnCount

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setSwitchOnCount(int newSwitchOnCount) {
	int oldSwitchOnCount = switchOnCount;
	switchOnCount = newSwitchOnCount;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, WiresPackage.SWITCH__SWITCH_ON_COUNT, oldSwitchOnCount, switchOnCount));
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:12,代码来源:SwitchImpl.java

示例11: setPstTmms

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setPstTmms(ING newPstTmms) {
	ING oldPstTmms = pstTmms;
	pstTmms = newPstTmms;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, LNGroupRPackage.RADR__PST_TMMS, oldPstTmms, pstTmms));
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:12,代码来源:RADRImpl.java

示例12: setVoltageNeutMag

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setVoltageNeutMag(double newVoltageNeutMag) {
	double oldVoltageNeutMag = voltageNeutMag;
	voltageNeutMag = newVoltageNeutMag;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, OutagePreventionJointargetPackage.PMU_VOLTAGE_METER__VOLTAGE_NEUT_MAG, oldVoltageNeutMag, voltageNeutMag));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:12,代码来源:PMUVoltageMeterImpl.java

示例13: setForm

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setForm(String newForm) {
	String oldForm = form;
	form = newForm;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfAssetModelsPackage.METER_ASSET_MODEL__FORM, oldForm, form));
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:12,代码来源:MeterAssetModelImpl.java

示例14: setState

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
public void setState(State newState) {
	State oldState = state;
	state = newState == null ? STATE_EDEFAULT : newState;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, DebugPackage.THREAD__STATE, oldState,
				state));
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:13,代码来源:ThreadImpl.java

示例15: setErpProjectAccounting

import org.eclipse.emf.common.notify.Notification; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setErpProjectAccounting(ErpProjectAccounting newErpProjectAccounting) {
	if (newErpProjectAccounting != erpProjectAccounting) {
		NotificationChain msgs = null;
		if (erpProjectAccounting != null)
			msgs = ((InternalEObject)erpProjectAccounting).eInverseRemove(this, InfERPSupportPackage.ERP_PROJECT_ACCOUNTING__ERP_TIME_ENTRIES, ErpProjectAccounting.class, msgs);
		if (newErpProjectAccounting != null)
			msgs = ((InternalEObject)newErpProjectAccounting).eInverseAdd(this, InfERPSupportPackage.ERP_PROJECT_ACCOUNTING__ERP_TIME_ENTRIES, ErpProjectAccounting.class, msgs);
		msgs = basicSetErpProjectAccounting(newErpProjectAccounting, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_TIME_ENTRY__ERP_PROJECT_ACCOUNTING, newErpProjectAccounting, newErpProjectAccounting));
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:19,代码来源:ErpTimeEntryImpl.java


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