Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 3 | 1 | 0.995 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 136 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/DeclarationsSearchGroup.java |
2 | 14 | 115 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImplementorsSearchGroup.java |
3 | 14 | 146 | 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 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); } |
| ||||
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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#78b1c520]] | FindDeclarationsInWorkingSetAction |
1 | 2 | [[#78b1c520]] | FindImplementorsInWorkingSetAction |
1 | 3 | [[#78b1c520]] | FindReferencesInWorkingSetAction |