CloneSet1579


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.994statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112118
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/NewContainerDialog.java
212156
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/NewSourceFolderDialog.java
Clone Instance
1
Line Count
12
Source Line
118
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/NewContainerDialog.java

                String pathStr = fContainerDialogField.getText();
                if (pathStr.length() == 0) {
                        fContainerFieldStatus.setError(NewWizardMessages.NewContainerDialog_error_enterpath);
                        return;
                }
                IPath path = fCurrProject.getFullPath().append(pathStr);
                IWorkspace workspace = fCurrProject.getWorkspace();

                IStatus pathValidation = workspace.validatePath(path.toString(), IResource.FOLDER);
                if ( !pathValidation.isOK()) {
                        fContainerFieldStatus.setError(Messages.format(NewWizardMessages.NewContainerDialog_error_invalidpath, pathValidation.getMessage()));
                        return;
                }


Clone Instance
2
Line Count
12
Source Line
156
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/NewSourceFolderDialog.java

                        String pathStr = fContainerDialogField.getText();
                        if (pathStr.length() == 0) {
                                fContainerFieldStatus.setError(NewWizardMessages.NewSourceFolderDialog_error_enterpath);
                                return;
                        }
                        IPath path = fCurrProject.getFullPath().append(pathStr);
                        IWorkspace workspace = fCurrProject.getWorkspace();

                        IStatus pathValidation = workspace.validatePath(path.toString(), IResource.FOLDER);
                        if ( !pathValidation.isOK()) {
                                fContainerFieldStatus.setError(Messages.format(NewWizardMessages.NewSourceFolderDialog_error_invalidpath, pathValidation.getMessage()));
                                return;
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

String pathStr = fContainerDialogField.getText();
if (pathStr.length() == 0) {
  fContainerFieldStatus.setError(NewWizardMessages. [[#variable608bf920]]);
  return;
}
IPath path = fCurrProject.getFullPath().append(pathStr);
IWorkspace workspace = fCurrProject.getWorkspace();
IStatus pathValidation = workspace.validatePath(path.toString(), IResource.FOLDER);
if ( !pathValidation.isOK()) {
  fContainerFieldStatus.setError(Messages.format(NewWizardMessages. [[#variable608bf8e0]], pathValidation.getMessage()));
  return;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#608bf920]]
NewContainerDialog_error_enterpath 
12[[#608bf920]]
NewSourceFolderDialog_error_enterpath 
21[[#608bf8e0]]
NewContainerDialog_error_invalidpath 
22[[#608bf8e0]]
NewSourceFolderDialog_error_invalidpath