1898-4-11

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; }
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; }

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

2

      {↵

2

      {↵

3

        if (changeDescriptionItemProvider == null)↵

3

        if (eClassItemProvider == null)↵

4

        {↵

4

        {↵

5

          changeDescriptionItemProvider = new ChangeDescriptionItemProvider(this);↵

5

          eClassItemProvider = new EClassItemProvider(this);↵

6

        }↵

6

        }↵

7

        return changeDescriptionItemProvider;↵

7

        return eClassItemProvider;↵

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.EDataType} 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 EDataTypeItemProvider eDataTypeItemProvider;↵

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.EDataType}.↵

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

    DataTypeAdapter()↵

25

      {↵

26

    ItemProvider == null)↵

26

        if (eDataTypeItemProvider == null)↵

27

        {↵

27

        {↵

28

          eObjectToChangesMapEntryItemProvider = new EObjectToChangesMapEntryItemProvider(this);↵

28

          eDataTypeItemProvider = new EDataTypeItemProvider(this);↵

29

        }↵

29

        }↵

30

        return eObjectToChangesMapEntryItemProvider;↵

30

        return eDataTypeItemProvider;↵

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.EEnum} 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 EEnumItemProvider eEnumItemProvider;↵

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.EEnum}.↵

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

47

      {↵

47

      {↵

48

        if (featureChangeItemProvider == null)↵

48

        if (eEnumItemProvider == null)↵

49

        {↵

49

        {↵

50

          featureChangeItemProvider = new FeatureChangeItemProvider(this);↵

50

          eEnumItemProvider = new EEnumItemProvider(this);↵

51

        }↵

51

        }↵

52

        return featureChangeItemProvider;↵

52

        return eEnumItemProvider;↵

53

      }

53

      }

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