Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.978 | type_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 23 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/ExecutionEnvironmentsLabelProvider.java |
2 | 14 | 23 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/JREsLabelProvider.java |
| ||||
/** * Label provider for JREs. * @since 3.2 */ public class ExecutionEnvironmentsLabelProvider extends LabelProvider { /** * @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object) */ public Image getImage(Object element) { return JavaUI.getSharedImages().getImage(ISharedImages.IMG_OBJS_LIBRARY); } /** * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ public String getText(Object element) { return ((IExecutionEnvironment) element).getId(); } } |
| ||||
/** * Label provider for JREs. * @since 3.2 */ public class JREsLabelProvider extends LabelProvider { /** * @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object) */ public Image getImage(Object element) { return JavaUI.getSharedImages().getImage(ISharedImages.IMG_OBJS_LIBRARY); } /** * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ public String getText(Object element) { return ((IVMInstall) element).getName(); } } |
| |||
/** * Label provider for JREs. * @since 3.2 */ public class [[#variable589b5480]]extends LabelProvider { /** * @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object) */ public Image getImage(Object element) { return JavaUI.getSharedImages().getImage(ISharedImages.IMG_OBJS_LIBRARY); } /** * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ public String getText(Object element) { return (( [[#variable57aa0140]]) element). [[#variable57aa03e0]](); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#589b5480]] | JREsLabelProvider |
1 | 2 | [[#589b5480]] | ExecutionEnvironmentsLabelProvider |
2 | 1 | [[#57aa0140]] | IVMInstall |
2 | 2 | [[#57aa0140]] | IExecutionEnvironment |
3 | 1 | [[#57aa03e0]] | getName |
3 | 2 | [[#57aa03e0]] | getId |