Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 3 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 94 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/HistoryDropDownAction.java |
2 | 13 | 85 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryDropDownAction.java |
| ||||
private boolean addEntries(Menu menu, IMethod[] elements) { boolean checked = false; int min = Math.min(elements.length, RESULTS_IN_DROP_DOWN); for (int i = 0; i < min; i++) { HistoryAction action = new HistoryAction(fView, elements[i]); action.setChecked(elements[i].equals(fView.getMethod())); checked = checked || action.isChecked(); addActionToMenu(menu, action); } return checked; } |
| ||||
private boolean addEntries(Menu menu, IJavaElement[] elements) { boolean checked = false; int min = Math.min(elements.length, RESULTS_IN_DROP_DOWN); for (int i = 0; i < min; i++) { HistoryAction action = new HistoryAction(fHierarchyView, elements[i]); action.setChecked(elements[i].equals(fHierarchyView.getInputElement())); checked = checked || action.isChecked(); addActionToMenu(menu, action); } return checked; } |
| |||
private boolean addEntries(Menu menu, [[#variable5614c540]][] elements) { boolean checked = false; int min = Math.min(elements.length, RESULTS_IN_DROP_DOWN); for (int i = 0; i < min; i++) { HistoryAction action = new HistoryAction( [[#variable5614c4a0]], elements[i]); action.setChecked(elements[i].equals( [[#variable5614c4a0]]. [[#variable5614c400]]())); checked = checked || action.isChecked(); addActionToMenu(menu, action); } return checked; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5614c540]] | IJavaElement |
1 | 2 | [[#5614c540]] | IMethod |
2 | 1 | [[#5614c4a0]] | fHierarchyView |
2 | 2 | [[#5614c4a0]] | fView |
3 | 1 | [[#5614c400]] | getInputElement |
3 | 2 | [[#5614c400]] | getMethod |