Package org.eclipse.emf.ecore.impl

Examples of org.eclipse.emf.ecore.impl.ENotificationImpl


   */
  public void setType(Type newType) {
    Type oldType = type;
    type = newType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.STRUCTURAL_FEATURE__TYPE, oldType, type));
  }
View Full Code Here


   */
  public void setIsReadOnly(boolean newIsReadOnly) {
    boolean oldIsReadOnly = isReadOnly;
    isReadOnly = newIsReadOnly;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.STRUCTURAL_FEATURE__IS_READ_ONLY, oldIsReadOnly, isReadOnly));
  }
View Full Code Here

   */
  public void setName(String newName) {
    String oldName = name;
    name = newName;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.GENERALIZATION__NAME, oldName, name));
  }
View Full Code Here

   */
  public void setIsDerived(boolean newIsDerived) {
    boolean oldIsDerived = isDerived;
    isDerived = newIsDerived;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.PROPERTY__IS_DERIVED, oldIsDerived, isDerived));
  }
View Full Code Here

   */
  public void setIsNavigable(boolean newIsNavigable) {
    boolean oldIsNavigable = isNavigable;
    isNavigable = newIsNavigable;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.PROPERTY__IS_NAVIGABLE, oldIsNavigable, isNavigable));
  }
View Full Code Here

    if (associationEnd != null && associationEnd.eIsProxy()) {
      InternalEObject oldAssociationEnd = (InternalEObject)associationEnd;
      associationEnd = (Association)eResolveProxy(oldAssociationEnd);
      if (associationEnd != oldAssociationEnd) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, OntoUMLPackage.PROPERTY__ASSOCIATION_END, oldAssociationEnd, associationEnd));
      }
    }
    return associationEnd;
  }
View Full Code Here

   */
  public NotificationChain basicSetAssociationEnd(Association newAssociationEnd, NotificationChain msgs) {
    Association oldAssociationEnd = associationEnd;
    associationEnd = newAssociationEnd;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OntoUMLPackage.PROPERTY__ASSOCIATION_END, oldAssociationEnd, newAssociationEnd);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }
View Full Code Here

        msgs = ((InternalEObject)newAssociationEnd).eInverseAdd(this, OntoUMLPackage.ASSOCIATION__ASSOCIATION_END, Association.class, msgs);
      msgs = basicSetAssociationEnd(newAssociationEnd, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.PROPERTY__ASSOCIATION_END, newAssociationEnd, newAssociationEnd));
  }
View Full Code Here

   */
  public void setAssociationEndPositionAux(int newAssociationEndPositionAux) {
    int oldAssociationEndPositionAux = associationEndPositionAux;
    associationEndPositionAux = newAssociationEndPositionAux;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.PROPERTY__ASSOCIATION_END_POSITION_AUX, oldAssociationEndPositionAux, associationEndPositionAux));
  }
View Full Code Here

      }
    }
    String oldName = name;
    name = newName;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, OntoUMLPackage.NAMED_ELEMENT__NAME, oldName, name));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.impl.ENotificationImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.