Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 3 | 2 | 0.958 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 77 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/StatusBarUpdater.java |
2 | 4 | 378 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java |
3 | 4 | 306 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java |
| ||||
if (elem instanceof IAdaptable) { IWorkbenchAdapter wbadapter = (IWorkbenchAdapter) ((IAdaptable) elem).getAdapter(IWorkbenchAdapter.class ); if (wbadapter != null) { return wbadapter.getLabel(elem); } } |
| ||||
if (obj instanceof IAdaptable) { IWorkbenchAdapter wbadapter = (IWorkbenchAdapter) ((IAdaptable) obj).getAdapter(IWorkbenchAdapter.class ); if (wbadapter != null) { return wbadapter.getLabel(obj); } } |
| ||||
// try to use the workbench adapter for non - java resources or if not available, use the viewers label provider if (element instanceof IAdaptable) { IWorkbenchAdapter adapter = (IWorkbenchAdapter) ((IAdaptable) element).getAdapter(IWorkbenchAdapter.class ); if (adapter != null) { return adapter.getLabel(element); } } |
| |||
// try to use the workbench adapter for non - java resources or if not available, use the viewers label provider if ( [[#variableb1af7640]]instanceof IAdaptable) { IWorkbenchAdapter [[#variableb1af75e0]]= (IWorkbenchAdapter) ((IAdaptable) [[#variableb1af7640]]).getAdapter(IWorkbenchAdapter.class ); if ( [[#variableb1af75e0]]!= null) { return [[#variableb1af75e0]].getLabel( [[#variableb1af7640]]); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b1af7640]] | elem |
1 | 2 | [[#b1af7640]] | obj |
1 | 3 | [[#b1af7640]] | element |
2 | 1 | [[#b1af75e0]] | wbadapter |
2 | 2 | [[#b1af75e0]] | wbadapter |
2 | 3 | [[#b1af75e0]] | adapter |