| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 2 | 0.987 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 396 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java |
| 2 | 6 | 410 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java |
| ||||
/**
* Returns the working directory attribute for the given snippet file,
* possibly <code>null</code>.
*
* @exception CoreException if unable to retrieve the attribute
*/
public static String getWorkingDirectoryAttribute(IFile file) throws CoreException {
ILaunchConfiguration config = getLaunchConfigurationTemplate(file);
if (config != null) {
return config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, (String) null);
}
return null;
}
|
| ||||
/**
* Returns the VM args attribute for the given snippet file,
* possibly <code>null</code>.
*
* @exception CoreException if unable to retrieve the attribute
*/
public static String getVMArgsAttribute(IFile file) throws CoreException {
ILaunchConfiguration config = getLaunchConfigurationTemplate(file);
if (config != null) {
return config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, (String) null);
}
return null;
}
|
| |||
/**
* Returns the working directory attribute for the given snippet file,
* possibly <code>null</code>.
*
* @exception CoreException if unable to retrieve the attribute
*/
/**
* Returns the VM args attribute for the given snippet file,
* possibly <code>null</code>.
*
* @exception CoreException if unable to retrieve the attribute
*/
public static String [[#variableb18af280]](IFile file) throws CoreException {
ILaunchConfiguration config = getLaunchConfigurationTemplate(file);
if (config != null) {
return config.getAttribute(IJavaLaunchConfigurationConstants. [[#variableb18af980]], (String) null);
}
return null;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b18af280]] | getWorkingDirectoryAttribute |
| 1 | 2 | [[#b18af280]] | getVMArgsAttribute |
| 2 | 1 | [[#b18af980]] | ATTR_WORKING_DIRECTORY |
| 2 | 2 | [[#b18af980]] | ATTR_VM_ARGUMENTS |