Search in sources :

Example 1 with Other

use of org.iobserve.model.test.storage.one.Other in project iobserve-analysis by research-iobserve.

the class SpecialAImpl method setRelate.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setRelate(Other newRelate) {
    Other oldRelate = relate;
    relate = newRelate;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, OnePackage.SPECIAL_A__RELATE, oldRelate, relate));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Other(org.iobserve.model.test.storage.one.Other)

Example 2 with Other

use of org.iobserve.model.test.storage.one.Other in project iobserve-analysis by research-iobserve.

the class LinkImpl method setReference.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setReference(Other newReference) {
    Other oldReference = reference;
    reference = newReference;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TwoPackage.LINK__REFERENCE, oldReference, reference));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Other(org.iobserve.model.test.storage.one.Other)

Example 3 with Other

use of org.iobserve.model.test.storage.one.Other in project iobserve-analysis by research-iobserve.

the class EvalProxyDBTest method checkProxies.

private void checkProxies(final String label, final Two retrievedModelTwo) {
    System.out.println("Step " + label);
    for (final Link l : retrievedModelTwo.getLinks()) {
        final Other ref = l.getReference();
        System.out.println("Link " + ref.getName() + " " + ref.eIsProxy() + " -- " + ((BasicEObjectImpl) ref).eProxyURI());
    }
}
Also used : Link(org.iobserve.model.test.storage.two.Link) BasicEObjectImpl(org.eclipse.emf.ecore.impl.BasicEObjectImpl) Other(org.iobserve.model.test.storage.one.Other)

Example 4 with Other

use of org.iobserve.model.test.storage.one.Other in project iobserve-analysis by research-iobserve.

the class EvalProxyTest method checkProxies.

private void checkProxies(final String label, final Resource resource) {
    System.out.println("Step " + label);
    for (final EObject o : resource.getContents()) {
        if (o instanceof Two) {
            for (final EObject l : ((Two) o).getLinks()) {
                if (l instanceof Link) {
                    final Other ref = ((Link) l).getReference();
                    System.out.println("Link " + ref.getName() + " " + ref.eIsProxy() + " -- " + ((BasicEObjectImpl) ref).eProxyURI());
                }
            }
        }
    }
}
Also used : EObject(org.eclipse.emf.ecore.EObject) Two(org.iobserve.model.test.storage.two.Two) Link(org.iobserve.model.test.storage.two.Link) BasicEObjectImpl(org.eclipse.emf.ecore.impl.BasicEObjectImpl) Other(org.iobserve.model.test.storage.one.Other)

Example 5 with Other

use of org.iobserve.model.test.storage.one.Other in project iobserve-analysis by research-iobserve.

the class OtherSubTypeImpl method basicSetOther.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetOther(Other newOther, NotificationChain msgs) {
    Other oldOther = other;
    other = newOther;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OnePackage.OTHER_SUB_TYPE__OTHER, oldOther, newOther);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Other(org.iobserve.model.test.storage.one.Other)

Aggregations

Other (org.iobserve.model.test.storage.one.Other)6 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)3 BasicEObjectImpl (org.eclipse.emf.ecore.impl.BasicEObjectImpl)2 Link (org.iobserve.model.test.storage.two.Link)2 EObject (org.eclipse.emf.ecore.EObject)1 Two (org.iobserve.model.test.storage.two.Two)1