CloneSet134


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27230.973class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127201
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingHelperImpl.java
227213
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingImpl.java
Next
Last
Clone Instance
1
Line Count
27
Source Line
201
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingHelperImpl.java

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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));
}


First
Previous
Clone Instance
2
Line Count
27
Source Line
213
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingImpl.java

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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 AbstractionParameter Count: 3Parameter Bindings

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetNestedIn( [[#variable190505c0]] newNestedIn, NotificationChain msgs) {
  msgs = eBasicSetContainer((InternalEObject) newNestedIn, MappingPackage. [[#variable19067d60]], msgs);
  return msgs;
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setNestedIn( [[#variable190505c0]] newNestedIn) {
  if (newNestedIn != eInternalContainer() || (eContainerFeatureID != MappingPackage. [[#variable19067d60]]&& 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. [[#variable19050a40]],  [[#variable190505c0]].class , msgs);
    msgs = basicSetNestedIn(newNestedIn, msgs);
    if (msgs != null)
      msgs.dispatch();
  }
  else
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage. [[#variable19067d60]], newNestedIn, newNestedIn));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#190505c0]]
MappingHelper 
12[[#190505c0]]
Mapping 
21[[#19067d60]]
MAPPING_HELPER__NESTED_IN 
22[[#19067d60]]
MAPPING__NESTED_IN 
31[[#19050a40]]
MAPPING_HELPER__NESTED 
32[[#19050a40]]
MAPPING__NESTED