Search in sources :

Example 46 with InternalEObject

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

the class CastExpressionImpl method setExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setExpression(Expression newExpression) {
    if (newExpression != expression) {
        NotificationChain msgs = null;
        if (expression != null)
            msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, null, msgs);
        if (newExpression != null)
            msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, null, msgs);
        msgs = basicSetExpression(newExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, newExpression, newExpression));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 47 with InternalEObject

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

the class CheckConstraintImpl method setExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setExpression(Expression newExpression) {
    if (newExpression != expression) {
        NotificationChain msgs = null;
        if (expression != null)
            msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, null, msgs);
        if (newExpression != null)
            msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, null, msgs);
        msgs = basicSetExpression(newExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, newExpression, newExpression));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 48 with InternalEObject

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

the class ColumnSourceRefImpl method getColumn.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public ColumnSource getColumn() {
    if (column != null && column.eIsProxy()) {
        InternalEObject oldColumn = (InternalEObject) column;
        column = (ColumnSource) eResolveProxy(oldColumn);
        if (column != oldColumn) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.COLUMN_SOURCE_REF__COLUMN, oldColumn, column));
        }
    }
    return column;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 49 with InternalEObject

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

the class ColumnSourceRefImpl method getSource.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public SelectSource getSource() {
    if (source != null && source.eIsProxy()) {
        InternalEObject oldSource = (InternalEObject) source;
        source = (SelectSource) eResolveProxy(oldSource);
        if (source != oldSource) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.COLUMN_SOURCE_REF__SOURCE, oldSource, source));
        }
    }
    return source;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 50 with InternalEObject

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

the class FunctionArgumentImpl method getArg.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public FunctionArg getArg() {
    if (arg != null && arg.eIsProxy()) {
        InternalEObject oldArg = (InternalEObject) arg;
        arg = (FunctionArg) eResolveProxy(oldArg);
        if (arg != oldArg) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.FUNCTION_ARGUMENT__ARG, oldArg, arg));
        }
    }
    return arg;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Aggregations

InternalEObject (org.eclipse.emf.ecore.InternalEObject)791 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)761 NotificationChain (org.eclipse.emf.common.notify.NotificationChain)607 EObject (org.eclipse.emf.ecore.EObject)12 URI (org.eclipse.emf.common.util.URI)11 EClass (org.eclipse.emf.ecore.EClass)6 Resource (org.eclipse.emf.ecore.resource.Resource)6 XtextResource (org.eclipse.xtext.resource.XtextResource)6 Test (org.junit.Test)5 INode (org.eclipse.xtext.nodemodel.INode)4 ArrayList (java.util.ArrayList)3 EPackage (org.eclipse.emf.ecore.EPackage)3 EClassifier (org.eclipse.emf.ecore.EClassifier)2 EReference (org.eclipse.emf.ecore.EReference)2 EStructuralFeature (org.eclipse.emf.ecore.EStructuralFeature)2 BinaryResourceImpl (org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl)2 InternalEList (org.eclipse.emf.ecore.util.InternalEList)2 Grammar (org.eclipse.xtext.Grammar)2 JvmAnnotationType (org.eclipse.xtext.common.types.JvmAnnotationType)2 IResourceDescription (org.eclipse.xtext.resource.IResourceDescription)2