CloneSet1944


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18102
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddFolderAction.java
2880
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddJarAction.java
Clone Instance
1
Line Count
8
Source Line
102
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddFolderAction.java

                if (dialog.open() == Window.OK) {
                        Object[] elements = dialog.getResult();
                        IRuntimeClasspathEntry[] res = new IRuntimeClasspathEntry[elements.length];
                        for (int i = 0; i < res.length; i++) {
                                IResource elem = (IResource) elements[i];
                                res[i] = JavaRuntime.newArchiveRuntimeClasspathEntry(elem);
                        }
                        getViewer().addEntries(res);
                }


Clone Instance
2
Line Count
8
Source Line
80
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddJarAction.java

                if (dialog.open() == Window.OK) {
                        Object[] elements = dialog.getResult();
                        IRuntimeClasspathEntry[] res = new IRuntimeClasspathEntry[elements.length];
                        for (int i = 0; i < res.length; i++) {
                                IResource elem = (IResource) elements[i];
                                res[i] = JavaRuntime.newArchiveRuntimeClasspathEntry(elem);
                        }
                        getViewer().addEntries(res);
                }


Clone AbstractionParameter Count: 0Parameter Bindings

if (dialog.open() == Window.OK) {
  Object[] elements = dialog.getResult();
  IRuntimeClasspathEntry[] res = new IRuntimeClasspathEntry[elements.length];
  for (int i = 0; i < res.length; i++) {
    IResource elem = (IResource) elements[i];
    res[i] = JavaRuntime.newArchiveRuntimeClasspathEntry(elem);
  }
  getViewer().addEntries(res);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None