Search in sources :

Example 66 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.

the class SimpleMemberAssignmentImpl method basicSetDefaultValue.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetDefaultValue(Literal newDefaultValue, NotificationChain msgs) {
    Literal oldDefaultValue = defaultValue;
    defaultValue = newDefaultValue;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, oldDefaultValue, newDefaultValue);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Literal(com.robotoworks.mechanoid.net.netModel.Literal)

Example 67 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.

the class SimpleMemberAssignmentImpl method setDefaultValue.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setDefaultValue(Literal newDefaultValue) {
    if (newDefaultValue != defaultValue) {
        NotificationChain msgs = null;
        if (defaultValue != null)
            msgs = ((InternalEObject) defaultValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, null, msgs);
        if (newDefaultValue != null)
            msgs = ((InternalEObject) newDefaultValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, null, msgs);
        msgs = basicSetDefaultValue(newDefaultValue, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, newDefaultValue, newDefaultValue));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 68 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.

the class SimpleMemberImpl method setType.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setType(IntrinsicType newType) {
    if (newType != type) {
        NotificationChain msgs = null;
        if (type != null)
            msgs = ((InternalEObject) type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER__TYPE, null, msgs);
        if (newType != null)
            msgs = ((InternalEObject) newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER__TYPE, null, msgs);
        msgs = basicSetType(newType, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_MEMBER__TYPE, newType, newType));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 69 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.

the class SimpleMemberImpl method basicSetType.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetType(IntrinsicType newType, NotificationChain msgs) {
    IntrinsicType oldType = type;
    type = newType;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_MEMBER__TYPE, oldType, newType);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : IntrinsicType(com.robotoworks.mechanoid.net.netModel.IntrinsicType) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 70 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.

the class SkipMemberImpl method basicSetLiteral.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetLiteral(ComplexTypeLiteral newLiteral, NotificationChain msgs) {
    ComplexTypeLiteral oldLiteral = literal;
    literal = newLiteral;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.SKIP_MEMBER__LITERAL, oldLiteral, newLiteral);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) ComplexTypeLiteral(com.robotoworks.mechanoid.net.netModel.ComplexTypeLiteral)

Aggregations

ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2023 InternalEObject (org.eclipse.emf.ecore.InternalEObject)773 NotificationChain (org.eclipse.emf.common.notify.NotificationChain)629 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)111 Logger (org.slf4j.Logger)110 IPConnection (com.tinkerforge.IPConnection)51 DecimalValue (org.openhab.binding.tinkerforge.internal.types.DecimalValue)51 BigDecimal (java.math.BigDecimal)47 Expression (com.robotoworks.mechanoid.db.sqliteModel.Expression)38 Expression (org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Expression)28 TFBaseConfiguration (org.openhab.binding.tinkerforge.internal.model.TFBaseConfiguration)26 HighLowValue (org.openhab.binding.tinkerforge.internal.types.HighLowValue)17 OnOffValue (org.openhab.binding.tinkerforge.internal.types.OnOffValue)15 EObject (org.eclipse.emf.ecore.EObject)12 XExpression (org.eclipse.xtext.xbase.XExpression)12 MSubDeviceHolder (org.openhab.binding.tinkerforge.internal.model.MSubDeviceHolder)12 TableDefinition (com.robotoworks.mechanoid.db.sqliteModel.TableDefinition)9 Expression (org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.Expression)8 Expression (org.eclipse.xtext.resource.bug385636.Expression)7 Expression_VariableName (org.eclipse.xtext.resource.bug385636.Expression_VariableName)7