public EStructuralFeature basicGetFeature() { return feature; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public void setFeature(EStructuralFeature newFeature) { EStructuralFeature oldFeature = basicGetFeature(); feature = newFeature; featureName = null; if (feature != null && feature.eIsProxy()) eFlags |= EPROXY_FEATURECHANGE; else eFlags &= ~EPROXY_FEATURECHANGE; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public void unsetFeature() { setFeature(null);
public EStructuralFeature basicGetFeature() { return feature; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public void setFeature(EStructuralFeature newFeature) { EStructuralFeature oldFeature = basicGetFeature(); feature = newFeature; featureName = null; if (feature != null && feature.eIsProxy()) eFlags |= EPROXY_FEATURECHANGE; else eFlags &= ~EPROXY_FEATURECHANGE; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public void unsetFeature() { setFeature(null);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/FeatureChangeImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/FeatureMapEntryImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public EStructuralFeature basicGetFeature()
1
public EStructuralFeature basicGetFeature()
2
  {
2
  {
3
    return feature;
3
    return feature;
4
  }
4
  }
5
  /**
5
  /**
6
   * <!-- begin-user-doc -->
6
   * <!-- begin-user-doc -->
7
   * <!-- end-user-doc -->
7
   * <!-- end-user-doc -->
8
   * @generated NOT
8
   * @generated NOT
9
   */
9
   */
10
  public void setFeature(EStructuralFeature newFeature)
10
  public void setFeature(EStructuralFeature newFeature)
11
  {
11
  {
12
    EStructuralFeature oldFeature = basicGetFeature();
12
    EStructuralFeature oldFeature = basicGetFeature();
13
    feature = newFeature;
13
    feature = newFeature;
14
    featureName = null;
14
    featureName = null;
15
    if (feature != null && feature.eIsProxy())
15
    if (feature != null && feature.eIsProxy())
16
      eFlags |= EPROXY_FEATURECHANGE;
16
      eFlags |= EPROXY_FEATURECHANGE;
17
    else 
17
    else 
18
      eFlags &= ~EPROXY_FEATURECHANGE;
18
      eFlags &= ~EPROXY_FEATURECHANGE;
19
    if (eNotificationRequired())
19
    if (eNotificationRequired())
20
      eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature));
20
      eNotify(new ENotificationImpl(this, Notification.SET, ChangePackage.FEATURE_CHANGE__FEATURE, oldFeature, newFeature));
21
  }
21
  }
22
  /**
22
  /**
23
   * <!-- begin-user-doc -->
23
   * <!-- begin-user-doc -->
24
   * <!-- end-user-doc -->
24
   * <!-- end-user-doc -->
25
   * @generated NOT
25
   * @generated NOT
26
   */
26
   */
27
  public void unsetFeature()
27
  public void unsetFeature()
28
  {
28
  {
29
    setFeature(null);
29
    setFeature(null);
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