Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 4 | 0.981 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 286 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java |
2 | 9 | 296 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java |
| ||||
try { if (fDotProjectBackup != null) { IFileStore projectFile = EFS.getStore(projectLocation).getChild(FILENAME_PROJECT); projectFile.delete(EFS.NONE, new SubProgressMonitor(monitor, 1)); copyFile(fDotProjectBackup, projectFile, new SubProgressMonitor(monitor, 1)); } } catch (IOException e) { IStatus status = new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, IStatus.ERROR, NewWizardMessages.JavaProjectWizardSecondPage_problem_restore_project, e); throw new CoreException(status); } |
| ||||
try { if (fDotClasspathBackup != null) { IFileStore classpathFile = EFS.getStore(projectLocation).getChild(FILENAME_CLASSPATH); classpathFile.delete(EFS.NONE, new SubProgressMonitor(monitor, 1)); copyFile(fDotClasspathBackup, classpathFile, new SubProgressMonitor(monitor, 1)); } } catch (IOException e) { IStatus status = new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, IStatus.ERROR, NewWizardMessages.JavaProjectWizardSecondPage_problem_restore_classpath, e); throw new CoreException(status); } |
| |||
try { if ( [[#variable64562640]]!= null) { IFileStore [[#variableb8cd8720]]= EFS.getStore(projectLocation).getChild( [[#variableb8cd8be0]]); [[#variableb8cd8720]].delete(EFS.NONE, new SubProgressMonitor(monitor, 1)); copyFile( [[#variable64562640]], [[#variableb8cd8720]], new SubProgressMonitor(monitor, 1)); } } catch (IOException e) { IStatus status = new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, IStatus.ERROR, NewWizardMessages. [[#variable64562680]], e); throw new CoreException(status); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#64562640]] | fDotClasspathBackup |
1 | 2 | [[#64562640]] | fDotProjectBackup |
2 | 1 | [[#b8cd8720]] | classpathFile |
2 | 2 | [[#b8cd8720]] | projectFile |
3 | 1 | [[#b8cd8be0]] | FILENAME_CLASSPATH |
3 | 2 | [[#b8cd8be0]] | FILENAME_PROJECT |
4 | 1 | [[#64562680]] | JavaProjectWizardSecondPage_problem_restore_classpath |
4 | 2 | [[#64562680]] | JavaProjectWizardSecondPage_problem_restore_project |