CloneSet4486


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16201.000class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116566
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java
216508
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java
Clone Instance
1
Line Count
16
Source Line
566
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java

        /**
         * Gets the elements shown in the list.
         * The list returned is a copy, so it can be modified by the user.
         */
        public List getElements() {
                return new ArrayList(fElements);
        }

        /**
         * Gets the elements shown at the given index.
         */
        public Object getElement(int index) {
                return fElements.get(index);
        }

        /**
        * Gets the index of an element in the list or -1 if element is not in list.
        */
        public int getIndexOfElement(Object elem) {
                return fElements.indexOf(elem);
        }


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

        /**
        * Gets the elements shown in the list.
        * The list returned is a copy, so it can be modified by the user.
        */
        public List getElements() {
                return new ArrayList(fElements);
        }

        /**
        * Gets the element shown at the given index.
        */
        public Object getElement(int index) {
                return fElements.get(index);
        }

        /**
        * Gets the index of an element in the list or -1 if element is not in list.
    */
        public int getIndexOfElement(Object elem) {
                return fElements.indexOf(elem);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Gets the elements shown in the list.
         * The list returned is a copy, so it can be modified by the user.
         */
/**
        * Gets the elements shown in the list.
        * The list returned is a copy, so it can be modified by the user.
        */
public List getElements() {
  return new ArrayList(fElements);
}

/**
         * Gets the elements shown at the given index.
         */
/**
        * Gets the element shown at the given index.
        */
public Object getElement(int index) {
  return fElements.get(index);
}

/**
        * Gets the index of an element in the list or -1 if element is not in list.
        */
/**
        * Gets the index of an element in the list or -1 if element is not in list.
    */
public int getIndexOfElement(Object elem) {
  return fElements.indexOf(elem);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None