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