this.adapterFactory = adapterFactory; if (adapterFactory instanceof IChangeNotifier) { ((IChangeNotifier)adapterFactory).addListener(this); }
this.actionDelegate = actionDelegate; if (actionDelegate instanceof IEditorActionDelegate) { editorActionDelegate = (IEditorActionDelegate)actionDelegate; }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/AdapterFactoryContentProvider.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/action/DelegatingCommandAction.java
Method name: void AdapterFactoryContentProvider(AdapterFactory) Method name: void DelegatingCommandAction(IActionDelegate)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.adapterFactory = adapterFactory;
1
this.a
2
    if (adapterFactory instanceof IChangeNotifier)
3
    {
4
      ((IChangeNotifier)adapterFactory).addListener(this)
2
ctionDelegate = actionDelegate;
3
    if (actionDelegate instanceof IEditorActionDelegate)
4
    {
5
;
5
      editorActionDelegate = (IEditorActionDelegate)actionDelegate;
6
    }
6
    }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons1