CloneSet2983


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.976class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110185
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/CheckedListDialogField.java
210198
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/CheckedListDialogField.java
Clone Instance
1
Line Count
10
Source Line
185
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/CheckedListDialogField.java

        /**
         * Sets the checked state of an element. No dialog changed listener is informed.
         */
        public void setCheckedWithoutUpdate(Object object, boolean state) {
                if (state) {
                        if ( !fCheckedElements.contains(object)) {
                                fCheckedElements.add(object);
                        }
                }
                else   {
                        fCheckedElements.remove(object);
                }
                if (isOkToUse(fTableControl)) {
                        ((CheckboxTableViewer) fTable).setChecked(object, state);
                }
        }


Clone Instance
2
Line Count
10
Source Line
198
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/CheckedListDialogField.java

        public void setGrayedWithoutUpdate(Object object, boolean state) {
                if (state) {
                        if ( !fGrayedElements.contains(object)) {
                                fGrayedElements.add(object);
                        }
                }
                else   {
                        fGrayedElements.remove(object);
                }
                if (isOkToUse(fTableControl)) {
                        ((CheckboxTableViewer) fTable).setGrayed(object, state);
                }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Sets the checked state of an element. No dialog changed listener is informed.
         */
public void [[#variable77ac8b60]](Object object, boolean state) {
  if (state) {
    if ( ! [[#variable77ac8ac0]].contains(object)) {
       [[#variable77ac8ac0]].add(object);
    }
  }
  else {
     [[#variable77ac8ac0]].remove(object);
  }
  if (isOkToUse(fTableControl)) {
    ((CheckboxTableViewer) fTable). [[#variable77ac8a40]](object, state);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77ac8b60]]
setCheckedWithoutUpdate 
12[[#77ac8b60]]
setGrayedWithoutUpdate 
21[[#77ac8ac0]]
fCheckedElements 
22[[#77ac8ac0]]
fGrayedElements 
31[[#77ac8a40]]
setChecked 
32[[#77ac8a40]]
setGrayed