Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 5 | 0.962 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 469 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java |
2 | 16 | 490 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java |
| ||||
/** * Sorts by VM name. */ private void sortByName() { fVMList.setSorter(new ViewerSorter() { public int compare(Viewer viewer, Object e1, Object e2) { if ((e1 instanceof IVMInstall) && (e2 instanceof IVMInstall)) { IVMInstall left = (IVMInstall) e1; IVMInstall right = (IVMInstall) e2; return left.getName().compareToIgnoreCase(right.getName()); } return super.compare(viewer, e1, e2); } public boolean isSorterProperty(Object element, String property) { return true; } } ); fSortColumn = 1; } |
| ||||
/** * Sorts by VM location. */ private void sortByLocation() { fVMList.setSorter(new ViewerSorter() { public int compare(Viewer viewer, Object e1, Object e2) { if ((e1 instanceof IVMInstall) && (e2 instanceof IVMInstall)) { IVMInstall left = (IVMInstall) e1; IVMInstall right = (IVMInstall) e2; return left.getInstallLocation().getAbsolutePath().compareToIgnoreCase(right.getInstallLocation().getAbsolutePath()); } return super.compare(viewer, e1, e2); } public boolean isSorterProperty(Object element, String property) { return true; } } ); fSortColumn = 2; } |
| |||
/** * Sorts by VM name. */ /** * Sorts by VM location. */ private void [[#variable5822a380]]() { fVMList.setSorter(new ViewerSorter() { public int compare(Viewer viewer, Object e1, Object e2) { if ((e1 instanceof IVMInstall) && (e2 instanceof IVMInstall)) { IVMInstall left = (IVMInstall) e1; IVMInstall right = (IVMInstall) e2; return [[#variable5822a2c0]]. [[#variable5822a240]]().compareToIgnoreCase( [[#variable5822a1c0]]. [[#variable5822a240]]()); } return super.compare(viewer, e1, e2); } public boolean isSorterProperty(Object element, String property) { return true; } } ); fSortColumn = [[#variable5822a120]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5822a380]] | sortByName |
1 | 2 | [[#5822a380]] | sortByLocation |
2 | 1 | [[#5822a2c0]] | left |
2 | 2 | [[#5822a2c0]] | left.getInstallLocation() |
3 | 1 | [[#5822a240]] | getName |
3 | 2 | [[#5822a240]] | getAbsolutePath |
4 | 1 | [[#5822a1c0]] | right |
4 | 2 | [[#5822a1c0]] | right.getInstallLocation() |
5 | 1 | [[#5822a120]] | 1 |
5 | 2 | [[#5822a120]] | 2 |