Package org.eclipse.emf.common.notify

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


   */
  public void setLocation(Location newLocation) {
    if (newLocation != eInternalContainer() || (eContainerFeatureID() != TargetPlatformPackage.IU__LOCATION && newLocation != null)) {
      if (EcoreUtil.isAncestor(this, newLocation))
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
      NotificationChain msgs = null;
      if (eInternalContainer() != null)
        msgs = eBasicRemoveFromContainer(msgs);
      if (newLocation != null)
        msgs = ((InternalEObject)newLocation).eInverseAdd(this, TargetPlatformPackage.LOCATION__IUS, Location.class, msgs);
      msgs = basicSetLocation(newLocation, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, TargetPlatformPackage.IU__LOCATION, newLocation, newLocation));
  }
View Full Code Here


   */
  public void setTargetPlatform(TargetPlatform newTargetPlatform) {
    if (newTargetPlatform != eInternalContainer() || (eContainerFeatureID() != TargetPlatformPackage.ENVIRONMENT__TARGET_PLATFORM && newTargetPlatform != null)) {
      if (EcoreUtil.isAncestor(this, newTargetPlatform))
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
      NotificationChain msgs = null;
      if (eInternalContainer() != null)
        msgs = eBasicRemoveFromContainer(msgs);
      if (newTargetPlatform != null)
        msgs = ((InternalEObject)newTargetPlatform).eInverseAdd(this, TargetPlatformPackage.TARGET_PLATFORM__CONTENTS, TargetPlatform.class, msgs);
      msgs = basicSetTargetPlatform(newTargetPlatform, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, TargetPlatformPackage.ENVIRONMENT__TARGET_PLATFORM, newTargetPlatform, newTargetPlatform));
  }
View Full Code Here

   */
  public void setTargetPlatform(TargetPlatform newTargetPlatform) {
    if (newTargetPlatform != eInternalContainer() || (eContainerFeatureID() != TargetPlatformPackage.INCLUDE_DECLARATION__TARGET_PLATFORM && newTargetPlatform != null)) {
      if (EcoreUtil.isAncestor(this, newTargetPlatform))
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
      NotificationChain msgs = null;
      if (eInternalContainer() != null)
        msgs = eBasicRemoveFromContainer(msgs);
      if (newTargetPlatform != null)
        msgs = ((InternalEObject)newTargetPlatform).eInverseAdd(this, TargetPlatformPackage.TARGET_PLATFORM__CONTENTS, TargetPlatform.class, msgs);
      msgs = basicSetTargetPlatform(newTargetPlatform, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, TargetPlatformPackage.INCLUDE_DECLARATION__TARGET_PLATFORM, newTargetPlatform, newTargetPlatform));
  }
View Full Code Here

   */
  public void setTargetPlatform(TargetPlatform newTargetPlatform) {
    if (newTargetPlatform != eInternalContainer() || (eContainerFeatureID() != TargetPlatformPackage.LOCATION__TARGET_PLATFORM && newTargetPlatform != null)) {
      if (EcoreUtil.isAncestor(this, newTargetPlatform))
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
      NotificationChain msgs = null;
      if (eInternalContainer() != null)
        msgs = eBasicRemoveFromContainer(msgs);
      if (newTargetPlatform != null)
        msgs = ((InternalEObject)newTargetPlatform).eInverseAdd(this, TargetPlatformPackage.TARGET_PLATFORM__CONTENTS, TargetPlatform.class, msgs);
      msgs = basicSetTargetPlatform(newTargetPlatform, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, TargetPlatformPackage.LOCATION__TARGET_PLATFORM, newTargetPlatform, newTargetPlatform));
  }
View Full Code Here

   */
  public void setTargetPlatform(TargetPlatform newTargetPlatform) {
    if (newTargetPlatform != eInternalContainer() || (eContainerFeatureID() != TargetPlatformPackage.OPTIONS__TARGET_PLATFORM && newTargetPlatform != null)) {
      if (EcoreUtil.isAncestor(this, newTargetPlatform))
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
      NotificationChain msgs = null;
      if (eInternalContainer() != null)
        msgs = eBasicRemoveFromContainer(msgs);
      if (newTargetPlatform != null)
        msgs = ((InternalEObject)newTargetPlatform).eInverseAdd(this, TargetPlatformPackage.TARGET_PLATFORM__CONTENTS, TargetPlatform.class, msgs);
      msgs = basicSetTargetPlatform(newTargetPlatform, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, TargetPlatformPackage.OPTIONS__TARGET_PLATFORM, newTargetPlatform, newTargetPlatform));
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setConclusionRule(DerivationRule newConclusionRule) {
    if (newConclusionRule != conclusionRule) {
      NotificationChain msgs = null;
      if (conclusionRule != null)
        msgs = ((InternalEObject)conclusionRule).eInverseRemove(this, URMLPackage.DERIVATION_RULE__CONCLUSION, DerivationRule.class, msgs);
      if (newConclusionRule != null)
        msgs = ((InternalEObject)newConclusionRule).eInverseAdd(this, URMLPackage.DERIVATION_RULE__CONCLUSION, DerivationRule.class, msgs);
      msgs = basicSetConclusionRule(newConclusionRule, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, URMLPackage.CLASSIFIER_ATOM__CONCLUSION_RULE, newConclusionRule, newConclusionRule));
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setConclusionRule(DerivationRule newConclusionRule) {
    if (newConclusionRule != conclusionRule) {
      NotificationChain msgs = null;
      if (conclusionRule != null)
        msgs = ((InternalEObject)conclusionRule).eInverseRemove(this, URMLPackage.DERIVATION_RULE__CONCLUSION, DerivationRule.class, msgs);
      if (newConclusionRule != null)
        msgs = ((InternalEObject)newConclusionRule).eInverseAdd(this, URMLPackage.DERIVATION_RULE__CONCLUSION, DerivationRule.class, msgs);
      msgs = basicSetConclusionRule(newConclusionRule, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, URMLPackage.BINARY_ASSOCIATION_ATOM__CONCLUSION_RULE, newConclusionRule, newConclusionRule));
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setConditionRule(Rule newConditionRule) {
    if (newConditionRule != conditionRule) {
      NotificationChain msgs = null;
      if (conditionRule != null)
        msgs = ((InternalEObject)conditionRule).eInverseRemove(this, URMLPackage.RULE__CONDITION, Rule.class, msgs);
      if (newConditionRule != null)
        msgs = ((InternalEObject)newConditionRule).eInverseAdd(this, URMLPackage.RULE__CONDITION, Rule.class, msgs);
      msgs = basicSetConditionRule(newConditionRule, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, URMLPackage.ROLE_TYPE_ATOM__CONDITION_RULE, newConditionRule, newConditionRule));
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setConclusionRule(DerivationRule newConclusionRule) {
    if (newConclusionRule != conclusionRule) {
      NotificationChain msgs = null;
      if (conclusionRule != null)
        msgs = ((InternalEObject)conclusionRule).eInverseRemove(this, URMLPackage.DERIVATION_RULE__CONCLUSION, DerivationRule.class, msgs);
      if (newConclusionRule != null)
        msgs = ((InternalEObject)newConclusionRule).eInverseAdd(this, URMLPackage.DERIVATION_RULE__CONCLUSION, DerivationRule.class, msgs);
      msgs = basicSetConclusionRule(newConclusionRule, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, URMLPackage.CONCLUSION__CONCLUSION_RULE, newConclusionRule, newConclusionRule));
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setConditionRule(Rule newConditionRule) {
    if (newConditionRule != conditionRule) {
      NotificationChain msgs = null;
      if (conditionRule != null)
        msgs = ((InternalEObject)conditionRule).eInverseRemove(this, URMLPackage.RULE__CONDITION, Rule.class, msgs);
      if (newConditionRule != null)
        msgs = ((InternalEObject)newConditionRule).eInverseAdd(this, URMLPackage.RULE__CONDITION, Rule.class, msgs);
      msgs = basicSetConditionRule(newConditionRule, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, URMLPackage.CONDITION__CONDITION_RULE, newConditionRule, newConditionRule));
  }
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.