CloneSet1258


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.981statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19286
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java
29296
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java
Clone Instance
1
Line Count
9
Source Line
286
Source File
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);
                  }


Clone Instance
2
Line Count
9
Source Line
296
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java

                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);
                  }


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#64562640]]
fDotClasspathBackup 
12[[#64562640]]
fDotProjectBackup 
21[[#b8cd8720]]
classpathFile 
22[[#b8cd8720]]
projectFile 
31[[#b8cd8be0]]
FILENAME_CLASSPATH 
32[[#b8cd8be0]]
FILENAME_PROJECT 
41[[#64562680]]
JavaProjectWizardSecondPage_problem_restore_classpath 
42[[#64562680]]
JavaProjectWizardSecondPage_problem_restore_project