CloneSet1278


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11394
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/HistoryDropDownAction.java
21385
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryDropDownAction.java
Clone Instance
1
Line Count
13
Source Line
94
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/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;
    }


Clone Instance
2
Line Count
13
Source Line
85
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryDropDownAction.java

        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;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5614c540]]
IJavaElement 
12[[#5614c540]]
IMethod 
21[[#5614c4a0]]
fHierarchyView 
22[[#5614c4a0]]
fView 
31[[#5614c400]]
getInputElement 
32[[#5614c400]]
getMethod