CloneSet2537


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11240.953block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11181
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/JUnitWizard.java
21163
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewElementWizard.java
Clone Instance
1
Line Count
11
Source Line
81
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/JUnitWizard.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);
                                                          }
                                                }
                                                          } );
                                }
                        }
                                                          }


Clone Instance
2
Line Count
11
Source Line
63
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewElementWizard.java

                                                          {
                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);
                                                  }
                                        }
                                                  } );
                        }
                }
                                                          }


Clone AbstractionParameter Count: 4Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99af9980]]
JavaPlugin 
12[[#99af9980]]
JUnitPlugin 
21[[#99af9920]]
getShell() 
22[[#99af9920]]
Display 
31[[#99af98a0]]
getDisplay 
32[[#99af98a0]]
getDefault 
41[[#99af97a0]]
resource 
42[[#99af97a0]]
(IFile) resource