CloneSet5179


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.978type_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11423
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/ExecutionEnvironmentsLabelProvider.java
21423
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/JREsLabelProvider.java
Clone Instance
1
Line Count
14
Source Line
23
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/ExecutionEnvironmentsLabelProvider.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();
        }
}




Clone Instance
2
Line Count
14
Source Line
23
Source File
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 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();
        }
}




Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#589b5480]]
JREsLabelProvider 
12[[#589b5480]]
ExecutionEnvironmentsLabelProvider 
21[[#57aa0140]]
IVMInstall 
22[[#57aa0140]]
IExecutionEnvironment 
31[[#57aa03e0]]
getName 
32[[#57aa03e0]]
getId