1898-8-14

Adapter createXMLInfoAdapter() { if (xmlInfoItemProvider == null) { xmlInfoItemProvider = new XMLInfoItemProvider(this); } return xmlInfoItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.mapping.ecore2xml.XMLMap} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected XMLMapItemProvider xmlMapItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.mapping.ecore2xml.XMLMap}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createXMLMapAdapter() { if (xmlMapItemProvider == null) { xmlMapItemProvider = new XMLMapItemProvider(this); } return xmlMapItemProvider; } /** * This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ENamedElementToXMLInfoMapEntryItemProvider eNamedElementToXMLInfoMapEntryItemProvider; /** * This creates an adapter for a {@link java.util.Map.Entry}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createENamedElementToXMLInfoMapEntryAdapter() { if (eNamedElementToXMLInfoMapEntryItemProvider == null) { eNamedElementToXMLInfoMapEntryItemProvider = new ENamedElementToXMLInfoMapEntryItemProvider(this); } return eNamedElementToXMLInfoMapEntryItemProvider; }
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; }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/provider/Ecore2XMLItemProviderAdapterFactory.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 createXMLInfoAdapter()↵

1

    Adapter createEPackageAdapter()↵

2

      {↵

2

      {↵

3

        if (xmlInfoItemProvider == null)↵

3

        if (ePackageItemProvider == null)↵

4

        {↵

4

        {↵

5

          xmlInfoItemProvider = new XMLInfoItemProvider(this);↵

5

          ePackageItemProvider = new EPackageItemProvider(this);↵

6

        }↵

6

        }↵

7

        return xmlInfoItemProvider;↵

7

        return ePackageItemProvider;↵

8

      }↵

8

      }↵

9

      /**↵

9

      /**↵

10

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

10

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

15

      protected EParameterItemProvider eParameterItemProvider;↵

16

      /**↵

16

      /**↵

17

       * This creates an adapter for a {@link org.eclipse.emf.mapping.ecore2xml.XMLMap}.↵

17

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

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

23

      public Adapter createEParameterAdapter()↵

24

      {↵

24

      {↵

25

        if (xmlMapItemProvider == null)↵

25

        if (eParameterItemProvider == null)↵

26

        {↵

26

        {↵

27

          xmlMapItemProvider = new XMLMapItemProvider(this);↵

27

          eParameterItemProvider = new EParameterItemProvider(this);↵

28

        }↵

28

        }↵

29

        return xmlMapItemProvider;↵

29

        return eParameterItemProvider;↵

30

      }↵

30

      }↵

31

      /**↵

31

      /**↵

32

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

32

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

33

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

33

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

34

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

34

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

35

       * @generated↵

35

       * @generated↵

36

       */↵

36

       */↵

37

      protected ENamedElementToXMLInfoMapEntryItemProvider eNamedElementToXMLInfoMapEntryItemProvider;↵

37

      protected EReferenceItemProvider eReferenceItemProvider;↵

38

      /**↵

38

      /**↵

39

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

39

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

40

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

40

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

41

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

41

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

42

       * @generated↵

42

       * @generated↵

43

       */↵

43

       */↵

44

      @Override↵

44

      @Override↵

45

      public Adapter createENamedElementToXMLInfoMapEntryAdapter()↵

45

      public Adapter createE↵

46

      {↵

47

        if (eNamedElementToXMLInfoMapEntry↵

46

    ReferenceAdapter()↵

47

      {↵

48

    ItemProvider == null)↵

48

        if (eReferenceItemProvider == null)↵

49

        {↵

49

        {↵

50

          eNamedElementToXMLInfoMapEntryItemProvider = new ENamedElementToXMLInfoMapEntryItemProvider(this);↵

50

          eReferenceItemProvider = new EReferenceItemProvider(this);↵

51

        }↵

51

        }↵

52

        return eNamedElementToXMLInfoMapEntryItemProvider;↵

52

        return eReferenceItemProvider;↵

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