CloneSet773


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122253
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
222331
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java
Clone Instance
1
Line Count
22
Source Line
253
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java

        protected Button addCheckBox(Composite parent, String label, Key key, String[] values, int indent) {
                ControlData data = new ControlData(key, values);

                GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
                gd.horizontalSpan = 3;
                gd.horizontalIndent = indent;

                Button checkBox = new Button(parent, SWT.CHECK);
                checkBox.setFont(JFaceResources.getDialogFont());
                checkBox.setText(label);
                checkBox.setData(data);
                checkBox.setLayoutData(gd);
                checkBox.addSelectionListener(getSelectionListener());

                makeScrollableCompositeAware(checkBox);

                String currValue = getValue(key);
                checkBox.setSelection(data.getSelection(currValue) == 0);

                fCheckBoxes.add(checkBox);

                return checkBox;
        }


Clone Instance
2
Line Count
22
Source Line
331
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java

        protected Button addCheckBox(Composite parent, String label, Key key, String[] values, int indent) {
                ControlData data = new ControlData(key, values);

                GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
                gd.horizontalSpan = 3;
                gd.horizontalIndent = indent;

                Button checkBox = new Button(parent, SWT.CHECK);
                checkBox.setFont(JFaceResources.getDialogFont());
                checkBox.setText(label);
                checkBox.setData(data);
                checkBox.setLayoutData(gd);
                checkBox.addSelectionListener(getSelectionListener());

                makeScrollableCompositeAware(checkBox);

                String currValue = getValue(key);
                checkBox.setSelection(data.getSelection(currValue) == 0);

                fCheckBoxes.add(checkBox);

                return checkBox;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

protected Button addCheckBox(Composite parent, String label, Key key, String[] values, int indent) {
  ControlData data = new ControlData(key, values);
  GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  gd.horizontalSpan = 3;
  gd.horizontalIndent = indent;
  Button checkBox = new Button(parent, SWT.CHECK);
  checkBox.setFont(JFaceResources.getDialogFont());
  checkBox.setText(label);
  checkBox.setData(data);
  checkBox.setLayoutData(gd);
  checkBox.addSelectionListener(getSelectionListener());
  makeScrollableCompositeAware(checkBox);
  String currValue = getValue(key);
  checkBox.setSelection(data.getSelection(currValue) == 0);
  fCheckBoxes.add(checkBox);
  return checkBox;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None