Search in sources :

Example 61 with InternalEObject

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

the class AlterTableRenameStatementImpl method getTable.

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

Example 62 with InternalEObject

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

the class CaseExpressionImpl method setCaseExpression.

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

Example 63 with InternalEObject

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

the class ExprAddImpl method setLeft.

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

Example 64 with InternalEObject

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

the class ExprAndImpl method setLeft.

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

Example 65 with InternalEObject

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

the class ExprBitImpl method setLeft.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setLeft(Expression newLeft) {
    if (newLeft != left) {
        NotificationChain msgs = null;
        if (left != null)
            msgs = ((InternalEObject) left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_BIT__LEFT, null, msgs);
        if (newLeft != null)
            msgs = ((InternalEObject) newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_BIT__LEFT, null, msgs);
        msgs = basicSetLeft(newLeft, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_BIT__LEFT, newLeft, newLeft));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) 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