Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 6 | 0.957 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 531 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java |
2 | 13 | 545 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewSourceFolderWizardPage.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); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a4b353c0]] | fWorkspaceRoot |
1 | 2 | [[#a4b353c0]] | getWorkspaceRoot() |
2 | 1 | [[#a4b35360]] | JavaPlugin |
2 | 2 | [[#a4b35360]] | JUnitPlugin |
3 | 1 | [[#614df980]] | e |
3 | 2 | [[#614df980]] | e.getStatus() |
4 | 1 | [[#614deb20]] | NewWizardMessages |
4 | 2 | [[#614deb20]] | JUnitMessages |
5 | 1 | [[#614deb00]] | NewSourceFolderWizardPage_ChooseProjectDialog_title |
5 | 2 | [[#614deb00]] | JUnitMainTab_projectdialog_title |
6 | 1 | [[#a4b35380]] | NewSourceFolderWizardPage_ChooseProjectDialog_description |
6 | 2 | [[#a4b35380]] | JUnitMainTab_projectdialog_message |