Package org.eclipse.emf.common.notify

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


   */
  public void setVariables(varMemberDeclList newVariables)
  {
    if (newVariables != variables)
    {
      NotificationChain msgs = null;
      if (variables != null)
        msgs = ((InternalEObject)variables).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BODY_CLASS__VARIABLES, null, msgs);
      if (newVariables != null)
        msgs = ((InternalEObject)newVariables).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BODY_CLASS__VARIABLES, null, msgs);
      msgs = basicSetVariables(newVariables, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.BODY_CLASS__VARIABLES, newVariables, newVariables));
  }
View Full Code Here


   */
  public void setClassMethodDecl(classMethodDecl newClassMethodDecl)
  {
    if (newClassMethodDecl != classMethodDecl)
    {
      NotificationChain msgs = null;
      if (classMethodDecl != null)
        msgs = ((InternalEObject)classMethodDecl).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BODY_CLASS__CLASS_METHOD_DECL, null, msgs);
      if (newClassMethodDecl != null)
        msgs = ((InternalEObject)newClassMethodDecl).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.BODY_CLASS__CLASS_METHOD_DECL, null, msgs);
      msgs = basicSetClassMethodDecl(newClassMethodDecl, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.BODY_CLASS__CLASS_METHOD_DECL, newClassMethodDecl, newClassMethodDecl));
  }
View Full Code Here

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

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

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

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

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

   */
  public void setCond(primaryExpression newCond)
  {
    if (newCond != cond)
    {
      NotificationChain msgs = null;
      if (cond != null)
        msgs = ((InternalEObject)cond).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_STATEMENT__COND, null, msgs);
      if (newCond != null)
        msgs = ((InternalEObject)newCond).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_STATEMENT__COND, null, msgs);
      msgs = basicSetCond(newCond, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.CASE_STATEMENT__COND, newCond, newCond));
  }
View Full Code Here

   */
  public void setStmList(statementList newStmList)
  {
    if (newStmList != stmList)
    {
      NotificationChain msgs = null;
      if (stmList != null)
        msgs = ((InternalEObject)stmList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_STATEMENT__STM_LIST, null, msgs);
      if (newStmList != null)
        msgs = ((InternalEObject)newStmList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CASE_STATEMENT__STM_LIST, null, msgs);
      msgs = basicSetStmList(newStmList, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.CASE_STATEMENT__STM_LIST, newStmList, newStmList));
  }
View Full Code Here

   */
  public void setMainExpr(simplexExpression newMainExpr)
  {
    if (newMainExpr != mainExpr)
    {
      NotificationChain msgs = null;
      if (mainExpr != null)
        msgs = ((InternalEObject)mainExpr).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.POSTFIX_EXPRESSION__MAIN_EXPR, null, msgs);
      if (newMainExpr != null)
        msgs = ((InternalEObject)newMainExpr).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.POSTFIX_EXPRESSION__MAIN_EXPR, null, msgs);
      msgs = basicSetMainExpr(newMainExpr, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.POSTFIX_EXPRESSION__MAIN_EXPR, newMainExpr, newMainExpr));
  }
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.