if (!(page instanceof IPropertySheetPage)) { actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction); actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction); actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction); }
if (!(part instanceof PropertySheet)) { actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction); actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction); actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction); }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/action/EditingDomainActionBarContributor.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/action/EditingDomainActionBarContributor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (!(page instanceof IPropertySheetPage))
1
if (!(part instanceof PropertySheet))
2
    {
2
    {
3
      actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction);
3
      actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction);
4
      actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction);
4
      actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction);
5
      actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction);
5
      actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction);
6
      actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction);
6
      actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction);
7
    }
7
    }
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 location
Number of node comparisons0