| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 4 | 0.965 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 187 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java |
| 2 | 3 | 557 | 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 createImageDescriptor(String pathPrefix, String imageName, boolean useMissingImageDescriptor) {
IPath path = ICONS_PATH.append(pathPrefix).append(imageName);
return createImageDescriptor(JUnitPlugin.getDefault().getBundle(), path, useMissingImageDescriptor);
}
|
| ||||
/*
* 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);
}
|
| |||
/*
* 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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a4b94320]] | create |
| 1 | 2 | [[#a4b94320]] | createImageDescriptor |
| 2 | 1 | [[#a4b94280]] | prefix |
| 2 | 2 | [[#a4b94280]] | pathPrefix |
| 3 | 1 | [[#a4b94220]] | name |
| 3 | 2 | [[#a4b94220]] | imageName |
| 4 | 1 | [[#a4b941a0]] | JavaPlugin |
| 4 | 2 | [[#a4b941a0]] | JUnitPlugin |