use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.
the class SelectExpressionImpl method setWhere.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setWhere(WhereExpressions newWhere) {
if (newWhere != where) {
NotificationChain msgs = null;
if (where != null)
msgs = ((InternalEObject) where).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_EXPRESSION__WHERE, null, msgs);
if (newWhere != null)
msgs = ((InternalEObject) newWhere).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_EXPRESSION__WHERE, null, msgs);
msgs = basicSetWhere(newWhere, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_EXPRESSION__WHERE, newWhere, newWhere));
}
use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.
the class SelectStatementExpressionImpl method setSelect.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelect(SelectStatement newSelect) {
if (newSelect != select) {
NotificationChain msgs = null;
if (select != null)
msgs = ((InternalEObject) select).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT_EXPRESSION__SELECT, null, msgs);
if (newSelect != null)
msgs = ((InternalEObject) newSelect).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT_EXPRESSION__SELECT, null, msgs);
msgs = basicSetSelect(newSelect, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT_EXPRESSION__SELECT, newSelect, newSelect));
}
use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.
the class SelectStatementImpl method setOrderby.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOrderby(OrderingTermList newOrderby) {
if (newOrderby != orderby) {
NotificationChain msgs = null;
if (orderby != null)
msgs = ((InternalEObject) orderby).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__ORDERBY, null, msgs);
if (newOrderby != null)
msgs = ((InternalEObject) newOrderby).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__ORDERBY, null, msgs);
msgs = basicSetOrderby(newOrderby, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT__ORDERBY, newOrderby, newOrderby));
}
use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.
the class SelectStatementImpl method setCore.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCore(SelectCoreExpression newCore) {
if (newCore != core) {
NotificationChain msgs = null;
if (core != null)
msgs = ((InternalEObject) core).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__CORE, null, msgs);
if (newCore != null)
msgs = ((InternalEObject) newCore).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__CORE, null, msgs);
msgs = basicSetCore(newCore, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT__CORE, newCore, newCore));
}
use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.
the class SelectStatementImpl method setLimit.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLimit(Expression newLimit) {
if (newLimit != limit) {
NotificationChain msgs = null;
if (limit != null)
msgs = ((InternalEObject) limit).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__LIMIT, null, msgs);
if (newLimit != null)
msgs = ((InternalEObject) newLimit).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__LIMIT, null, msgs);
msgs = basicSetLimit(newLimit, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT__LIMIT, newLimit, newLimit));
}
Aggregations