| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 0 | 1.000 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 107 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaLaunchTab.java |
| 2 | 7 | 93 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitLaunchConfigurationTab.java |
| ||||
/**
* Sets the Java project attribute on the given working copy to the Java project
* associated with the given Java element.
*
* @param javaElement Java model element this tab is associated with
* @param config configuration on which to set the Java project attribute
*/
protected void initializeJavaProject(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) {
IJavaProject javaProject = javaElement.getJavaProject();
String name = null;
if (javaProject != null && javaProject.exists()) {
name = javaProject.getElementName();
}
config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, name);
}
|
| ||||
/**
* Set the java project attribute based on the IJavaElement.
* @param javaElement
* @param config
*/
protected void initializeJavaProject(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) {
IJavaProject javaProject = javaElement.getJavaProject();
String name = null;
if (javaProject != null && javaProject.exists()) {
name = javaProject.getElementName();
}
config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, name);
}
|
| |||
/**
* Set the java project attribute based on the IJavaElement.
* @param javaElement
* @param config
*/
/**
* Sets the Java project attribute on the given working copy to the Java project
* associated with the given Java element.
*
* @param javaElement Java model element this tab is associated with
* @param config configuration on which to set the Java project attribute
*/
protected void initializeJavaProject(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) {
IJavaProject javaProject = javaElement.getJavaProject();
String name = null;
if (javaProject != null && javaProject.exists()) {
name = javaProject.getElementName();
}
config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, name);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||