1898-1-5

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

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/provider/EcoreItemProviderAdapterFactory.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    Adapter createEObjectAdapter()↵

1

    Adapter createEEnumLiteralAdapter()↵

2

      {↵

2

      {↵

3

        if (eObjectItemProvider == null)↵

3

        if (eEnumLiteralItemProvider == null)↵

4

        {↵

4

        {↵

5

          eObjectItemProvider = new ReflectiveItemProvider(this);↵

5

          eEnumLiteralItemProvider = new EEnumLiteralItemProvider(this);↵

6

        }↵

6

        }↵

7

        return eObjectItemProvider;↵

7

        return eEnumLiteralItemProvider;↵

8

      }↵

8

      }↵

9

      /**↵

9

      /**↵

10

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

10

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

15

      protected EFactoryItemProvider eFactoryItemProvider;↵

16

      /**↵

16

      /**↵

17

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

17

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

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

23

      public Adapter createEFactoryAdapter()↵

24

      {↵

24

      {↵

25

        if (eOperationItemProvider == null)↵

25

        if (eFactoryItemProvider == null)↵

26

        {↵

26

        {↵

27

          eOperationItemProvider = new EOperationItemProvider(this);↵

27

          eFactoryItemProvider = new EFactoryItemProvider(this);↵

28

        }↵

28

        }↵

29

        return eOperationItemProvider;↵

29

        return eFactoryItemProvider;↵

30

      }↵

30

      }↵

31

      /**↵

31

      /**↵

32

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

32

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

33

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

33

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

34

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

34

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

35

       * @generated↵

35

       * @generated NOT↵

36

       */↵

36

       */↵

37

      protected EPackageItemProvider ePackageItemProvider;↵

37

      protected ReflectiveItemProvider eObjectItemProvider;↵

38

      /**↵

38

      /**↵

39

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

39

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

40

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

40

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

41

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

41

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

42

       * @generated↵

42

       * @generated NOT↵

43

       */↵

43

       */↵

44

      @Override↵

44

      @Override↵

45

      public Adapter createEPackageAdapter()↵

45

      public Adapter createEObjectAdapter()↵

46

      {↵

46

      {↵

47

        if (ePackageItemProvider == null)↵

47

        if (eObjectItemProvider == null)↵

48

        {↵

48

        {↵

49

          ePackageItemProvider = new EPackageItemProvider(this);↵

49

          eObjectItemProvider = new ReflectiveItemProvider(this);↵

50

        }↵

50

        }↵

51

        return ePackageItemProvider;↵

51

        return eObjectItemProvider;↵

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