Package org.eclipse.emf.common.notify

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


   */
  public void setAsgnmtExpr(assignmentExpressionTail newAsgnmtExpr)
  {
    if (newAsgnmtExpr != asgnmtExpr)
    {
      NotificationChain msgs = null;
      if (asgnmtExpr != null)
        msgs = ((InternalEObject)asgnmtExpr).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.POSTFIX_EXPRESSION__ASGNMT_EXPR, null, msgs);
      if (newAsgnmtExpr != null)
        msgs = ((InternalEObject)newAsgnmtExpr).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.POSTFIX_EXPRESSION__ASGNMT_EXPR, null, msgs);
      msgs = basicSetAsgnmtExpr(newAsgnmtExpr, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.POSTFIX_EXPRESSION__ASGNMT_EXPR, newAsgnmtExpr, newAsgnmtExpr));
  }
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.VECTOR_EXPRESSION__HEAD, null, msgs);
      if (newHead != null)
        msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.VECTOR_EXPRESSION__HEAD, null, msgs);
      msgs = basicSetHead(newHead, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.VECTOR_EXPRESSION__HEAD, newHead, newHead));
  }
View Full Code Here

   */
  public void setName(funcName newName)
  {
    if (newName != name)
    {
      NotificationChain msgs = null;
      if (name != null)
        msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CLASS_METHOD_DECL__NAME, null, msgs);
      if (newName != null)
        msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CLASS_METHOD_DECL__NAME, null, msgs);
      msgs = basicSetName(newName, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.CLASS_METHOD_DECL__NAME, newName, newName));
  }
View Full Code Here

   */
  public void setParams(formalParamList newParams)
  {
    if (newParams != params)
    {
      NotificationChain msgs = null;
      if (params != null)
        msgs = ((InternalEObject)params).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CLASS_METHOD_DECL__PARAMS, null, msgs);
      if (newParams != null)
        msgs = ((InternalEObject)newParams).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.CLASS_METHOD_DECL__PARAMS, null, msgs);
      msgs = basicSetParams(newParams, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.CLASS_METHOD_DECL__PARAMS, newParams, newParams));
  }
View Full Code Here

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

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

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

   */
  public void setName(funcName newName)
  {
    if (newName != name)
    {
      NotificationChain msgs = null;
      if (name != null)
        msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.IFUNCTION_DEFINITION__NAME, null, msgs);
      if (newName != null)
        msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.IFUNCTION_DEFINITION__NAME, null, msgs);
      msgs = basicSetName(newName, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.IFUNCTION_DEFINITION__NAME, newName, newName));
  }
View Full Code Here

   */
  public void setParams(formalParamList newParams)
  {
    if (newParams != params)
    {
      NotificationChain msgs = null;
      if (params != null)
        msgs = ((InternalEObject)params).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.IFUNCTION_DEFINITION__PARAMS, null, msgs);
      if (newParams != null)
        msgs = ((InternalEObject)newParams).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.IFUNCTION_DEFINITION__PARAMS, null, msgs);
      msgs = basicSetParams(newParams, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.IFUNCTION_DEFINITION__PARAMS, newParams, newParams));
  }
View Full Code Here

   */
  public void setParents(classList newParents)
  {
    if (newParents != parents)
    {
      NotificationChain msgs = null;
      if (parents != null)
        msgs = ((InternalEObject)parents).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - S3DPackage.OPT_BODY_CLASS__PARENTS, null, msgs);
      if (newParents != null)
        msgs = ((InternalEObject)newParents).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - S3DPackage.OPT_BODY_CLASS__PARENTS, null, msgs);
      msgs = basicSetParents(newParents, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, S3DPackage.OPT_BODY_CLASS__PARENTS, newParents, newParents));
  }
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.