Search in sources :

Example 1 with SynchronizationPolicy

use of org.eclipse.sirius.components.view.SynchronizationPolicy in project sirius-components by eclipse-sirius.

the class DiagramElementDescriptionImpl method setSynchronizationPolicy.

/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 *
 * @generated
 */
@Override
public void setSynchronizationPolicy(SynchronizationPolicy newSynchronizationPolicy) {
    SynchronizationPolicy oldSynchronizationPolicy = this.synchronizationPolicy;
    this.synchronizationPolicy = newSynchronizationPolicy == null ? SYNCHRONIZATION_POLICY_EDEFAULT : newSynchronizationPolicy;
    if (this.eNotificationRequired())
        this.eNotify(new ENotificationImpl(this, Notification.SET, ViewPackage.DIAGRAM_ELEMENT_DESCRIPTION__SYNCHRONIZATION_POLICY, oldSynchronizationPolicy, this.synchronizationPolicy));
}
Also used : SynchronizationPolicy(org.eclipse.sirius.components.view.SynchronizationPolicy) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 SynchronizationPolicy (org.eclipse.sirius.components.view.SynchronizationPolicy)1