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