Package org.eclipse.emf.common.notify

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


   */
  public void setFExpr(expression newFExpr)
  {
    if (newFExpr != fExpr)
    {
      NotificationChain msgs = null;
      if (fExpr != null)
        msgs = ((InternalEObject)fExpr).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.EXPRESSION__FEXPR, null, msgs);
      if (newFExpr != null)
        msgs = ((InternalEObject)newFExpr).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.EXPRESSION__FEXPR, null, msgs);
      msgs = basicSetFExpr(newFExpr, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.EXPRESSION__FEXPR, newFExpr, newFExpr));
  }
View Full Code Here


   */
  public void setThenStm(statement newThenStm)
  {
    if (newThenStm != thenStm)
    {
      NotificationChain msgs = null;
      if (thenStm != null)
        msgs = ((InternalEObject)thenStm).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__THEN_STM, null, msgs);
      if (newThenStm != null)
        msgs = ((InternalEObject)newThenStm).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__THEN_STM, null, msgs);
      msgs = basicSetThenStm(newThenStm, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.BOOL_EXPRESSION__THEN_STM, newThenStm, newThenStm));
  }
View Full Code Here

   */
  public void setElseStm(statement newElseStm)
  {
    if (newElseStm != elseStm)
    {
      NotificationChain msgs = null;
      if (elseStm != null)
        msgs = ((InternalEObject)elseStm).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__ELSE_STM, null, msgs);
      if (newElseStm != null)
        msgs = ((InternalEObject)newElseStm).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__ELSE_STM, null, msgs);
      msgs = basicSetElseStm(newElseStm, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.BOOL_EXPRESSION__ELSE_STM, newElseStm, newElseStm));
  }
View Full Code Here

   */
  public void setLExpr(relExpression newLExpr)
  {
    if (newLExpr != lExpr)
    {
      NotificationChain msgs = null;
      if (lExpr != null)
        msgs = ((InternalEObject)lExpr).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__LEXPR, null, msgs);
      if (newLExpr != null)
        msgs = ((InternalEObject)newLExpr).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__LEXPR, null, msgs);
      msgs = basicSetLExpr(newLExpr, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.BOOL_EXPRESSION__LEXPR, newLExpr, newLExpr));
  }
View Full Code Here

   */
  public void setRExpr(boolExpression newRExpr)
  {
    if (newRExpr != rExpr)
    {
      NotificationChain msgs = null;
      if (rExpr != null)
        msgs = ((InternalEObject)rExpr).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__REXPR, null, msgs);
      if (newRExpr != null)
        msgs = ((InternalEObject)newRExpr).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BOOL_EXPRESSION__REXPR, null, msgs);
      msgs = basicSetRExpr(newRExpr, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.BOOL_EXPRESSION__REXPR, newRExpr, newRExpr));
  }
View Full Code Here

   */
  public void setBase(IFunctionDefinition newBase)
  {
    if (newBase != base)
    {
      NotificationChain msgs = null;
      if (base != null)
        msgs = ((InternalEObject)base).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.FUNC_DECL__BASE, null, msgs);
      if (newBase != null)
        msgs = ((InternalEObject)newBase).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.FUNC_DECL__BASE, null, msgs);
      msgs = basicSetBase(newBase, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.FUNC_DECL__BASE, newBase, newBase));
  }
View Full Code Here

   */
  public void setHead(caseStatement newHead)
  {
    if (newHead != head)
    {
      NotificationChain msgs = null;
      if (head != null)
        msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_LIST_STM__HEAD, null, msgs);
      if (newHead != null)
        msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_LIST_STM__HEAD, null, msgs);
      msgs = basicSetHead(newHead, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.CASE_LIST_STM__HEAD, newHead, newHead));
  }
View Full Code Here

   */
  public void setTail(caseListStm newTail)
  {
    if (newTail != tail)
    {
      NotificationChain msgs = null;
      if (tail != null)
        msgs = ((InternalEObject)tail).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_LIST_STM__TAIL, null, msgs);
      if (newTail != null)
        msgs = ((InternalEObject)newTail).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_LIST_STM__TAIL, null, msgs);
      msgs = basicSetTail(newTail, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.CASE_LIST_STM__TAIL, newTail, newTail));
  }
View Full Code Here

   */
  public void setDeclaration(IFunctionDefinition newDeclaration)
  {
    if (newDeclaration != declaration)
    {
      NotificationChain msgs = null;
      if (declaration != null)
        msgs = ((InternalEObject)declaration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.FUNCTION__DECLARATION, null, msgs);
      if (newDeclaration != null)
        msgs = ((InternalEObject)newDeclaration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.FUNCTION__DECLARATION, null, msgs);
      msgs = basicSetDeclaration(newDeclaration, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.FUNCTION__DECLARATION, newDeclaration, newDeclaration));
  }
View Full Code Here

   */
  public void setBody(statementBlock newBody)
  {
    if (newBody != body)
    {
      NotificationChain msgs = null;
      if (body != null)
        msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.FUNCTION__BODY, null, msgs);
      if (newBody != null)
        msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.FUNCTION__BODY, null, msgs);
      msgs = basicSetBody(newBody, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.FUNCTION__BODY, newBody, newBody));
  }
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.