Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 8 | 3 | 0.956 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 89 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RenameJavaElementAction.java |
2 | 5 | 61 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RenameResourceAction.java |
3 | 6 | 49 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddTaskAction.java |
4 | 5 | 116 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/OpenCallHierarchyAction.java |
5 | 6 | 145 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddArchiveToBuildpathAction.java |
6 | 5 | 36 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/OpenPropertiesWorkingSetAction.java |
7 | 6 | 109 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ChangeTypeAction.java |
8 | 5 | 110 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertAnonymousToNestedAction.java |
| ||||
if (selection.size() != 1) return null; Object first = selection.getFirstElement(); if ( ! (first instanceof IJavaElement)) return null; |
| ||||
if (selection.size() != 1) return null; Object first = selection.getFirstElement(); if ( ! (first instanceof IResource)) return null; |
| ||||
if (selection.size() != 1) return null; Object element = selection.getFirstElement(); if ( !(element instanceof IAdaptable)) return null; |
| ||||
if (selection.size() != 1) return false; Object input = selection.getFirstElement(); if ( !(input instanceof IJavaElement)) return false; |
| ||||
if (selection.size() != 1) return false; Object first = selection.getFirstElement(); if ( !(first instanceof IJavaProject)) return false; |
| ||||
if (selection.size() != 1) return null; Object element = selection.getFirstElement(); if ( !(element instanceof IWorkingSet)) return null; |
| ||||
if (selection.size() != 1) return null; Object element = selection.getFirstElement(); if ( !(element instanceof IMember)) return null; |
| ||||
if (selection.size() != 1) return null; Object element = selection.getFirstElement(); if ( !(element instanceof IType)) return null; |
| |||
if (selection.size() != 1) return [[#variable95b22a40]]; Object [[#variable95b23640]]= selection.getFirstElement(); if ( !( [[#variable95b23640]]instanceof [[#variable938648a0]])) return [[#variable95b22a40]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#95b22a40]] | null |
1 | 2 | [[#95b22a40]] | false |
1 | 3 | [[#95b22a40]] | false |
1 | 4 | [[#95b22a40]] | null |
1 | 5 | [[#95b22a40]] | null |
1 | 6 | [[#95b22a40]] | null |
1 | 7 | [[#95b22a40]] | null |
1 | 8 | [[#95b22a40]] | null |
2 | 1 | [[#95b23640]] | element |
2 | 2 | [[#95b23640]] | input |
2 | 3 | [[#95b23640]] | first |
2 | 4 | [[#95b23640]] | element |
2 | 5 | [[#95b23640]] | element |
2 | 6 | [[#95b23640]] | element |
2 | 7 | [[#95b23640]] | first |
2 | 8 | [[#95b23640]] | first |
3 | 1 | [[#938648a0]] | IAdaptable |
3 | 2 | [[#938648a0]] | IJavaElement |
3 | 3 | [[#938648a0]] | IJavaProject |
3 | 4 | [[#938648a0]] | IWorkingSet |
3 | 5 | [[#938648a0]] | IMember |
3 | 6 | [[#938648a0]] | IType |
3 | 7 | [[#938648a0]] | IJavaElement |
3 | 8 | [[#938648a0]] | IResource |