Search in sources :

Example 56 with ENotificationImpl

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

the class BooleanLiteralImpl method setLiteral.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setLiteral(BooleanValue newLiteral) {
    BooleanValue oldLiteral = literal;
    literal = newLiteral == null ? LITERAL_EDEFAULT : newLiteral;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.BOOLEAN_LITERAL__LITERAL, oldLiteral, literal));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) BooleanValue(com.robotoworks.mechanoid.net.netModel.BooleanValue)

Example 57 with ENotificationImpl

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

the class ComplexTypeDeclarationImpl 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.COMPLEX_TYPE_DECLARATION__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)

Example 58 with ENotificationImpl

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

the class EnumTypeDeclarationImpl method setSuperType.

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

Example 59 with ENotificationImpl

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

the class GenericListTypeImpl method setElementType.

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

Example 60 with ENotificationImpl

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

the class GenericListTypeImpl method basicSetElementType.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetElementType(Type newElementType, NotificationChain msgs) {
    Type oldElementType = elementType;
    elementType = newElementType;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.GENERIC_LIST_TYPE__ELEMENT_TYPE, oldElementType, newElementType);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Type(com.robotoworks.mechanoid.net.netModel.Type) GenericListType(com.robotoworks.mechanoid.net.netModel.GenericListType) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

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