Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.988 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 63 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/HistoryDropDownAction.java |
2 | 15 | 68 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryDropDownAction.java |
| ||||
public Menu getMenu(Menu parent) { return null; } public Menu getMenu(Control parent) { if (fMenu != null) { fMenu.dispose(); } fMenu = new Menu(parent); IMethod[] elements = fView.getHistoryEntries(); addEntries(fMenu, elements); new MenuItem(fMenu, SWT.SEPARATOR); addActionToMenu(fMenu, new HistoryListAction(fView)); addActionToMenu(fMenu, new ClearHistoryAction(fView)); return fMenu; } |
| ||||
public Menu getMenu(Menu parent) { return null; } public Menu getMenu(Control parent) { if (fMenu != null) { fMenu.dispose(); } fMenu = new Menu(parent); IJavaElement[] elements = fHierarchyView.getHistoryEntries(); addEntries(fMenu, elements); new MenuItem(fMenu, SWT.SEPARATOR); addActionToMenu(fMenu, new HistoryListAction(fHierarchyView)); addActionToMenu(fMenu, new ClearHistoryAction(fHierarchyView)); return fMenu; } |
| |||
public Menu getMenu(Menu parent) { return null; } public Menu getMenu(Control parent) { if (fMenu != null) { fMenu.dispose(); } fMenu = new Menu(parent); [[#variable57b541a0]][] elements = [[#variable57b542e0]].getHistoryEntries(); addEntries(fMenu, elements); new MenuItem(fMenu, SWT.SEPARATOR); addActionToMenu(fMenu, new HistoryListAction( [[#variable57b542e0]])); addActionToMenu(fMenu, new ClearHistoryAction( [[#variable57b542e0]])); return fMenu; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57b541a0]] | IMethod |
1 | 2 | [[#57b541a0]] | IJavaElement |
2 | 1 | [[#57b542e0]] | fView |
2 | 2 | [[#57b542e0]] | fHierarchyView |