1900-3-4

Adapter createEAttributeAdapter() { if (eAttributeItemProvider == null) { eAttributeItemProvider = new EAttributeItemProvider(this); } return eAttributeItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EAnnotation} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EAnnotationItemProvider eAnnotationItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EAnnotation}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEAnnotationAdapter() { if (eAnnotationItemProvider == null) { eAnnotationItemProvider = new EAnnotationItemProvider(this); } return eAnnotationItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EClass} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EClassItemProvider eClassItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EClass}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEClassAdapter() { if (eClassItemProvider == null) { eClassItemProvider = new EClassItemProvider(this); } return eClassItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EDataType} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EDataTypeItemProvider eDataTypeItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EDataType}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEDataTypeAdapter() { if (eDataTypeItemProvider == null) { eDataTypeItemProvider = new EDataTypeItemProvider(this); } return eDataTypeItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EEnum} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EEnumItemProvider eEnumItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EEnum}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEEnumAdapter() { if (eEnumItemProvider == null) { eEnumItemProvider = new EEnumItemProvider(this); } return eEnumItemProvider; }
Adapter createEObjectToChangesMapEntryAdapter() { if (eObjectToChangesMapEntryItemProvider == null) { eObjectToChangesMapEntryItemProvider = new EObjectToChangesMapEntryItemProvider(this); } return eObjectToChangesMapEntryItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.FeatureChange} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected FeatureChangeItemProvider featureChangeItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.change.FeatureChange}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createFeatureChangeAdapter() { if (featureChangeItemProvider == null) { featureChangeItemProvider = new FeatureChangeItemProvider(this); } return featureChangeItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.ListChange} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ListChangeItemProvider listChangeItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.change.ListChange}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createListChangeAdapter() { if (listChangeItemProvider == null) { listChangeItemProvider = new ListChangeItemProvider(this); } return listChangeItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.ResourceChange} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ResourceChangeItemProvider resourceChangeItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.change.ResourceChange}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createResourceChangeAdapter() { if (resourceChangeItemProvider == null) { resourceChangeItemProvider = new ResourceChangeItemProvider(this); } return resourceChangeItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.FeatureMapEntry} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected FeatureMapEntryItemProvider featureMapEntryItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.change.FeatureMapEntry}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createFeatureMapEntryAdapter() { if (featureMapEntryItemProvider == null) { featureMapEntryItemProvider = new FeatureMapEntryItemProvider(this); } return featureMapEntryItemProvider; }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EcoreItemProviderAdapterFactory.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/provider/ChangeItemProviderAdapterFactory.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    Adapter createEAttributeAdapter()↵

1

    Adapter createE↵

2

      {↵

3

        if (eAttribute↵

2

    ObjectToChangesMapEntryAdapter()↵

3

      {↵

4

    ItemProvider == null)↵

4

        if (eObjectToChangesMapEntryItemProvider == null)↵

5

        {↵

5

        {↵

6

          eAttributeItemProvider = new EAttributeItemProvider(this);↵

6

          eObjectToChangesMapEntryItemProvider = new EObjectToChangesMapEntryItemProvider(this);↵

7

        }↵

7

        }↵

8

        return eAttributeItemProvider;↵

8

        return eObjectToChangesMapEntryItemProvider;↵

9

      }↵

9

      }↵

10

      /**↵

10

      /**↵

11

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EAnnotation} instances.↵

11

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.FeatureChange} instances.↵

12

       * <!-- begin-user-doc -->↵

12

       * <!-- begin-user-doc -->↵

13

       * <!-- end-user-doc -->↵

13

       * <!-- end-user-doc -->↵

14

       * @generated↵

14

       * @generated↵

15

       */↵

15

       */↵

16

      protected EAnnotationItemProvider eAnnotationItemProvider;↵

16

      protected FeatureChangeItemProvider featureChangeItemProvider;↵

17

      /**↵

17

      /**↵

18

       * This creates an adapter for a {@link org.eclipse.emf.ecore.EAnnotation}.↵

18

       * This creates an adapter for a {@link org.eclipse.emf.ecore.change.FeatureChange}.↵

19

       * <!-- begin-user-doc -->↵

19

       * <!-- begin-user-doc -->↵

20

       * <!-- end-user-doc -->↵

20

       * <!-- end-user-doc -->↵

21

       * @generated↵

21

       * @generated↵

22

       */↵

22

       */↵

23

      @Override↵

23

      @Override↵

24

      public Adapter createEAnnotationAdapter()↵

24

      public Adapter createFeatureChangeAdapter()↵

25

      {↵

25

      {↵

26

        if (eAnnotationItemProvider == null)↵

26

        if (featureChangeItemProvider == null)↵

27

        {↵

27

        {↵

28

          eAnnotationItemProvider = new EAnnotationItemProvider(this);↵

28

          featureChangeItemProvider = new FeatureChangeItemProvider(this);↵

29

        }↵

29

        }↵

30

        return eAnnotationItemProvider;↵

30

        return featureChangeItemProvider;↵

31

      }↵

31

      }↵

32

      /**↵

32

      /**↵

33

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EClass} instances.↵

33

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.ListChange} instances.↵

34

       * <!-- begin-user-doc -->↵

34

       * <!-- begin-user-doc -->↵

35

       * <!-- end-user-doc -->↵

35

       * <!-- end-user-doc -->↵

36

       * @generated↵

36

       * @generated↵

37

       */↵

37

       */↵

38

      protected EClassItemProvider eClassItemProvider;↵

38

      protected ListChangeItemProvider listChangeItemProvider;↵

39

      /**↵

39

      /**↵

40

       * This creates an adapter for a {@link org.eclipse.emf.ecore.EClass}.↵

40

       * This creates an adapter for a {@link org.eclipse.emf.ecore.change.ListChange}.↵

41

       * <!-- begin-user-doc -->↵

41

       * <!-- begin-user-doc -->↵

42

       * <!-- end-user-doc -->↵

42

       * <!-- end-user-doc -->↵

43

       * @generated↵

43

       * @generated↵

44

       */↵

44

       */↵

45

      @Override↵

45

      @Override↵

46

      public Adapter createEClassAdapter()↵

46

      public Adapter createListChangeAdapter()↵

47

      {↵

47

      {↵

48

        if (eClassItemProvider == null)↵

48

        if (listChangeItemProvider == null)↵

49

        {↵

49

        {↵

50

          eClassItemProvider = new EClassItemProvider(this);↵

50

          listChangeItemProvider = new ListChangeItemProvider(this);↵

51

        }↵

51

        }↵

52

        return eClassItemProvider;↵

52

        return listChangeItemProvider;↵

53

      }↵

53

      }↵

54

      /**↵

54

      /**↵

55

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EDataType} instances.↵

55

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.ResourceChange} instances.↵

56

       * <!-- begin-user-doc -->↵

56

       * <!-- begin-user-doc -->↵

57

       * <!-- end-user-doc -->↵

57

       * <!-- end-user-doc -->↵

58

       * @generated↵

58

       * @generated↵

59

       */↵

59

       */↵

60

      protected EDataTypeItemProvider eDataTypeItemProvider;↵

60

      protected ResourceChangeItemProvider resourceChangeItemProvider;↵

61

      /**↵

61

      /**↵

62

       * This creates an adapter for a {@link org.eclipse.emf.ecore.EDataType}.↵

62

       * This creates an adapter for a {@link org.eclipse.emf.ecore.change.ResourceChange}.↵

63

       * <!-- begin-user-doc -->↵

63

       * <!-- begin-user-doc -->↵

64

       * <!-- end-user-doc -->↵

64

       * <!-- end-user-doc -->↵

65

       * @generated↵

65

       * @generated↵

66

       */↵

66

       */↵

67

      @Override↵

67

      @Override↵

68

      public Adapter createEDataTypeAdapter()↵

68

      public Adapter createResourceChangeAdapter()↵

69

      {↵

69

      {↵

70

        if (eDataTypeItemProvider == null)↵

70

        if (resourceChangeItemProvider == null)↵

71

        {↵

71

        {↵

72

          eDataTypeItemProvider = new EDataTypeItemProvider(this);↵

72

          resourceChangeItemProvider = new ResourceChangeItemProvider(this);↵

73

        }↵

73

        }↵

74

        return eDataTypeItemProvider;↵

74

        return resourceChangeItemProvider;↵

75

      }↵

75

      }↵

76

      /**↵

76

      /**↵

77

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EEnum} instances.↵

77

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.change.FeatureMapEntry} instances.↵

78

       * <!-- begin-user-doc -->↵

78

       * <!-- begin-user-doc -->↵

79

       * <!-- end-user-doc -->↵

79

       * <!-- end-user-doc -->↵

80

       * @generated↵

80

       * @generated↵

81

       */↵

81

       */↵

82

      protected EEnumItemProvider eEnumItemProvider;↵

82

      protected FeatureMapEntryItemProvider featureMapEntryItemProvider;↵

83

      /**↵

83

      /**↵

84

       * This creates an adapter for a {@link org.eclipse.emf.ecore.EEnum}.↵

84

       * This creates an adapter for a {@link org.eclipse.emf.ecore.change.FeatureMapEntry}.↵

85

       * <!-- begin-user-doc -->↵

85

       * <!-- begin-user-doc -->↵

86

       * <!-- end-user-doc -->↵

86

       * <!-- end-user-doc -->↵

87

       * @generated↵

87

       * @generated↵

88

       */↵

88

       */↵

89

      @Override↵

89

      @Override↵

90

      public Adapter createEEnumAdapter()↵

90

      public Adapter createFeatureMapEntryAdapter()↵

91

      {↵

91

      {↵

92

        if (eEnumItemProvider == null)↵

92

        if (featureMapEntryItemProvider == null)↵

93

        {↵

93

        {↵

94

          eEnumItemProvider = new EEnumItemProvider(this);↵

94

          featureMapEntryItemProvider = new FeatureMapEntryItemProvider(this);↵

95

        }↵

95

        }↵

96

        return eEnumItemProvider;↵

96

        return featureMapEntryItemProvider;↵

97

      }

97

      }

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0