Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.987 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 864 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java |
2 | 12 | 815 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java |
| ||||
/** * Returns the selected elements. */ public List getSelectedElements() { List result = new ArrayList(); if (isOkToUse(fTableControl)) { ISelection selection = fTable.getSelection(); if (selection instanceof IStructuredSelection) { Iterator iter = ((IStructuredSelection) selection).iterator(); while (iter.hasNext()) { result.add(iter.next()); } } } return result; } |
| ||||
/** * Returns the selected elements. */ public List getSelectedElements() { ArrayList result = new ArrayList(); if (isOkToUse(fTreeControl)) { ISelection selection = fTree.getSelection(); if (selection instanceof IStructuredSelection) { Iterator iter = ((IStructuredSelection) selection).iterator(); while (iter.hasNext()) { result.add(iter.next()); } } } return result; } |
| |||
/** * Returns the selected elements. */ /** * Returns the selected elements. */ public List getSelectedElements() { [[#variable9016d840]] result = new ArrayList(); if (isOkToUse( [[#variable9016d7e0]])) { ISelection selection = [[#variable9016d780]].getSelection(); if (selection instanceof IStructuredSelection) { Iterator iter = ((IStructuredSelection) selection).iterator(); while (iter.hasNext()) { result.add(iter.next()); } } } return result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9016d840]] | ArrayList |
1 | 2 | [[#9016d840]] | List |
2 | 1 | [[#9016d7e0]] | fTreeControl |
2 | 2 | [[#9016d7e0]] | fTableControl |
3 | 1 | [[#9016d780]] | fTree |
3 | 2 | [[#9016d780]] | fTable |