use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SelectStatementImpl method basicSetCore.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCore(SelectCoreExpression newCore, NotificationChain msgs) {
SelectCoreExpression oldCore = core;
core = newCore;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT__CORE, oldCore, newCore);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SingleSourceJoinImpl method basicSetJoinSource.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetJoinSource(JoinSource newJoinSource, NotificationChain msgs) {
JoinSource oldJoinSource = joinSource;
joinSource = newJoinSource;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SINGLE_SOURCE_JOIN__JOIN_SOURCE, oldJoinSource, newJoinSource);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SingleSourceSelectStatementImpl method basicSetSelectStatement.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSelectStatement(SelectStatement newSelectStatement, NotificationChain msgs) {
SelectStatement oldSelectStatement = selectStatement;
selectStatement = newSelectStatement;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SINGLE_SOURCE_SELECT_STATEMENT__SELECT_STATEMENT, oldSelectStatement, newSelectStatement);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SingleSourceSelectStatementImpl method setSelectStatement.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelectStatement(SelectStatement newSelectStatement) {
if (newSelectStatement != selectStatement) {
NotificationChain msgs = null;
if (selectStatement != null)
msgs = ((InternalEObject) selectStatement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SINGLE_SOURCE_SELECT_STATEMENT__SELECT_STATEMENT, null, msgs);
if (newSelectStatement != null)
msgs = ((InternalEObject) newSelectStatement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SINGLE_SOURCE_SELECT_STATEMENT__SELECT_STATEMENT, null, msgs);
msgs = basicSetSelectStatement(newSelectStatement, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SINGLE_SOURCE_SELECT_STATEMENT__SELECT_STATEMENT, newSelectStatement, newSelectStatement));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SingleSourceTableImpl method getTableReference.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TableDefinition getTableReference() {
if (tableReference != null && tableReference.eIsProxy()) {
InternalEObject oldTableReference = (InternalEObject) tableReference;
tableReference = (TableDefinition) eResolveProxy(oldTableReference);
if (tableReference != oldTableReference) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.SINGLE_SOURCE_TABLE__TABLE_REFERENCE, oldTableReference, tableReference));
}
}
return tableReference;
}
Aggregations