CloneSet1170


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

        protected Combo newComboControl(Composite composite, Key key, String[] values, String[] valueLabels) {
                ControlData data = new ControlData(key, values);

                Combo comboBox = new Combo(composite, SWT.READ_ONLY);
                comboBox.setItems(valueLabels);
                comboBox.setData(data);
                comboBox.addSelectionListener(getSelectionListener());
                comboBox.setFont(JFaceResources.getDialogFont());

                makeScrollableCompositeAware(comboBox);

                String currValue = getValue(key);
                comboBox.select(data.getSelection(currValue));

                fComboBoxes.add(comboBox);
                return comboBox;
        }


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

        protected Combo newComboControl(Composite composite, Key key, String[] values, String[] valueLabels) {
                ControlData data = new ControlData(key, values);

                Combo comboBox = new Combo(composite, SWT.READ_ONLY);
                comboBox.setItems(valueLabels);
                comboBox.setData(data);
                comboBox.addSelectionListener(getSelectionListener());
                comboBox.setFont(JFaceResources.getDialogFont());

                makeScrollableCompositeAware(comboBox);

                String currValue = getValue(key);
                comboBox.select(data.getSelection(currValue));

                fComboBoxes.add(comboBox);
                return comboBox;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

protected Combo newComboControl(Composite composite, Key key, String[] values, String[] valueLabels) {
  ControlData data = new ControlData(key, values);
  Combo comboBox = new Combo(composite, SWT.READ_ONLY);
  comboBox.setItems(valueLabels);
  comboBox.setData(data);
  comboBox.addSelectionListener(getSelectionListener());
  comboBox.setFont(JFaceResources.getDialogFont());
  makeScrollableCompositeAware(comboBox);
  String currValue = getValue(key);
  comboBox.select(data.getSelection(currValue));
  fComboBoxes.add(comboBox);
  return comboBox;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None