Java Code Examples for org.eclipse.emf.common.notify.Notification

The following are top voted examples for showing how to use org.eclipse.emf.common.notify.Notification. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: time4sys   File: ConstraintContainerImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 2
Project: Saturn   File: HTTPTransportImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 3
Project: Saturn   File: PagesImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 4
Project: Saturn   File: MQConfigurationImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 5
Project: neoscada   File: OptionsImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- 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 ) );
}
 
Example 6
Project: neoscada   File: WorldImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- 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 ) );
}
 
Example 7
Project: neoscada   File: ExternalDriverImpl.java   View source code 6 votes vote down vote up
/**
 * <!-- 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 ) );
}
 
Example 8
Project: neoscada   File: ScriptItemImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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;
}
 
Example 9
Project: rgse.ttc17.emoflon.tgg   File: PSCHImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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;
}
 
Example 10
Project: rgse.ttc17.emoflon.tgg   File: SwitchImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 11
Project: rgse.ttc17.emoflon.tgg   File: RADRImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 12
Project: ttc2017smartGrids   File: PMUVoltageMeterImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 13
Project: ttc2017smartGrids   File: MeterAssetModelImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 14
Project: gemoc-studio-modeldebugging   File: ThreadImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 15
Project: rgse.ttc17.emoflon.tgg   File: ErpTimeEntryImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- 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));
}
 
Example 16
Project: Saturn   File: MarkitWireResourceImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTimeOut(ComplexValue newTimeOut, NotificationChain msgs)
{
  ComplexValue oldTimeOut = timeOut;
  timeOut = newTimeOut;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MarkitwireResourcePackage.MARKIT_WIRE_RESOURCE__TIME_OUT, oldTimeOut, newTimeOut);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 17
Project: rgse.ttc17.emoflon.tgg   File: MHANImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ASG getThdVVal() {
	if (thdVVal != null && thdVVal.eIsProxy()) {
		InternalEObject oldThdVVal = (InternalEObject)thdVVal;
		thdVVal = (ASG)eResolveProxy(oldThdVVal);
		if (thdVVal != oldThdVVal) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupMPackage.MHAN__THD_VVAL, oldThdVVal, thdVVal));
		}
	}
	return thdVVal;
}
 
Example 18
Project: ttc2017smartGrids   File: ShuntImpedanceInfoImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setLowVoltageOverride(float newLowVoltageOverride) {
	float oldLowVoltageOverride = lowVoltageOverride;
	lowVoltageOverride = newLowVoltageOverride;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfAssetsPackage.SHUNT_IMPEDANCE_INFO__LOW_VOLTAGE_OVERRIDE, oldLowVoltageOverride, lowVoltageOverride));
}
 
Example 19
Project: ttc2017smartGrids   File: PFRCImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBlkV(SPS newBlkV) {
	SPS oldBlkV = blkV;
	blkV = newBlkV;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PFRC__BLK_V, oldBlkV, blkV));
}
 
Example 20
Project: ttc2017smartGrids   File: AVCOImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ASG getLimVOv() {
	if (limVOv != null && limVOv.eIsProxy()) {
		InternalEObject oldLimVOv = (InternalEObject)limVOv;
		limVOv = (ASG)eResolveProxy(oldLimVOv);
		if (limVOv != oldLimVOv) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupAPackage.AVCO__LIM_VOV, oldLimVOv, limVOv));
		}
	}
	return limVOv;
}
 
Example 21
Project: ttc2017smartGrids   File: GmlSymbolImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetGmlBaseSymbol(GmlBaseSymbol newGmlBaseSymbol, NotificationChain msgs) {
	GmlBaseSymbol oldGmlBaseSymbol = gmlBaseSymbol;
	gmlBaseSymbol = newGmlBaseSymbol;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfGMLSupportPackage.GML_SYMBOL__GML_BASE_SYMBOL, oldGmlBaseSymbol, newGmlBaseSymbol);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 22
Project: Saturn   File: InformixResourceImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetDatabase(ComplexValue newDatabase, NotificationChain msgs)
{
  ComplexValue oldDatabase = database;
  database = newDatabase;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InformixResourcePackage.INFORMIX_RESOURCE__DATABASE, oldDatabase, newDatabase);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 23
Project: neoscada   File: GridChildImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setHorizontalAlignment ( GridAlignment newHorizontalAlignment )
{
    GridAlignment oldHorizontalAlignment = horizontalAlignment;
    horizontalAlignment = newHorizontalAlignment == null ? HORIZONTAL_ALIGNMENT_EDEFAULT : newHorizontalAlignment;
    if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, VisualInterfacePackage.GRID_CHILD__HORIZONTAL_ALIGNMENT, oldHorizontalAlignment, horizontalAlignment ) );
}
 
Example 24
Project: ttc2017smartGrids   File: PVPHImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ING getTypRsCrv() {
	if (typRsCrv != null && typRsCrv.eIsProxy()) {
		InternalEObject oldTypRsCrv = (InternalEObject)typRsCrv;
		typRsCrv = (ING)eResolveProxy(oldTypRsCrv);
		if (typRsCrv != oldTypRsCrv) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupPPackage.PVPH__TYP_RS_CRV, oldTypRsCrv, typRsCrv));
		}
	}
	return typRsCrv;
}
 
Example 25
Project: ttc2017smartGrids   File: NonStandardItemImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setAmount(float newAmount) {
	float oldAmount = amount;
	amount = newAmount;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfWorkPackage.NON_STANDARD_ITEM__AMOUNT, oldAmount, amount));
}
 
Example 26
Project: rgse.ttc17.emoflon.tgg   File: ErpPersonImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ElectronicAddress getElectronicAddress() {
	if (electronicAddress != null && electronicAddress.eIsProxy()) {
		InternalEObject oldElectronicAddress = (InternalEObject)electronicAddress;
		electronicAddress = (ElectronicAddress)eResolveProxy(oldElectronicAddress);
		if (electronicAddress != oldElectronicAddress) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfERPSupportPackage.ERP_PERSON__ELECTRONIC_ADDRESS, oldElectronicAddress, electronicAddress));
		}
	}
	return electronicAddress;
}
 
Example 27
Project: ttc2017smartGrids   File: TapChangerAssetModelImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setRatedApparentPower(float newRatedApparentPower) {
	float oldRatedApparentPower = ratedApparentPower;
	ratedApparentPower = newRatedApparentPower;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfAssetModelsPackage.TAP_CHANGER_ASSET_MODEL__RATED_APPARENT_POWER, oldRatedApparentPower, ratedApparentPower));
}
 
Example 28
Project: ttc2017smartGrids   File: BushingInfoImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setC1PowerFactor(float newC1PowerFactor) {
	float oldC1PowerFactor = c1PowerFactor;
	c1PowerFactor = newC1PowerFactor;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfAssetsPackage.BUSHING_INFO__C1_POWER_FACTOR, oldC1PowerFactor, c1PowerFactor));
}
 
Example 29
Project: ttc2017smartGrids   File: POPFImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ING getRsDiTmms() {
	if (rsDiTmms != null && rsDiTmms.eIsProxy()) {
		InternalEObject oldRsDiTmms = (InternalEObject)rsDiTmms;
		rsDiTmms = (ING)eResolveProxy(oldRsDiTmms);
		if (rsDiTmms != oldRsDiTmms) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupPPackage.POPF__RS_DI_TMMS, oldRsDiTmms, rsDiTmms));
		}
	}
	return rsDiTmms;
}
 
Example 30
Project: neoscada   File: TextComponentImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setHeight ( int newHeight )
{
    int oldHeight = height;
    height = newHeight;
    if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, DetailViewPackage.TEXT_COMPONENT__HEIGHT, oldHeight, height ) );
}
 
Example 31
Project: ttc2017smartGrids   File: DistributionLineSegmentImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ConductorInfo getConductorInfo() {
	if (conductorInfo != null && conductorInfo.eIsProxy()) {
		InternalEObject oldConductorInfo = (InternalEObject)conductorInfo;
		conductorInfo = (ConductorInfo)eResolveProxy(oldConductorInfo);
		if (conductorInfo != oldConductorInfo) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, WiresExtPackage.DISTRIBUTION_LINE_SEGMENT__CONDUCTOR_INFO, oldConductorInfo, conductorInfo));
		}
	}
	return conductorInfo;
}
 
Example 32
Project: ttc2017smartGrids   File: CombinedCyclePlantImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setCombCyclePlantRating(float newCombCyclePlantRating) {
	float oldCombCyclePlantRating = combCyclePlantRating;
	combCyclePlantRating = newCombCyclePlantRating;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, ProductionPackage.COMBINED_CYCLE_PLANT__COMB_CYCLE_PLANT_RATING, oldCombCyclePlantRating, combCyclePlantRating));
}
 
Example 33
Project: ttc2017smartGrids   File: GmlGeometryStyleImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setGmlLabelStyle(GmlLabelStyle newGmlLabelStyle) {
	if (newGmlLabelStyle != gmlLabelStyle) {
		NotificationChain msgs = null;
		if (gmlLabelStyle != null)
			msgs = ((InternalEObject)gmlLabelStyle).eInverseRemove(this, InfGMLSupportPackage.GML_LABEL_STYLE__GML_GEOMETRY_STYLES, GmlLabelStyle.class, msgs);
		if (newGmlLabelStyle != null)
			msgs = ((InternalEObject)newGmlLabelStyle).eInverseAdd(this, InfGMLSupportPackage.GML_LABEL_STYLE__GML_GEOMETRY_STYLES, GmlLabelStyle.class, msgs);
		msgs = basicSetGmlLabelStyle(newGmlLabelStyle, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfGMLSupportPackage.GML_GEOMETRY_STYLE__GML_LABEL_STYLE, newGmlLabelStyle, newGmlLabelStyle));
}
 
Example 34
Project: Saturn   File: CustomFileImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetRowSeparator(ComplexValue newRowSeparator, NotificationChain msgs)
{
  ComplexValue oldRowSeparator = rowSeparator;
  rowSeparator = newRowSeparator;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FileResourcePackage.CUSTOM_FILE__ROW_SEPARATOR, oldRowSeparator, newRowSeparator);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 35
Project: n4js   File: DeclaredVersionImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setMinor(int newMinor) {
	int oldMinor = minor;
	minor = newMinor;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, N4mfPackage.DECLARED_VERSION__MINOR, oldMinor, minor));
}
 
Example 36
Project: ttc2017smartGrids   File: ChangeItemImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setGmlSelector(GmlSelector newGmlSelector) {
	if (newGmlSelector != gmlSelector) {
		NotificationChain msgs = null;
		if (gmlSelector != null)
			msgs = ((InternalEObject)gmlSelector).eInverseRemove(this, InfGMLSupportPackage.GML_SELECTOR__CHANGE_ITEMS, GmlSelector.class, msgs);
		if (newGmlSelector != null)
			msgs = ((InternalEObject)newGmlSelector).eInverseAdd(this, InfGMLSupportPackage.GML_SELECTOR__CHANGE_ITEMS, GmlSelector.class, msgs);
		msgs = basicSetGmlSelector(newGmlSelector, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, InfOperationsPackage.CHANGE_ITEM__GML_SELECTOR, newGmlSelector, newGmlSelector));
}
 
Example 37
Project: ttc2017smartGrids   File: PTUFImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setRsDlTmms(ING newRsDlTmms) {
	ING oldRsDlTmms = rsDlTmms;
	rsDlTmms = newRsDlTmms;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PTUF__RS_DL_TMMS, oldRsDlTmms, rsDlTmms));
}
 
Example 38
Project: ttc2017smartGrids   File: ElectricityTimeEntriesImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBilling_period_reset_lockout_time(String newBilling_period_reset_lockout_time) {
	String oldBilling_period_reset_lockout_time = billing_period_reset_lockout_time;
	billing_period_reset_lockout_time = newBilling_period_reset_lockout_time;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, COSEMObjectsPackage.ELECTRICITY_TIME_ENTRIES__BILLING_PERIOD_RESET_LOCKOUT_TIME, oldBilling_period_reset_lockout_time, billing_period_reset_lockout_time));
}
 
Example 39
Project: ttc2017smartGrids   File: MeterAssetPhysicalDevicePairImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public PhysicalDevice getB() {
	if (b != null && b.eIsProxy()) {
		InternalEObject oldB = (InternalEObject)b;
		b = (PhysicalDevice)eResolveProxy(oldB);
		if (b != oldB) {
			if (eNotificationRequired())
				eNotify(new ENotificationImpl(this, Notification.RESOLVE, GluemodelPackage.METER_ASSET_PHYSICAL_DEVICE_PAIR__B, oldB, b));
		}
	}
	return b;
}
 
Example 40
Project: gw4e.project   File: GraphPoliciesImpl.java   View source code 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setGraphModelPolicies(String newGraphModelPolicies)
{
  String oldGraphModelPolicies = graphModelPolicies;
  graphModelPolicies = newGraphModelPolicies;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, DSLPoliciesPackage.GRAPH_POLICIES__GRAPH_MODEL_POLICIES, oldGraphModelPolicies, graphModelPolicies));
}