CloneSet3563


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17107
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaLaunchTab.java
2793
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitLaunchConfigurationTab.java
Clone Instance
1
Line Count
7
Source Line
107
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaLaunchTab.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);
        }


Clone Instance
2
Line Count
7
Source Line
93
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitLaunchConfigurationTab.java

        /**
         * 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);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None