actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction);
actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction);
actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction);
actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction);
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: void shareGlobalActions(IPage, IActionBars)
|
|
Method name: void setActiveView(IViewPart)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction);↵ | | 1 | actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction);↵
|
2 | actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction);↵ | | 2 | actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction);↵
|
3 | actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction);↵ | | 3 | actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction);↵
|
4 | actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction); | | 4 | actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction); | | 3 | actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteAction); |
3 | actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction); | | 4 | actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), cutAction); |
4 | actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); | | 5 | actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyAction); |
5 | actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction); | | 6 | actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), pasteAction); |
Precondition Violations (0)
Row |
Violation |