CloneSet2517


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112864
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java
212815
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java
Clone Instance
1
Line Count
12
Source Line
864
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java

        /**
         * Returns the selected elements.
         */
        public List getSelectedElements() {
                List result = new ArrayList();
                if (isOkToUse(fTableControl)) {
                        ISelection selection = fTable.getSelection();
                        if (selection instanceof IStructuredSelection) {
                                Iterator iter = ((IStructuredSelection) selection).iterator();
                                while (iter.hasNext()) {
                                        result.add(iter.next());
                                }
                        }
                }
                return result;
        }


Clone Instance
2
Line Count
12
Source Line
815
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java

        /**
        * Returns the selected elements.
        */
        public List getSelectedElements() {
                ArrayList result = new ArrayList();
                if (isOkToUse(fTreeControl)) {
                        ISelection selection = fTree.getSelection();
                        if (selection instanceof IStructuredSelection) {
                                Iterator iter = ((IStructuredSelection) selection).iterator();
                                while (iter.hasNext()) {
                                        result.add(iter.next());
                                }
                        }
                }
                return result;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
        * Returns the selected elements.
        */
/**
         * Returns the selected elements.
         */
public List getSelectedElements() {
   [[#variable9016d840]] result = new ArrayList();
  if (isOkToUse( [[#variable9016d7e0]])) {
    ISelection selection = [[#variable9016d780]].getSelection();
    if (selection instanceof IStructuredSelection) {
      Iterator iter = ((IStructuredSelection) selection).iterator();
      while (iter.hasNext()) {
        result.add(iter.next());
      }
    }
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9016d840]]
ArrayList 
12[[#9016d840]]
List 
21[[#9016d7e0]]
fTreeControl 
22[[#9016d7e0]]
fTableControl 
31[[#9016d780]]
fTree 
32[[#9016d780]]
fTable