Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 4 | 0.988 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 794 | plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java |
2 | 12 | 816 | plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java |
| ||||
/** * Returns the classpath provider for the given launch configuration. * * @param configuration launch configuration * @return classpath provider * @exception CoreException if unable to resolve the path provider * @since 2.0 */ public static IRuntimeClasspathProvider getClasspathProvider(ILaunchConfiguration configuration) throws CoreException { String providerId = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, (String) null); IRuntimeClasspathProvider provider = null; if (providerId == null) { provider = fgDefaultClasspathProvider; } else { provider = (IRuntimeClasspathProvider) getClasspathProviders().get(providerId); if (provider == null) { abort(MessageFormat.format(LaunchingMessages.JavaRuntime_26, new String[] { providerId } ), null); } } return provider; } |
| ||||
/** * Returns the source lookup path provider for the given launch configuration. * * @param configuration launch configuration * @return source lookup path provider * @exception CoreException if unable to resolve the path provider * @since 2.0 */ public static IRuntimeClasspathProvider getSourceLookupPathProvider(ILaunchConfiguration configuration) throws CoreException { String providerId = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, (String) null); IRuntimeClasspathProvider provider = null; if (providerId == null) { provider = fgDefaultSourcePathProvider; } else { provider = (IRuntimeClasspathProvider) getClasspathProviders().get(providerId); if (provider == null) { abort(MessageFormat.format(LaunchingMessages.JavaRuntime_27, new String[] { providerId } ), null); } } return provider; } |
| |||
/** * Returns the classpath provider for the given launch configuration. * * @param configuration launch configuration * @return classpath provider * @exception CoreException if unable to resolve the path provider * @since 2.0 */ /** * Returns the source lookup path provider for the given launch configuration. * * @param configuration launch configuration * @return source lookup path provider * @exception CoreException if unable to resolve the path provider * @since 2.0 */ public static IRuntimeClasspathProvider [[#variable7c3efda0]](ILaunchConfiguration configuration) throws CoreException { String providerId = configuration.getAttribute(IJavaLaunchConfigurationConstants. [[#variable7c3ef800]], (String) null); IRuntimeClasspathProvider provider = null; if (providerId == null) { provider = [[#variable7c3efdc0]]; } else { provider = (IRuntimeClasspathProvider) getClasspathProviders().get(providerId); if (provider == null) { abort(MessageFormat.format(LaunchingMessages. [[#variable7c3efd20]], new String[] { providerId } ), null); } } return provider; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7c3efda0]] | getClasspathProvider |
1 | 2 | [[#7c3efda0]] | getSourceLookupPathProvider |
2 | 1 | [[#7c3ef800]] | ATTR_CLASSPATH_PROVIDER |
2 | 2 | [[#7c3ef800]] | ATTR_SOURCE_PATH_PROVIDER |
3 | 1 | [[#7c3efdc0]] | fgDefaultClasspathProvider |
3 | 2 | [[#7c3efdc0]] | fgDefaultSourcePathProvider |
4 | 1 | [[#7c3efd20]] | JavaRuntime_26 |
4 | 2 | [[#7c3efd20]] | JavaRuntime_27 |