1901-3-8

Adapter createChangeDescriptionAdapter() { if (changeDescriptionItemProvider == null) { changeDescriptionItemProvider = new ChangeDescriptionItemProvider(this); } return changeDescriptionItemProvider; } /** * This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EObjectToChangesMapEntryItemProvider eObjectToChangesMapEntryItemProvider; /** * This creates an adapter for a {@link java.util.Map.Entry}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public 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; }
Adapter createEOperationAdapter() { if (eOperationItemProvider == null) { eOperationItemProvider = new EOperationItemProvider(this); } return eOperationItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EPackage} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EPackageItemProvider ePackageItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EPackage}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEPackageAdapter() { if (ePackageItemProvider == null) { ePackageItemProvider = new EPackageItemProvider(this); } return ePackageItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EParameter} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EParameterItemProvider eParameterItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EParameter}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEParameterAdapter() { if (eParameterItemProvider == null) { eParameterItemProvider = new EParameterItemProvider(this); } return eParameterItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EReference} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EReferenceItemProvider eReferenceItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EReference}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEReferenceAdapter() { if (eReferenceItemProvider == null) { eReferenceItemProvider = new EReferenceItemProvider(this); } return eReferenceItemProvider; } /** * This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EStringToStringMapEntryItemProvider eStringToStringMapEntryItemProvider; /** * This creates an adapter for a {@link java.util.Map.Entry}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEStringToStringMapEntryAdapter() { if (eStringToStringMapEntryItemProvider == null) { eStringToStringMapEntryItemProvider = new EStringToStringMapEntryItemProvider(this); } return eStringToStringMapEntryItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EGenericType} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EGenericTypeItemProvider eGenericTypeItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EGenericType}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEGenericTypeAdapter() { if (eGenericTypeItemProvider == null) { eGenericTypeItemProvider = new EGenericTypeItemProvider(this); } return eGenericTypeItemProvider; }

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

1

    Adapter createChangeDescriptionAdapter()↵

1

    Adapter createEOperationAdapter()↵

2

      {↵

2

      {↵

3

        if (changeDescriptionItemProvider == null)↵

3

        if (eOperationItemProvider == null)↵

4

        {↵

4

        {↵

5

          changeDescriptionItemProvider = new ChangeDescriptionItemProvider(this);↵

5

          eOperationItemProvider = new EOperationItemProvider(this);↵

6

        }↵

6

        }↵

7

        return changeDescriptionItemProvider;↵

7

        return eOperationItemProvider;↵

8

      }↵

8

      }↵

9

      /**↵

9

      /**↵

10

       * This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances.↵

10

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

11

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

11

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

12

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

12

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

13

       * @generated↵

13

       * @generated↵

14

       */↵

14

       */↵

15

      protected EObjectToChangesMapEntryItemProvider eObjectToChangesMapEntryItemProvider;↵

15

      protected EPackageItemProvider ePackageItemProvider;↵

16

      /**↵

16

      /**↵

17

       * This creates an adapter for a {@link java.util.Map.Entry}.↵

17

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

18

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

18

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

19

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

19

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

20

       * @generated↵

20

       * @generated↵

21

       */↵

21

       */↵

22

      @Override↵

22

      @Override↵

23

      public Adapter createEObjectToChangesMapEntryAdapter()↵

23

      public Adapter createE↵

24

      {↵

25

        if (eObjectToChangesMapEntry↵

24

    PackageAdapter()↵

25

      {↵

26

    ItemProvider == null)↵

26

        if (ePackageItemProvider == null)↵

27

        {↵

27

        {↵

28

          eObjectToChangesMapEntryItemProvider = new EObjectToChangesMapEntryItemProvider(this);↵

28

          ePackageItemProvider = new EPackageItemProvider(this);↵

29

        }↵

29

        }↵

30

        return eObjectToChangesMapEntryItemProvider;↵

30

        return ePackageItemProvider;↵

31

      }↵

31

      }↵

32

      /**↵

32

      /**↵

33

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

33

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EParameter} 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 FeatureChangeItemProvider featureChangeItemProvider;↵

38

      protected EParameterItemProvider eParameterItemProvider;↵

39

      /**↵

39

      /**↵

40

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

40

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

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 createFeatureChangeAdapter()↵

46

      public Adapter createEParameterAdapter()↵

47

      {↵

47

      {↵

48

        if (featureChangeItemProvider == null)↵

48

        if (eParameterItemProvider == null)↵

49

        {↵

49

        {↵

50

          featureChangeItemProvider = new FeatureChangeItemProvider(this);↵

50

          eParameterItemProvider = new EParameterItemProvider(this);↵

51

        }↵

51

        }↵

52

        return featureChangeItemProvider;↵

52

        return eParameterItemProvider;↵

53

      }↵

53

      }↵

54

      /**↵

54

      /**↵

55

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

55

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EReference} 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 ListChangeItemProvider listChangeItemProvider;↵

60

      protected EReferenceItemProvider eReferenceItemProvider;↵

61

      /**↵

61

      /**↵

62

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

62

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

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 createListChangeAdapter()↵

68

      public Adapter createEReferenceAdapter()↵

69

      {↵

69

      {↵

70

        if (listChangeItemProvider == null)↵

70

        if (eReferenceItemProvider == null)↵

71

        {↵

71

        {↵

72

          listChangeItemProvider = new ListChangeItemProvider(this);↵

72

          eReferenceItemProvider = new EReferenceItemProvider(this);↵

73

        }↵

73

        }↵

74

        return listChangeItemProvider;↵

74

        return eReferenceItemProvider;↵

75

      }↵

75

      }↵

76

      /**↵

76

      /**↵

77

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

77

       * This keeps track of the one adapter used for all {@link java.util.Map.Entry} 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 ResourceChangeItemProvider resourceChangeItemProvider;↵

82

      protected EStringToStringMapEntryItemProvider eStringToStringMapEntryItemProvider;↵

83

      /**↵

83

      /**↵

84

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

84

       * This creates an adapter for a {@link java.util.Map.Entry}.↵

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 createResourceChangeAdapter()↵

90

      public Adapter create↵

91

      {↵

92

        if (resourceChange↵

91

    EStringToStringMapEntryAdapter()↵

92

      {↵

93

    ItemProvider == null)↵

93

        if (eStringToStringMapEntryItemProvider == null)↵

94

        {↵

94

        {↵

95

          resourceChangeItemProvider = new ResourceChangeItemProvider(this);↵

95

          eStringToStringMapEntryItemProvider = new EStringToStringMapEntryItemProvider(this);↵

96

        }↵

96

        }↵

97

        return resourceChangeItemProvider;↵

97

        return eStringToStringMapEntryItemProvider;↵

98

      }↵

98

      }↵

99

      /**↵

99

      /**↵

100

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

100

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

101

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

101

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

102

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

102

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

103

       * @generated↵

103

       * @generated↵

104

       */↵

104

       */↵

105

      protected FeatureMapEntryItemProvider featureMapEntryItemProvider;↵

105

      protected EGenericTypeItemProvider eGenericTypeItemProvider;↵

106

      /**↵

106

      /**↵

107

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

107

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

108

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

108

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

109

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

109

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

110

       * @generated↵

110

       * @generated↵

111

       */↵

111

       */↵

112

      @Override↵

112

      @Override↵

113

      public Adapter createFeatureMapEntryAdapter()↵

113

      public Adapter createEGenericTypeAdapter()↵

114

      {↵

114

      {↵

115

        if (featureMapEntryItemProvider == null)↵

115

        if (eGenericTypeItemProvider == null)↵

116

        {↵

116

        {↵

117

          featureMapEntryItemProvider = new FeatureMapEntryItemProvider(this);↵

117

          eGenericTypeItemProvider = new EGenericTypeItemProvider(this);↵

118

        }↵

118

        }↵

119

        return featureMapEntryItemProvider;↵

119

        return eGenericTypeItemProvider;↵

120

      }

120

      }

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