public NotificationChain basicSetNestedIn(MappingHelper newNestedIn, NotificationChain msgs) { msgs = eBasicSetContainer((InternalEObject)newNestedIn, MappingPackage.MAPPING_HELPER__NESTED_IN, msgs); return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setNestedIn(MappingHelper newNestedIn) { if (newNestedIn != eInternalContainer() || (eContainerFeatureID != MappingPackage.MAPPING_HELPER__NESTED_IN && newNestedIn != null)) { if (EcoreUtil.isAncestor(this, newNestedIn)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newNestedIn != null) msgs = ((InternalEObject)newNestedIn).eInverseAdd(this, MappingPackage.MAPPING_HELPER__NESTED, MappingHelper.class, msgs); msgs = basicSetNestedIn(newNestedIn, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING_HELPER__NESTED_IN, newNestedIn, newNestedIn));
public NotificationChain basicSetNestedIn(Mapping newNestedIn, NotificationChain msgs) { msgs = eBasicSetContainer((InternalEObject)newNestedIn, MappingPackage.MAPPING__NESTED_IN, msgs); return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setNestedIn(Mapping newNestedIn) { if (newNestedIn != eInternalContainer() || (eContainerFeatureID != MappingPackage.MAPPING__NESTED_IN && newNestedIn != null)) { if (EcoreUtil.isAncestor(this, newNestedIn)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newNestedIn != null) msgs = ((InternalEObject)newNestedIn).eInverseAdd(this, MappingPackage.MAPPING__NESTED, Mapping.class, msgs); msgs = basicSetNestedIn(newNestedIn, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING__NESTED_IN, newNestedIn, newNestedIn));
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingHelperImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public NotificationChain basicSetNestedIn(MappingHelper newNestedIn, NotificationChain msgs)
1
public NotificationChain basicSetNestedIn(Mapping newNestedIn, NotificationChain msgs)
2
  {
2
  {
3
    msgs = eBasicSetContainer((InternalEObject)newNestedIn, MappingPackage.MAPPING_HELPER__NESTED_IN, msgs);
3
    msgs = eBasicSetContainer((InternalEObject)newNestedIn, MappingPackage.MAPPING__NESTED_IN, msgs);
4
    return msgs;
4
    return msgs;
5
  }
5
  }
6
  /**
6
  /**
7
   * <!-- begin-user-doc -->
7
   * <!-- begin-user-doc -->
8
   * <!-- end-user-doc -->
8
   * <!-- end-user-doc -->
9
   * @generated
9
   * @generated
10
   */
10
   */
11
  public void setNestedIn(MappingHelper newNestedIn)
11
  public void setNestedIn(Mapping newNestedIn)
12
  {
12
  {
13
    if (newNestedIn != eInternalContainer() || (eContainerFeatureID != MappingPackage.MAPPING_HELPER__NESTED_IN && newNestedIn != null))
13
    if (newNestedIn != eInternalContainer() || (eContainerFeatureID != MappingPackage.MAPPING__NESTED_IN && newNestedIn != null))
14
    {
14
    {
15
      if (EcoreUtil.isAncestor(this, newNestedIn))
15
      if (EcoreUtil.isAncestor(this, newNestedIn))
16
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
16
        throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
17
      NotificationChain msgs = null;
17
      NotificationChain msgs = null;
18
      if (eInternalContainer() != null)
18
      if (eInternalContainer() != null)
19
        msgs = eBasicRemoveFromContainer(msgs);
19
        msgs = eBasicRemoveFromContainer(msgs);
20
      if (newNestedIn != null)
20
      if (newNestedIn != null)
21
        msgs = ((InternalEObject)newNestedIn).eInverseAdd(this, MappingPackage.MAPPING_HELPER__NESTED, MappingHelper.class, msgs);
21
        msgs = ((InternalEObject)newNestedIn).eInverseAdd(this, MappingPackage.MAPPING__NESTED, Mapping.class, msgs);
22
      msgs = basicSetNestedIn(newNestedIn, msgs);
22
      msgs = basicSetNestedIn(newNestedIn, msgs);
23
      if (msgs != null) msgs.dispatch();
23
      if (msgs != null) msgs.dispatch();
24
    }
24
    }
25
    else if (eNotificationRequired())
25
    else if (eNotificationRequired())
26
      eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING_HELPER__NESTED_IN, newNestedIn, newNestedIn));
26
      eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING__NESTED_IN, newNestedIn, newNestedIn));
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0