CloneSet1552


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


Clone Instance
2
Line Count
15
Source Line
68
Source File
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);
                IJavaElement[] elements = fHierarchyView.getHistoryEntries();
                addEntries(fMenu, elements);
                new MenuItem(fMenu, SWT.SEPARATOR);
                addActionToMenu(fMenu, new HistoryListAction(fHierarchyView));
                addActionToMenu(fMenu, new ClearHistoryAction(fHierarchyView));
                return fMenu;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57b541a0]]
IMethod 
12[[#57b541a0]]
IJavaElement 
21[[#57b542e0]]
fView 
22[[#57b542e0]]
fHierarchyView