Package org.eclipse.emf.common.notify

Examples of org.eclipse.emf.common.notify.NotificationChain


     * <!-- end-user-doc -->
     * @generated
     */
    public void setProjectInternal( Project newProjectInternal ) {
        if (newProjectInternal != projectInternal) {
            NotificationChain msgs = null;
            if (projectInternal != null)
                msgs = ((InternalEObject)projectInternal).eInverseRemove(this, ProjectPackage.PROJECT__ELEMENTS_INTERNAL, Project.class, msgs);
            if (newProjectInternal != null)
                msgs = ((InternalEObject)newProjectInternal).eInverseAdd(this, ProjectPackage.PROJECT__ELEMENTS_INTERNAL, Project.class, msgs);
            msgs = basicSetProjectInternal(newProjectInternal, msgs);
            if (msgs != null) msgs.dispatch();
        }
        else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.PAGE__PROJECT_INTERNAL, newProjectInternal, newProjectInternal));
    }
View Full Code Here


        super.didAdd(index, newObject);
    }

    @Override
    public NotificationChain inverseAdd( Layer object, NotificationChain notifications ) {
        NotificationChain notificationChain = super.inverseAdd(object, notifications);
        if (ProjectPlugin.isDebugging(Trace.MODEL))
            ProjectPlugin
                    .trace(
                            getClass(),
                            "inverseAdd() = " + ((Layer) object).getID() + " to map " + getMap().getName(), null); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

        }
        if (newMap != null) {
            newMap.eAdapters().add(selectionListener);
            newMap.addDeepAdapter(selectionListener);
        }
        NotificationChain change = super.basicSetMapInternal(newMap, msgs);
        if (getMapInternal() != null){
            getMapInternal().addDeepAdapter(this.visibilityChangedListener);
        }
       
        return change;
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setAuthor(Writer newAuthor) {
    if (newAuthor != author) {
      NotificationChain msgs = null;
      if (author != null)
        msgs = ((InternalEObject)author).eInverseRemove(this, LibraryPackage.WRITER__BOOKS, Writer.class, msgs);
      if (newAuthor != null)
        msgs = ((InternalEObject)newAuthor).eInverseAdd(this, LibraryPackage.WRITER__BOOKS, Writer.class, msgs);
      msgs = basicSetAuthor(newAuthor, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, LibraryPackage.BOOK__AUTHOR, newAuthor, newAuthor));
  }
View Full Code Here

   */
  public void setQual(qualifier newQual)
  {
    if (newQual != qual)
    {
      NotificationChain msgs = null;
      if (qual != null)
        msgs = ((InternalEObject)qual).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VanbPackage.SINGLE_PATTERN__QUAL, null, msgs);
      if (newQual != null)
        msgs = ((InternalEObject)newQual).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VanbPackage.SINGLE_PATTERN__QUAL, null, msgs);
      msgs = basicSetQual(newQual, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, VanbPackage.SINGLE_PATTERN__QUAL, newQual, newQual));
  }
View Full Code Here

   */
  public void setPatt(multilinePattern newPatt)
  {
    if (newPatt != patt)
    {
      NotificationChain msgs = null;
      if (patt != null)
        msgs = ((InternalEObject)patt).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VanbPackage.SINGLE_PATTERN__PATT, null, msgs);
      if (newPatt != null)
        msgs = ((InternalEObject)newPatt).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VanbPackage.SINGLE_PATTERN__PATT, null, msgs);
      msgs = basicSetPatt(newPatt, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, VanbPackage.SINGLE_PATTERN__PATT, newPatt, newPatt));
  }
View Full Code Here

   */
  public void setSp(simplePattern newSp)
  {
    if (newSp != sp)
    {
      NotificationChain msgs = null;
      if (sp != null)
        msgs = ((InternalEObject)sp).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VanbPackage.SINGLE_PATTERN__SP, null, msgs);
      if (newSp != null)
        msgs = ((InternalEObject)newSp).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VanbPackage.SINGLE_PATTERN__SP, null, msgs);
      msgs = basicSetSp(newSp, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, VanbPackage.SINGLE_PATTERN__SP, newSp, newSp));
  }
View Full Code Here

   */
  public void setEBindingInput(BindingInput newEBindingInput)
  {
    if (newEBindingInput != eBindingInput)
    {
      NotificationChain msgs = null;
      if (eBindingInput != null)
        msgs = ((InternalEObject)eBindingInput).eInverseRemove(
          this,
          EOPPOSITE_FEATURE_BASE - WSDLPackage.BINDING_OPERATION__EBINDING_INPUT,
          null,
          msgs);
      if (newEBindingInput != null)
        msgs = ((InternalEObject)newEBindingInput).eInverseAdd(
          this,
          EOPPOSITE_FEATURE_BASE - WSDLPackage.BINDING_OPERATION__EBINDING_INPUT,
          null,
          msgs);
      msgs = basicSetEBindingInput(newEBindingInput, msgs);
      if (msgs != null)
        msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(
        this,
        Notification.SET,
View Full Code Here

   */
  public void setEBindingOutput(BindingOutput newEBindingOutput)
  {
    if (newEBindingOutput != eBindingOutput)
    {
      NotificationChain msgs = null;
      if (eBindingOutput != null)
        msgs = ((InternalEObject)eBindingOutput).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
          - WSDLPackage.BINDING_OPERATION__EBINDING_OUTPUT, null, msgs);
      if (newEBindingOutput != null)
        msgs = ((InternalEObject)newEBindingOutput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
          - WSDLPackage.BINDING_OPERATION__EBINDING_OUTPUT, null, msgs);
      msgs = basicSetEBindingOutput(newEBindingOutput, msgs);
      if (msgs != null)
        msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(
        this,
        Notification.SET,
View Full Code Here

   */
  public void setEInput(Input newEInput)
  {
    if (newEInput != eInput)
    {
      NotificationChain msgs = null;
      if (eInput != null)
        msgs = ((InternalEObject)eInput).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WSDLPackage.OPERATION__EINPUT, null, msgs);
      if (newEInput != null)
        msgs = ((InternalEObject)newEInput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WSDLPackage.OPERATION__EINPUT, null, msgs);
      msgs = basicSetEInput(newEInput, msgs);
      if (msgs != null)
        msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, WSDLPackage.OPERATION__EINPUT, newEInput, newEInput));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.notify.NotificationChain

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.