1898-5-18

Adapter createEEnumLiteralAdapter() { if (eEnumLiteralItemProvider == null) { eEnumLiteralItemProvider = new EEnumLiteralItemProvider(this); } return eEnumLiteralItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EFactory} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EFactoryItemProvider eFactoryItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EFactory}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createEFactoryAdapter() { if (eFactoryItemProvider == null) { eFactoryItemProvider = new EFactoryItemProvider(this); } return eFactoryItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.EObject} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ protected ReflectiveItemProvider eObjectItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.EObject}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ @Override public Adapter createEObjectAdapter() { if (eObjectItemProvider == null) { eObjectItemProvider = new ReflectiveItemProvider(this); } return eObjectItemProvider; }
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; }

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

1

    Adapter createFeatureChangeAdapter()↵

2

      {↵

2

      {↵

3

        if (eEnumLiteralItemProvider == null)↵

3

        if (featureChangeItemProvider == null)↵

4

        {↵

4

        {↵

5

          eEnumLiteralItemProvider = new EEnumLiteralItemProvider(this);↵

5

          featureChangeItemProvider = new FeatureChangeItemProvider(this);↵

6

        }↵

6

        }↵

7

        return eEnumLiteralItemProvider;↵

7

        return featureChangeItemProvider;↵

8

      }↵

8

      }↵

9

      /**↵

9

      /**↵

10

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

10

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

15

      protected ListChangeItemProvider listChangeItemProvider;↵

16

      /**↵

16

      /**↵

17

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

17

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

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

23

      public Adapter createListChangeAdapter()↵

24

      {↵

24

      {↵

25

        if (eFactoryItemProvider == null)↵

25

        if (listChangeItemProvider == null)↵

26

        {↵

26

        {↵

27

          eFactoryItemProvider = new EFactoryItemProvider(this);↵

27

          listChangeItemProvider = new ListChangeItemProvider(this);↵

28

        }↵

28

        }↵

29

        return eFactoryItemProvider;↵

29

        return listChangeItemProvider;↵

30

      }↵

30

      }↵

31

      /**↵

31

      /**↵

32

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

32

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

33

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

33

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

34

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

34

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

35

       * @generated NOT↵

35

       * @generated↵

36

       */↵

36

       */↵

37

      protected ReflectiveItemProvider eObjectItemProvider;↵

37

      protected ResourceChangeItemProvider resourceChangeItemProvider;↵

38

      /**↵

38

      /**↵

39

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

39

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

40

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

40

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

41

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

41

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

42

       * @generated NOT↵

42

       * @generated↵

43

       */↵

43

       */↵

44

      @Override↵

44

      @Override↵

45

      public Adapter createEObjectAdapter()↵

45

      public Adapter createResourceChangeAdapter()↵

46

      {↵

46

      {↵

47

        if (eObjectItemProvider == null)↵

47

        if (resourceChangeItemProvider == null)↵

48

        {↵

48

        {↵

49

          eObjectItemProvider = new ReflectiveItemProvider(this);↵

49

          resourceChangeItemProvider = new ResourceChangeItemProvider(this);↵

50

        }↵

50

        }↵

51

        return eObjectItemProvider;↵

51

        return resourceChangeItemProvider;↵

52

      }

52

      }

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