Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 4 | 0.953 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 81 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/JUnitWizard.java |
2 | 11 | 63 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewElementWizard.java |
| ||||
{ final IWorkbenchPage activePage = JUnitPlugin.getActivePage(); if (activePage != null) { final Display display = Display.getDefault(); if (display != null) { display.asyncExec(new Runnable() { public void run() { try { IDE.openEditor(activePage, (IFile) resource, true); } catch (PartInitException e) { JUnitPlugin.log(e); } } } ); } } } |
| ||||
{ final IWorkbenchPage activePage = JavaPlugin.getActivePage(); if (activePage != null) { final Display display = getShell().getDisplay(); if (display != null) { display.asyncExec(new Runnable() { public void run() { try { IDE.openEditor(activePage, resource, true); } catch (PartInitException e) { JavaPlugin.log(e); } } } ); } } } |
| |||
{ final IWorkbenchPage activePage = [[#variable99af9980]].getActivePage(); if (activePage != null) { final Display display = [[#variable99af9920]]. [[#variable99af98a0]](); if (display != null) { display.asyncExec(new Runnable() { public void run() { try { IDE.openEditor(activePage, [[#variable99af97a0]], true); } catch (PartInitException e) { [[#variable99af9980]].log(e); } } } ); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#99af9980]] | JavaPlugin |
1 | 2 | [[#99af9980]] | JUnitPlugin |
2 | 1 | [[#99af9920]] | getShell() |
2 | 2 | [[#99af9920]] | Display |
3 | 1 | [[#99af98a0]] | getDisplay |
3 | 2 | [[#99af98a0]] | getDefault |
4 | 1 | [[#99af97a0]] | resource |
4 | 2 | [[#99af97a0]] | (IFile) resource |