Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 1 | 0.990 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 422 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaClasspathTab.java |
2 | 17 | 215 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaMainTab.java |
| ||||
if (projectName.length() > 0) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); IStatus status = workspace.validateName(projectName, IResource.PROJECT); if (status.isOK()) { IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName); if ( !project.exists()) { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_20, new String[] { projectName } )); return false; } if ( !project.isOpen()) { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_21, new String[] { projectName } )); return false; } } else { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_19, new String[] { status.getMessage() } )); return false; } } |
| ||||
if (name.length() > 0) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); IStatus status = workspace.validateName(name, IResource.PROJECT); if (status.isOK()) { IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name); if ( !project.exists()) { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_20, new String[] { name } )); return false; } //end if if ( !project.isOpen()) { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_21, new String[] { name } )); return false; } //end if } //end if else { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_19, new String[] { status.getMessage() } )); return false; } //end else } //end if |
| |||
if ( [[#variableb305b9a0]].length() > 0) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); IStatus status = workspace.validateName( [[#variableb305b9a0]], IResource.PROJECT); if (status.isOK()) { IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject( [[#variableb305b9a0]]); if ( !project.exists()) { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_20, new String[] { [[#variableb305b9a0]] } )); return false; } //end if if ( !project.isOpen()) { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_21, new String[] { [[#variableb305b9a0]] } )); return false; } //end if } //end if else { setErrorMessage(MessageFormat.format(LauncherMessages.JavaMainTab_19, new String[] { status.getMessage() } )); return false; } //end else } //end if |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b305b9a0]] | name |
1 | 2 | [[#b305b9a0]] | projectName |