CloneSet4389


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7250.956class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19194
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AbstractJavaMainTab.java
27143
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/SharedJavaMainTab.java
Clone Instance
1
Line Count
9
Source Line
194
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AbstractJavaMainTab.java

        /**
         * updates the project text field form the configuration
         * @param config the configuration we are editing
         */
        private void updateProjectFromConfig(ILaunchConfiguration config) {
                String projectName = EMPTY_STRING;
                try {
                        projectName = config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, EMPTY_STRING);
                } //end try 
                catch (CoreException ce) {
                        JDIDebugUIPlugin.log(ce);
                }
                fProjText.setText(projectName);
        }


Clone Instance
2
Line Count
7
Source Line
143
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/SharedJavaMainTab.java

        /**
         * Loads the main type from the launch configuration's preference store
         * @param config the config to load the main type from
         */
        protected void updateMainTypeFromConfig(ILaunchConfiguration config) {
                String mainTypeName = EMPTY_STRING;
                try {
                        mainTypeName = config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, EMPTY_STRING);
                } //end try 
                catch (CoreException ce) {
                                          JDIDebugUIPlugin.log(ce);
                }
                fMainText.setText(mainTypeName);
        }


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#variable4ebec4a0]]void [[#variable4ebec3e0]](ILaunchConfiguration config) {
  String  [[#variable4ebec360]]= EMPTY_STRING;
  try {
     [[#variable4ebec360]]= config.getAttribute(IJavaLaunchConfigurationConstants. [[#variable4ebec300]], EMPTY_STRING);
  } //end try 
  catch (CoreException ce) {
    JDIDebugUIPlugin.log(ce);
  }
   [[#variable4ebec2a0]].setText( [[#variable4ebec360]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4ebec4a0]]
/**
 * Loads the main type from the launch configuration's preference store
 * @param config the config to load the main type from
 */
protected 
12[[#4ebec4a0]]
/**
 * updates the project text field form the configuration
 * @param config the configuration we are editing
 */
private 
21[[#4ebec3e0]]
updateMainTypeFromConfig 
22[[#4ebec3e0]]
updateProjectFromConfig 
31[[#4ebec360]]
mainTypeName 
32[[#4ebec360]]
projectName 
41[[#4ebec300]]
ATTR_MAIN_TYPE_NAME 
42[[#4ebec300]]
ATTR_PROJECT_NAME 
51[[#4ebec2a0]]
fMainText 
52[[#4ebec2a0]]
fProjText