1898-2-8

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

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

1

    Adapter createEObjectToChangesMapEntryAdapter()↵

1

    Adapter create↵

2

      {↵

3

        if (eObjectToChangesMapEntry↵

2

    XMLInfoAdapter()↵

3

      {↵

4

    ItemProvider == null)↵

4

        if (xmlInfoItemProvider == null)↵

5

        {↵

5

        {↵

6

          eObjectToChangesMapEntryItemProvider = new EObjectToChangesMapEntryItemProvider(this);↵

6

          xmlInfoItemProvider = new XMLInfoItemProvider(this);↵

7

        }↵

7

        }↵

8

        return eObjectToChangesMapEntryItemProvider;↵

8

        return xmlInfoItemProvider;↵

9

      }↵

9

      }↵

10

      /**↵

10

      /**↵

11

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

11

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

12

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

12

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

13

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

13

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

14

       * @generated↵

14

       * @generated↵

15

       */↵

15

       */↵

16

      protected FeatureChangeItemProvider featureChangeItemProvider;↵

16

      protected XMLMapItemProvider xmlMapItemProvider;↵

17

      /**↵

17

      /**↵

18

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

18

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

19

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

19

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

20

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

20

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

21

       * @generated↵

21

       * @generated↵

22

       */↵

22

       */↵

23

      @Override↵

23

      @Override↵

24

      public Adapter createFeatureChangeAdapter()↵

24

      public Adapter createXMLMapAdapter()↵

25

      {↵

25

      {↵

26

        if (featureChangeItemProvider == null)↵

26

        if (xmlMapItemProvider == null)↵

27

        {↵

27

        {↵

28

          featureChangeItemProvider = new FeatureChangeItemProvider(this);↵

28

          xmlMapItemProvider = new XMLMapItemProvider(this);↵

29

        }↵

29

        }↵

30

        return featureChangeItemProvider;↵

30

        return xmlMapItemProvider;↵

31

      }↵

31

      }↵

32

      /**↵

32

      /**↵

33

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

33

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

38

      protected ENamedElementToXMLInfoMapEntryItemProvider eNamedElementToXMLInfoMapEntryItemProvider;↵

39

      /**↵

39

      /**↵

40

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

40

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

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

46

      public Adapter create↵

47

      {↵

48

        if (listChange↵

47

    ENamedElementToXMLInfoMapEntryAdapter()↵

48

      {↵

49

    ItemProvider == null)↵

49

        if (eNamedElementToXMLInfoMapEntryItemProvider == null)↵

50

        {↵

50

        {↵

51

          listChangeItemProvider = new ListChangeItemProvider(this);↵

51

          eNamedElementToXMLInfoMapEntryItemProvider = new ENamedElementToXMLInfoMapEntryItemProvider(this);↵

52

        }↵

52

        }↵

53

        return listChangeItemProvider;↵

53

        return eNamedElementToXMLInfoMapEntryItemProvider;↵

54

      }

54

      }

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