CloneSet1961


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.982statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17419
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NewJavaProjectPreferencePage.java
27428
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NewJavaProjectPreferencePage.java
Clone Instance
1
Line Count
7
Source Line
419
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NewJavaProjectPreferencePage.java

                        IPath srcPath = dmy.getFullPath().append(srcName);
                        if (srcName.length() != 0) {
                                status = workspace.validatePath(srcPath.toString(), IResource.FOLDER);
                                if ( !status.isOK()) {
                                        String message = Messages.format(PreferencesMessages.NewJavaProjectPreferencePage_folders_error_invalidsrcname, status.getMessage());
                                        updateStatus(new StatusInfo(IStatus.ERROR, message));
                                        return;
                                }
                        }


Clone Instance
2
Line Count
7
Source Line
428
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NewJavaProjectPreferencePage.java

                        IPath binPath = dmy.getFullPath().append(binName);
                        if (binName.length() != 0) {
                                status = workspace.validatePath(binPath.toString(), IResource.FOLDER);
                                if ( !status.isOK()) {
                                        String message = Messages.format(PreferencesMessages.NewJavaProjectPreferencePage_folders_error_invalidbinname, status.getMessage());
                                        updateStatus(new StatusInfo(IStatus.ERROR, message));
                                        return;
                                }
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

IPath  [[#variableb29fb500]]= dmy.getFullPath().append( [[#variable64394f40]]);
if ( [[#variable64394f40]].length() != 0) {
  status = workspace.validatePath( [[#variableb29fb500]].toString(), IResource.FOLDER);
  if ( !status.isOK()) {
    String message = Messages.format(PreferencesMessages. [[#variableb29fa3e0]], status.getMessage());
    updateStatus(new StatusInfo(IStatus.ERROR, message));
    return;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b29fb500]]
srcPath 
12[[#b29fb500]]
binPath 
21[[#64394f40]]
srcName 
22[[#64394f40]]
binName 
31[[#b29fa3e0]]
NewJavaProjectPreferencePage_folders_error_invalidsrcname 
32[[#b29fa3e0]]
NewJavaProjectPreferencePage_folders_error_invalidbinname