CloneSet1762


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13260.957statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113531
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java
213545
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewSourceFolderWizardPage.java
Clone Instance
1
Line Count
13
Source Line
531
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java

                IJavaProject[] projects;
                try {
                        projects = JavaCore.create(getWorkspaceRoot()).getJavaProjects();
                } catch (JavaModelException e) {
                        JUnitPlugin.log(e.getStatus());
                        projects = new IJavaProject[0];
                  }

                ILabelProvider labelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
                ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
                dialog.setTitle(JUnitMessages.JUnitMainTab_projectdialog_title);
                dialog.setMessage(JUnitMessages.JUnitMainTab_projectdialog_message);
                dialog.setElements(projects);


Clone Instance
2
Line Count
13
Source Line
545
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewSourceFolderWizardPage.java

                IJavaProject[] projects;
                try {
                        projects = JavaCore.create(fWorkspaceRoot).getJavaProjects();
                } catch (JavaModelException e) {
                        JavaPlugin.log(e);
                        projects = new IJavaProject[0];
                  }

                ILabelProvider labelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
                ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
                dialog.setTitle(NewWizardMessages.NewSourceFolderWizardPage_ChooseProjectDialog_title);
                dialog.setMessage(NewWizardMessages.NewSourceFolderWizardPage_ChooseProjectDialog_description);
                dialog.setElements(projects);


Clone AbstractionParameter Count: 6Parameter Bindings

IJavaProject[] projects;
try {
  projects = JavaCore.create( [[#variablea4b353c0]]).getJavaProjects();
}
catch (JavaModelException e) {
   [[#variablea4b35360]].log( [[#variable614df980]]);
  projects = new IJavaProject[0];
}
ILabelProvider labelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
dialog.setTitle( [[#variable614deb20]]. [[#variable614deb00]]);
dialog.setMessage( [[#variable614deb20]]. [[#variablea4b35380]]);
dialog.setElements(projects);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4b353c0]]
fWorkspaceRoot 
12[[#a4b353c0]]
getWorkspaceRoot() 
21[[#a4b35360]]
JavaPlugin 
22[[#a4b35360]]
JUnitPlugin 
31[[#614df980]]
e 
32[[#614df980]]
e.getStatus() 
41[[#614deb20]]
NewWizardMessages 
42[[#614deb20]]
JUnitMessages 
51[[#614deb00]]
NewSourceFolderWizardPage_ChooseProjectDialog_title 
52[[#614deb00]]
JUnitMainTab_projectdialog_title 
61[[#a4b35380]]
NewSourceFolderWizardPage_ChooseProjectDialog_description 
62[[#a4b35380]]
JUnitMainTab_projectdialog_message