1017-1-2

Object getForeground(Object object, int columnIndex) { return ((ITableItemColorProvider)decoratedItemProvider).getForeground(object, columnIndex); } /** * This implements {@link IItemColorProvider#getBackground IItemColorProvider.getBackground} * by delegating to <code>(IItemColorProvider)</code>{@link #decoratedItemProvider}. */ public Object getBackground(Object object) { return ((IItemColorProvider)decoratedItemProvider).getBackground(object); }
Object getFont(Object object, int columnIndex) { return ((ITableItemFontProvider)decoratedItemProvider).getFont(object, columnIndex); } /** * This implements {@link IItemColorProvider#getForeground IItemColorProvider.getForeground} * by delegating to <code>(IItemColorProvider)</code>{@link #decoratedItemProvider}. */ public Object getForeground(Object object) { return ((IItemColorProvider)decoratedItemProvider).getForeground(object); }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderDecorator.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderDecorator.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    Object getForeground(Object object, int columnIndex)↵

1

    Object getFont(Object object, int columnIndex)↵

2

      {↵

2

      {↵

3

        return ((ITableItemColorProvider)decoratedItemProvider).getForeground(object, columnIndex);↵

3

        return ((ITableItemFontProvider)decoratedItemProvider).getFont(object, columnIndex);↵

4

      }↵

4

      }↵

5

      /**↵

5

      /**↵

6

       * This implements {@link IItemColorProvider#getBackground IItemColorProvider.getBackground} ↵

6

       * This implements {@link IItemColorProvider#getForeground IItemColorProvider.getForeground} ↵

7

       * by delegating to <code>(IItemColorProvider)</code>{@link #decoratedItemProvider}.↵

7

       * by delegating to <code>(IItemColorProvider)</code>{@link #decoratedItemProvider}.↵

8

       */↵

8

       */↵

9

      public Object getBackground(Object object)↵

9

      public Object getForeground(Object object)↵

10

      {↵

10

      {↵

11

        return ((IItemColorProvider)decoratedItemProvider).getBackground(object);↵

11

        return ((IItemColorProvider)decoratedItemProvider).getForeground(object);↵

12

      }

12

      }

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