Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 5 | 0.956 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 194 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AbstractJavaMainTab.java |
2 | 7 | 143 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/SharedJavaMainTab.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); } |
| ||||
/** * 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); } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4ebec4a0]] | /** * Loads the main type from the launch configuration's preference store * @param config the config to load the main type from */ protected |
1 | 2 | [[#4ebec4a0]] | /** * updates the project text field form the configuration * @param config the configuration we are editing */ private |
2 | 1 | [[#4ebec3e0]] | updateMainTypeFromConfig |
2 | 2 | [[#4ebec3e0]] | updateProjectFromConfig |
3 | 1 | [[#4ebec360]] | mainTypeName |
3 | 2 | [[#4ebec360]] | projectName |
4 | 1 | [[#4ebec300]] | ATTR_MAIN_TYPE_NAME |
4 | 2 | [[#4ebec300]] | ATTR_PROJECT_NAME |
5 | 1 | [[#4ebec2a0]] | fMainText |
5 | 2 | [[#4ebec2a0]] | fProjText |