Search in sources :

Example 96 with InternalEObject

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

the class OrderingTermImpl 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.ORDERING_TERM__EXPRESSION, null, msgs);
        if (newExpression != null)
            msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.ORDERING_TERM__EXPRESSION, null, msgs);
        msgs = basicSetExpression(newExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.ORDERING_TERM__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 97 with InternalEObject

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

the class PrimaryConstraintImpl method setConflictClause.

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

Example 98 with InternalEObject

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

the class SelectCoreImpl method setLeft.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setLeft(SelectCoreExpression newLeft) {
    if (newLeft != left) {
        NotificationChain msgs = null;
        if (left != null)
            msgs = ((InternalEObject) left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_CORE__LEFT, null, msgs);
        if (newLeft != null)
            msgs = ((InternalEObject) newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_CORE__LEFT, null, msgs);
        msgs = basicSetLeft(newLeft, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_CORE__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 99 with InternalEObject

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

the class DefaultConstraintImpl method setDefaultValue.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setDefaultValue(DefaultValue newDefaultValue) {
    if (newDefaultValue != defaultValue) {
        NotificationChain msgs = null;
        if (defaultValue != null)
            msgs = ((InternalEObject) defaultValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.DEFAULT_CONSTRAINT__DEFAULT_VALUE, null, msgs);
        if (newDefaultValue != null)
            msgs = ((InternalEObject) newDefaultValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.DEFAULT_CONSTRAINT__DEFAULT_VALUE, null, msgs);
        msgs = basicSetDefaultValue(newDefaultValue, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.DEFAULT_CONSTRAINT__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 100 with InternalEObject

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

the class DeleteStatementImpl 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.DELETE_STATEMENT__EXPRESSION, null, msgs);
        if (newExpression != null)
            msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.DELETE_STATEMENT__EXPRESSION, null, msgs);
        msgs = basicSetExpression(newExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.DELETE_STATEMENT__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)

Aggregations

InternalEObject (org.eclipse.emf.ecore.InternalEObject)312 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)310 NotificationChain (org.eclipse.emf.common.notify.NotificationChain)267 ArrayList (java.util.ArrayList)2 IPath (org.eclipse.core.runtime.IPath)1 URI (org.eclipse.emf.common.util.URI)1 INode (org.eclipse.xtext.nodemodel.INode)1 Project (org.talend.core.model.properties.Project)1 User (org.talend.core.model.properties.User)1 ERepositoryObjectType (org.talend.core.model.repository.ERepositoryObjectType)1 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)1