CloneSet1481


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7320.984class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1777
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/LocationViewer.java
27220
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java
3779
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java
Clone Instance
1
Line Count
7
Source Line
77
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/LocationViewer.java

    /**
     * Attaches a contextmenu listener to the tree
     */
    void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) {
        MenuManager menuMgr = new MenuManager();
        menuMgr.setRemoveAllWhenShown(true);
        menuMgr.addMenuListener(menuListener);
        Menu menu = menuMgr.createContextMenu(getControl());
        getControl().setMenu(menu);
        viewSite.registerContextMenu(popupId, menuMgr, this );
    }


Clone Instance
2
Line Count
7
Source Line
220
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/MethodsViewer.java

        /**
         * Attaches a contextmenu listener to the table
         */
        public void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) {
                MenuManager menuMgr = new MenuManager();
                menuMgr.setRemoveAllWhenShown(true);
                menuMgr.addMenuListener(menuListener);
                Menu menu = menuMgr.createContextMenu(getTable());
                getTable().setMenu(menu);
                viewSite.registerContextMenu(popupId, menuMgr, this );
        }


Clone Instance
3
Line Count
7
Source Line
79
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewer.java

        /**
         * Attaches a contextmenu listener to the tree
         */
        public void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) {
                MenuManager menuMgr = new MenuManager();
                menuMgr.setRemoveAllWhenShown(true);
                menuMgr.addMenuListener(menuListener);
                Menu menu = menuMgr.createContextMenu(getTree());
                getTree().setMenu(menu);
                viewSite.registerContextMenu(popupId, menuMgr, this );
        }


Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variablea393f300]]
/**
     * Attaches a contextmenu listener to the tree
     */
void initContextMenu(IMenuListener menuListener, String popupId, IWorkbenchPartSite viewSite) {
  MenuManager menuMgr = new MenuManager();
  menuMgr.setRemoveAllWhenShown(true);
  menuMgr.addMenuListener(menuListener);
  Menu menu = menuMgr.createContextMenu( [[#variablea393f260]]());
   [[#variablea393f260]]().setMenu(menu);
  viewSite.registerContextMenu(popupId, menuMgr, this );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a393f300]]
/**
 * Attaches a contextmenu listener to the tree
 */
public 
12[[#a393f300]]
/**
 * Attaches a contextmenu listener to the table
 */
public 
13[[#a393f300]]
21[[#a393f260]]
getTree 
22[[#a393f260]]
getTable 
23[[#a393f260]]
getControl