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

The following examples show how to use org.eclipse.emf.common.notify.Notification. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MStepperChipTemperatureImpl.java    From openhab1-addons with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated
 */
@Override
public void setMbrick(MBrickStepper newMbrick) {
    if (newMbrick != eInternalContainer()
            || (eContainerFeatureID() != ModelPackage.MSTEPPER_CHIP_TEMPERATURE__MBRICK && newMbrick != null)) {
        if (EcoreUtil.isAncestor(this, newMbrick)) {
            throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
        }
        NotificationChain msgs = null;
        if (eInternalContainer() != null) {
            msgs = eBasicRemoveFromContainer(msgs);
        }
        if (newMbrick != null) {
            msgs = ((InternalEObject) newMbrick).eInverseAdd(this, ModelPackage.MSUB_DEVICE_HOLDER__MSUBDEVICES,
                    MSubDeviceHolder.class, msgs);
        }
        msgs = basicSetMbrick(newMbrick, msgs);
        if (msgs != null) {
            msgs.dispatch();
        }
    } else if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MSTEPPER_CHIP_TEMPERATURE__MBRICK,
                newMbrick, newMbrick));
    }
}
 
Example #2
Source File: MBrickletColorImpl.java    From openhab1-addons with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setTfConfig(BrickletColorConfiguration newTfConfig) {
    if (newTfConfig != tfConfig) {
        NotificationChain msgs = null;
        if (tfConfig != null)
            msgs = ((InternalEObject) tfConfig).eInverseRemove(this,
                    EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_COLOR__TF_CONFIG, null, msgs);
        if (newTfConfig != null)
            msgs = ((InternalEObject) newTfConfig).eInverseAdd(this,
                    EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_COLOR__TF_CONFIG, null, msgs);
        msgs = basicSetTfConfig(newTfConfig, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_COLOR__TF_CONFIG, newTfConfig,
                newTfConfig));
}
 
Example #3
Source File: PatternImpl.java    From n4js with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setQuantifier(Quantifier newQuantifier)
{
  if (newQuantifier != quantifier)
  {
    NotificationChain msgs = null;
    if (quantifier != null)
      msgs = ((InternalEObject)quantifier).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RegularExpressionPackage.PATTERN__QUANTIFIER, null, msgs);
    if (newQuantifier != null)
      msgs = ((InternalEObject)newQuantifier).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RegularExpressionPackage.PATTERN__QUANTIFIER, null, msgs);
    msgs = basicSetQuantifier(newQuantifier, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, RegularExpressionPackage.PATTERN__QUANTIFIER, newQuantifier, newQuantifier));
}
 
Example #4
Source File: DefaultTextEditComposer.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
protected boolean doRecord(Notification notification) {
	if (!recording || notification.isTouch())
		return false;

	switch (notification.getEventType()) {
		case Notification.ADD:
		case Notification.ADD_MANY:
		case Notification.MOVE:
		case Notification.REMOVE:
		case Notification.REMOVE_MANY:
		case Notification.SET:
		case Notification.UNSET:
			return true;
		default:
			return false;
	}
}
 
Example #5
Source File: DefValueImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setValueExpr(Expression newValueExpr)
{
  if (newValueExpr != valueExpr)
  {
    NotificationChain msgs = null;
    if (valueExpr != null)
      msgs = ((InternalEObject)valueExpr).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BeeLangTestLanguagePackage.DEF_VALUE__VALUE_EXPR, null, msgs);
    if (newValueExpr != null)
      msgs = ((InternalEObject)newValueExpr).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BeeLangTestLanguagePackage.DEF_VALUE__VALUE_EXPR, null, msgs);
    msgs = basicSetValueExpr(newValueExpr, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, BeeLangTestLanguagePackage.DEF_VALUE__VALUE_EXPR, newValueExpr, newValueExpr));
}
 
Example #6
Source File: TemplateImpl.java    From M2Doc with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public void setBody(Block newBody) {
    if (newBody != body) {
        NotificationChain msgs = null;
        if (body != null)
            msgs = ((InternalEObject) body).eInverseRemove(this,
                    EOPPOSITE_FEATURE_BASE - TemplatePackage.TEMPLATE__BODY, null, msgs);
        if (newBody != null)
            msgs = ((InternalEObject) newBody).eInverseAdd(this,
                    EOPPOSITE_FEATURE_BASE - TemplatePackage.TEMPLATE__BODY, null, msgs);
        msgs = basicSetBody(newBody, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TemplatePackage.TEMPLATE__BODY, newBody, newBody));
}
 
Example #7
Source File: EquinoxApplicationImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public ApplicationConfiguration getConfiguration ()
{
    if ( configuration != null && configuration.eIsProxy () )
    {
        InternalEObject oldConfiguration = (InternalEObject)configuration;
        configuration = (ApplicationConfiguration)eResolveProxy ( oldConfiguration );
        if ( configuration != oldConfiguration )
        {
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.EQUINOX_APPLICATION__CONFIGURATION, oldConfiguration, configuration ) );
        }
    }
    return configuration;
}
 
Example #8
Source File: StandardLoopCharacteristicsImpl.java    From fixflow with Apache License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setLoopMaximum(Expression newLoopMaximum) {
    if (newLoopMaximum != loopMaximum) {
        NotificationChain msgs = null;
        if (loopMaximum != null)
            msgs = ((InternalEObject) loopMaximum).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
                    - Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_MAXIMUM, null, msgs);
        if (newLoopMaximum != null)
            msgs = ((InternalEObject) newLoopMaximum).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
                    - Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_MAXIMUM, null, msgs);
        msgs = basicSetLoopMaximum(newLoopMaximum, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET,
                Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_MAXIMUM, newLoopMaximum,
                newLoopMaximum));
}
 
Example #9
Source File: ModelImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setEnumVal(EnumVal newEnumVal)
{
  if (newEnumVal != enumVal)
  {
    NotificationChain msgs = null;
    if (enumVal != null)
      msgs = ((InternalEObject)enumVal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AssignmentFinderTestPackage.MODEL__ENUM_VAL, null, msgs);
    if (newEnumVal != null)
      msgs = ((InternalEObject)newEnumVal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AssignmentFinderTestPackage.MODEL__ENUM_VAL, null, msgs);
    msgs = basicSetEnumVal(newEnumVal, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, AssignmentFinderTestPackage.MODEL__ENUM_VAL, newEnumVal, newEnumVal));
}
 
Example #10
Source File: GlobalImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setLocalPull ( PullEvents newLocalPull )
{
    if ( newLocalPull != localPull )
    {
        NotificationChain msgs = null;
        if ( localPull != null )
            msgs = ( (InternalEObject)localPull ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__LOCAL_PULL, null, msgs );
        if ( newLocalPull != null )
            msgs = ( (InternalEObject)newLocalPull ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__LOCAL_PULL, null, msgs );
        msgs = basicSetLocalPull ( newLocalPull, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, GlobalizePackage.GLOBAL__LOCAL_PULL, newLocalPull, newLocalPull ) );
}
 
Example #11
Source File: StartTimerEventItemProvider.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
    * This handles model notifications by calling {@link #updateChildren} to update any cached
    * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public void notifyChanged(Notification notification) {
       updateChildren(notification);

       switch (notification.getFeatureID(StartTimerEvent.class)) {
           case ProcessPackage.START_TIMER_EVENT__FROM:
           case ProcessPackage.START_TIMER_EVENT__AT:
           case ProcessPackage.START_TIMER_EVENT__MONTH:
           case ProcessPackage.START_TIMER_EVENT__DAY:
           case ProcessPackage.START_TIMER_EVENT__HOURS:
           case ProcessPackage.START_TIMER_EVENT__DAY_NUMBER:
           case ProcessPackage.START_TIMER_EVENT__MINUTES:
           case ProcessPackage.START_TIMER_EVENT__SECONDS:
           case ProcessPackage.START_TIMER_EVENT__SCRIPT_TYPE:
               fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
               return;
       }
       super.notifyChanged(notification);
   }
 
Example #12
Source File: WorldImpl.java    From neoscada with Eclipse Public License 1.0 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 #13
Source File: RuleImpl.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public State getDeviceState()
{
  if (deviceState != null && deviceState.eIsProxy())
  {
    InternalEObject oldDeviceState = (InternalEObject)deviceState;
    deviceState = (State)eResolveProxy(oldDeviceState);
    if (deviceState != oldDeviceState)
    {
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuleEnginePackage.RULE__DEVICE_STATE, oldDeviceState, deviceState));
    }
  }
  return deviceState;
}
 
Example #14
Source File: MarkerRangeImpl.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFill( Fill newFill, NotificationChain msgs )
{
	Fill oldFill = fill;
	fill = newFill;
	if ( eNotificationRequired( ) )
	{
		ENotificationImpl notification = new ENotificationImpl( this,
				Notification.SET,
				ComponentPackage.MARKER_RANGE__FILL,
				oldFill,
				newFill );
		if ( msgs == null )
			msgs = notification;
		else
			msgs.add( notification );
	}
	return msgs;
}
 
Example #15
Source File: PoolItemProvider.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
    * This handles model notifications by calling {@link #updateChildren} to update any cached
    * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public void notifyChanged(Notification notification) {
       updateChildren(notification);

       switch (notification.getFeatureID(Pool.class)) {
           case ProcessPackage.POOL__DISPLAY_NAME:
           case ProcessPackage.POOL__ADDITIONAL_RESOURCES:
               fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
               return;
           case ProcessPackage.POOL__DOCUMENTS:
           case ProcessPackage.POOL__SEARCH_INDEXES:
               fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
               return;
       }
       super.notifyChanged(notification);
   }
 
Example #16
Source File: ColorLedImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setUid(String newUid) {
    String oldUid = uid;
    uid = newUid;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.COLOR_LED__UID, oldUid, uid));
}
 
Example #17
Source File: WorldImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public MasterHandlerPriorities getDefaultMasterHandlerPriorities ()
{
    if ( defaultMasterHandlerPriorities != null && defaultMasterHandlerPriorities.eIsProxy () )
    {
        InternalEObject oldDefaultMasterHandlerPriorities = (InternalEObject)defaultMasterHandlerPriorities;
        defaultMasterHandlerPriorities = (MasterHandlerPriorities)eResolveProxy ( oldDefaultMasterHandlerPriorities );
        if ( defaultMasterHandlerPriorities != oldDefaultMasterHandlerPriorities )
        {
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.WORLD__DEFAULT_MASTER_HANDLER_PRIORITIES, oldDefaultMasterHandlerPriorities, defaultMasterHandlerPriorities ) );
        }
    }
    return defaultMasterHandlerPriorities;
}
 
Example #18
Source File: UsesStatementImpl.java    From yang-design-studio with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setPre(String newPre)
{
  String oldPre = pre;
  pre = newPre;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, YangPackage.USES_STATEMENT__PRE, oldPre, pre));
}
 
Example #19
Source File: CallFeatureImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setName(String newName)
{
  String oldName = name;
  name = newName;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, BeeLangTestLanguagePackage.CALL_FEATURE__NAME, oldName, name));
}
 
Example #20
Source File: MBrickletTiltImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setDeviceIdentifier(int newDeviceIdentifier) {
    int oldDeviceIdentifier = deviceIdentifier;
    deviceIdentifier = newDeviceIdentifier;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_TILT__DEVICE_IDENTIFIER,
                oldDeviceIdentifier, deviceIdentifier));
}
 
Example #21
Source File: SerialToNetworkMappingImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDataBits ( short newDataBits )
{
    short oldDataBits = dataBits;
    dataBits = newDataBits;
    if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, CommonPackage.SERIAL_TO_NETWORK_MAPPING__DATA_BITS, oldDataBits, dataBits ) );
}
 
Example #22
Source File: TFTemperatureConfigurationImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setSlowI2C(boolean newSlowI2C) {
    boolean oldSlowI2C = slowI2C;
    slowI2C = newSlowI2C;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.TF_TEMPERATURE_CONFIGURATION__SLOW_I2C,
                oldSlowI2C, slowI2C));
}
 
Example #23
Source File: SerialToNetworkMappingImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setTimeout ( int newTimeout )
{
    int oldTimeout = timeout;
    timeout = newTimeout;
    if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, CommonPackage.SERIAL_TO_NETWORK_MAPPING__TIMEOUT, oldTimeout, timeout ) );
}
 
Example #24
Source File: TFBrickStepperConfigurationImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public void setMaxVelocity(int newMaxVelocity) {
    int oldMaxVelocity = maxVelocity;
    maxVelocity = newMaxVelocity;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET,
                ModelPackage.TF_BRICK_STEPPER_CONFIGURATION__MAX_VELOCITY, oldMaxVelocity, maxVelocity));
}
 
Example #25
Source File: MBrickletSoundIntensityImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void setPosition(char newPosition) {
    char oldPosition = position;
    position = newPosition;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_SOUND_INTENSITY__POSITION,
                oldPosition, position));
}
 
Example #26
Source File: TypeDeclarationTypeImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setEnumerationType(EnumerationTypeType newEnumerationType) {
	if (newEnumerationType != enumerationType) {
		NotificationChain msgs = null;
		if (enumerationType != null)
			msgs = ((InternalEObject)enumerationType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Xpdl1Package.TYPE_DECLARATION_TYPE__ENUMERATION_TYPE, null, msgs);
		if (newEnumerationType != null)
			msgs = ((InternalEObject)newEnumerationType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Xpdl1Package.TYPE_DECLARATION_TYPE__ENUMERATION_TYPE, null, msgs);
		msgs = basicSetEnumerationType(newEnumerationType, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, Xpdl1Package.TYPE_DECLARATION_TYPE__ENUMERATION_TYPE, newEnumerationType, newEnumerationType));
}
 
Example #27
Source File: LocalPathVersionRequirementImpl.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setLocalPath(String newLocalPath) {
	String oldLocalPath = localPath;
	localPath = newLocalPath;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, SemverPackage.LOCAL_PATH_VERSION_REQUIREMENT__LOCAL_PATH, oldLocalPath, localPath));
}
 
Example #28
Source File: BoundsImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setWidth(double newWidth) {
	double oldWidth = width;
	width = newWidth;
	boolean oldWidthESet = widthESet;
	widthESet = true;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, DcPackage.BOUNDS__WIDTH, oldWidth, width, !oldWidthESet));
}
 
Example #29
Source File: NumericAttributeWhereEntryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setOperator(NumericOperator newOperator)
{
  NumericOperator oldOperator = operator;
  operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, Bug287941TestLanguagePackage.NUMERIC_ATTRIBUTE_WHERE_ENTRY__OPERATOR, oldOperator, operator));
}
 
Example #30
Source File: LegendImpl.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setEllipsis( int newEllipsis )
{
	int oldEllipsis = ellipsis;
	ellipsis = newEllipsis;
	boolean oldEllipsisESet = ellipsisESet;
	ellipsisESet = true;
	if ( eNotificationRequired( ) )
		eNotify( new ENotificationImpl( this,
				Notification.SET,
				LayoutPackage.LEGEND__ELLIPSIS,
				oldEllipsis,
				ellipsis,
				!oldEllipsisESet ) );
}