CloneSet595


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14310.995class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114136
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/DeclarationsSearchGroup.java
214115
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImplementorsSearchGroup.java
314146
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ReferencesSearchGroup.java
Clone Instance
1
Line Count
14
Source Line
136
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/DeclarationsSearchGroup.java

        private void addAction(IAction action, IMenuManager manager) {
                if (action.isEnabled()) {
                        manager.add(action);
                }
        }

        private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
                FindAction action;
                if (fEditor != null)
                        action = new WorkingSetFindAction(fEditor, new FindDeclarationsInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
                else
                        action = new WorkingSetFindAction(fSite, new FindDeclarationsInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
                action.update(getContext().getSelection());
                addAction(action, manager);
        }


Clone Instance
2
Line Count
14
Source Line
115
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImplementorsSearchGroup.java

        private void addAction(IAction action, IMenuManager manager) {
                if (action.isEnabled()) {
                        manager.add(action);
                }
        }

        private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
                FindAction action;
                if (fEditor != null)
                        action = new WorkingSetFindAction(fEditor, new FindImplementorsInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
                else
                        action = new WorkingSetFindAction(fSite, new FindImplementorsInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
                action.update(getContext().getSelection());
                addAction(action, manager);
        }


Clone Instance
3
Line Count
14
Source Line
146
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ReferencesSearchGroup.java

        private void addAction(IAction action, IMenuManager manager) {
                if (action.isEnabled()) {
                        manager.add(action);
                }
        }

        private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
                FindAction action;
                if (fEditor != null)
                        action = new WorkingSetFindAction(fEditor, new FindReferencesInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
                else
                        action = new WorkingSetFindAction(fSite, new FindReferencesInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
                action.update(getContext().getSelection());
                addAction(action, manager);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

private void addAction(IAction action, IMenuManager manager) {
  if (action.isEnabled()) {
    manager.add(action);
  }
}

private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
  FindAction action;
  if (fEditor != null)
    action = new WorkingSetFindAction(fEditor, new [[#variable78b1c520]](fEditor, workingSets), SearchUtil.toString(workingSets));
  else
    action = new WorkingSetFindAction(fSite, new [[#variable78b1c520]](fSite, workingSets), SearchUtil.toString(workingSets));
  action.update(getContext().getSelection());
  addAction(action, manager);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#78b1c520]]
FindDeclarationsInWorkingSetAction 
12[[#78b1c520]]
FindImplementorsInWorkingSetAction 
13[[#78b1c520]]
FindReferencesInWorkingSetAction