CloneSet1009


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17240.988statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117875
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
217278
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/OutputLocationDialog.java
Clone Instance
1
Line Count
17
Source Line
875
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java

                for (int i = 0; i < allProjects.length; i++) {
                        if ( !allProjects[i].equals(currProject)) {
                                rejectedElements.add(allProjects[i]);
                        }
                }
                ViewerFilter filter = new TypedViewerFilter(acceptedClasses, rejectedElements.toArray());

                ILabelProvider lp = new WorkbenchLabelProvider();
                ITreeContentProvider cp = new WorkbenchContentProvider();

                IResource initSelection = null;
                if (fOutputLocationPath != null) {
                        initSelection = fWorkspaceRoot.findMember(fOutputLocationPath);
                }

                FolderSelectionDialog dialog = new FolderSelectionDialog(getShell(), lp, cp);
                dialog.setTitle(NewWizardMessages.BuildPathsBlock_ChooseOutputFolderDialog_title);


Clone Instance
2
Line Count
17
Source Line
278
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/OutputLocationDialog.java

                for (int i = 0; i < allProjects.length; i++) {
                        if ( !allProjects[i].equals(fCurrProject)) {
                                rejectedElements.add(allProjects[i]);
                        }
                }
                ViewerFilter filter = new TypedViewerFilter(acceptedClasses, rejectedElements.toArray());

                ILabelProvider lp = new WorkbenchLabelProvider();
                ITreeContentProvider cp = new WorkbenchContentProvider();

                IResource initSelection = null;
                if (fOutputLocation != null) {
                        initSelection = root.findMember(fOutputLocation);
                }

                FolderSelectionDialog dialog = new FolderSelectionDialog(getShell(), lp, cp);
                dialog.setTitle(NewWizardMessages.OutputLocationDialog_ChooseOutputFolder_title);


Clone AbstractionParameter Count: 4Parameter Bindings

for (int i = 0; i < allProjects.length; i++) {
  if ( !allProjects[i].equals( [[#variable54196ba0]])) {
    rejectedElements.add(allProjects[i]);
  }
}
ViewerFilter filter = new TypedViewerFilter(acceptedClasses, rejectedElements.toArray());
ILabelProvider lp = new WorkbenchLabelProvider();
ITreeContentProvider cp = new WorkbenchContentProvider();
IResource initSelection = null;
if ( [[#variable54196ae0]]!= null) {
  initSelection = [[#variable54196a80]].findMember( [[#variable54196ae0]]);
}
FolderSelectionDialog dialog = new FolderSelectionDialog(getShell(), lp, cp);
dialog.setTitle(NewWizardMessages. [[#variable5e51f7c0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54196ba0]]
currProject 
12[[#54196ba0]]
fCurrProject 
21[[#54196ae0]]
fOutputLocationPath 
22[[#54196ae0]]
fOutputLocation 
31[[#54196a80]]
fWorkspaceRoot 
32[[#54196a80]]
root 
41[[#5e51f7c0]]
BuildPathsBlock_ChooseOutputFolderDialog_title 
42[[#5e51f7c0]]
OutputLocationDialog_ChooseOutputFolder_title