CloneSet514


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

        protected Text addTextField(Composite parent, String label, Key key, int indent, int widthHint) {
                Label labelControl = new Label(parent, SWT.WRAP);
                labelControl.setText(label);
                labelControl.setFont(JFaceResources.getDialogFont());
                labelControl.setLayoutData(new GridData());

                Text textBox = new Text(parent, SWT.BORDER|  SWT.SINGLE);
                textBox.setData(key);
                textBox.setLayoutData(new GridData());

                makeScrollableCompositeAware(textBox);

                fLabels.put(textBox, labelControl);

                String currValue = getValue(key);
                if (currValue != null) {
                        textBox.setText(currValue);
                }
                textBox.addModifyListener(getTextModifyListener());

                GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
                if (widthHint != 0) {
                        data.widthHint = widthHint;
                }
                data.horizontalIndent = indent;
                data.horizontalSpan = 2;
                textBox.setLayoutData(data);

                fTextBoxes.add(textBox);
                return textBox;
        }


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

        protected Text addTextField(Composite parent, String label, Key key, int indent, int widthHint) {
                Label labelControl = new Label(parent, SWT.WRAP);
                labelControl.setText(label);
                labelControl.setFont(JFaceResources.getDialogFont());
                labelControl.setLayoutData(new GridData());

                Text textBox = new Text(parent, SWT.BORDER|  SWT.SINGLE);
                textBox.setData(key);
                textBox.setLayoutData(new GridData());

                makeScrollableCompositeAware(textBox);

                fLabels.put(textBox, labelControl);

                String currValue = getValue(key);
                if (currValue != null) {
                        textBox.setText(currValue);
                }
                textBox.addModifyListener(getTextModifyListener());

                GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
                if (widthHint != 0) {
                        data.widthHint = widthHint;
                }
                data.horizontalIndent = indent;
                data.horizontalSpan = 2;
                textBox.setLayoutData(data);

                fTextBoxes.add(textBox);
                return textBox;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

protected Text addTextField(Composite parent, String label, Key key, int indent, int widthHint) {
  Label labelControl = new Label(parent, SWT.WRAP);
  labelControl.setText(label);
  labelControl.setFont(JFaceResources.getDialogFont());
  labelControl.setLayoutData(new GridData());
  Text textBox = new Text(parent, SWT.BORDER|SWT.SINGLE);
  textBox.setData(key);
  textBox.setLayoutData(new GridData());
  makeScrollableCompositeAware(textBox);
  fLabels.put(textBox, labelControl);
  String currValue = getValue(key);
  if (currValue != null) {
    textBox.setText(currValue);
  }
  textBox.addModifyListener(getTextModifyListener());
  GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
  if (widthHint != 0) {
    data.widthHint = widthHint;
  }
  data.horizontalIndent = indent;
  data.horizontalSpan = 2;
  textBox.setLayoutData(data);
  fTextBoxes.add(textBox);
  return textBox;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None