| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 2 | 5 | 0.960 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 33 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/HistoryDropDownAction.java |
| 2 | 12 | 31 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryDropDownAction.java |
| ||||
private static class ClearHistoryAction extends Action {
private CallHierarchyViewPart fView;
public ClearHistoryAction(CallHierarchyViewPart view) {
super(CallHierarchyMessages.HistoryDropDownAction_clearhistory_label);
fView = view;
}
public void run() {
fView.setHistoryEntries(new IMethod[0]);
fView.setMethod(null);
}
}
|
| ||||
public static class ClearHistoryAction extends Action {
private TypeHierarchyViewPart fView;
public ClearHistoryAction(TypeHierarchyViewPart view) {
super(TypeHierarchyMessages.HistoryDropDownAction_clearhistory_label);
fView = view;
}
public void run() {
fView.setHistoryEntries(new IJavaElement[0]);
fView.setInputElement(null);
}
}
|
| |||
[[#variablea3d09fe0]]static class ClearHistoryAction extends Action {
private [[#variablea3d09f40]] fView;
public ClearHistoryAction( [[#variablea3d09f40]] view) {
super( [[#variablea3d09ec0]].HistoryDropDownAction_clearhistory_label);
fView = view;
}
public void run() {
fView.setHistoryEntries(new [[#variablea3d09e60]][0]);
fView. [[#variablea3d09de0]](null);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a3d09fe0]] | private |
| 1 | 2 | [[#a3d09fe0]] | public |
| 2 | 1 | [[#a3d09f40]] | CallHierarchyViewPart |
| 2 | 2 | [[#a3d09f40]] | TypeHierarchyViewPart |
| 3 | 1 | [[#a3d09ec0]] | CallHierarchyMessages |
| 3 | 2 | [[#a3d09ec0]] | TypeHierarchyMessages |
| 4 | 1 | [[#a3d09e60]] | IMethod |
| 4 | 2 | [[#a3d09e60]] | IJavaElement |
| 5 | 1 | [[#a3d09de0]] | setMethod |
| 5 | 2 | [[#a3d09de0]] | setInputElement |