CloneSet3939


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3240.965class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13187
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java
23557
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPluginImages.java
Clone Instance
1
Line Count
3
Source Line
187
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java

        /*
         * Creates an image descriptor for the given prefix and name in the JDT UI bundle. The path can
         * contain variables like $NL$.
         * If no image could be found, <code>useMissingImageDescriptor</code> decides if either
         * the 'missing image descriptor' is returned or <code>null</code>.
         * or <code>null</code>.
         */
        private static ImageDescriptor createImageDescriptor(String pathPrefix, String imageName, boolean useMissingImageDescriptor) {
                IPath path = ICONS_PATH.append(pathPrefix).append(imageName);
                return createImageDescriptor(JUnitPlugin.getDefault().getBundle(), path, useMissingImageDescriptor);
        }


Clone Instance
2
Line Count
3
Source Line
557
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPluginImages.java

        /*
         * Creates an image descriptor for the given prefix and name in the JDT UI bundle. The path can
         * contain variables like $NL$.
         * If no image could be found, <code>useMissingImageDescriptor</code> decides if either
         * the 'missing image descriptor' is returned or <code>null</code>.
         * or <code>null</code>.
         */
        private static ImageDescriptor create(String prefix, String name, boolean useMissingImageDescriptor) {
                IPath path = ICONS_PATH.append(prefix).append(name);
                return createImageDescriptor(JavaPlugin.getDefault().getBundle(), path, useMissingImageDescriptor);
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/*
         * Creates an image descriptor for the given prefix and name in the JDT UI bundle. The path can
         * contain variables like $NL$.
         * If no image could be found, <code>useMissingImageDescriptor</code> decides if either
         * the 'missing image descriptor' is returned or <code>null</code>.
         * or <code>null</code>.
         */
private static ImageDescriptor  [[#variablea4b94320]](String  [[#variablea4b94280]], String  [[#variablea4b94220]], boolean useMissingImageDescriptor) {
  IPath path = ICONS_PATH.append( [[#variablea4b94280]]).append( [[#variablea4b94220]]);
  return createImageDescriptor( [[#variablea4b941a0]].getDefault().getBundle(), path, useMissingImageDescriptor);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4b94320]]
create 
12[[#a4b94320]]
createImageDescriptor 
21[[#a4b94280]]
prefix 
22[[#a4b94280]]
pathPrefix 
31[[#a4b94220]]
name 
32[[#a4b94220]]
imageName 
41[[#a4b941a0]]
JavaPlugin 
42[[#a4b941a0]]
JUnitPlugin