CloneSet1421


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

        protected void controlChanged(Widget widget) {
                ControlData data = (ControlData) widget.getData();
                String newValue = null;
                if (widget instanceof Button) {
                        newValue = data.getValue(((Button) widget).getSelection());
                }
                else   if (widget instanceof Combo) {
                        newValue = data.getValue(((Combo) widget).getSelectionIndex());
                       }
                       else {
                        return;
                       }
                String oldValue = setValue(data.getKey(), newValue);
                validateSettings(data.getKey(), oldValue, newValue);
        }


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

        protected void controlChanged(Widget widget) {
                ControlData data = (ControlData) widget.getData();
                String newValue = null;
                if (widget instanceof Button) {
                        newValue = data.getValue(((Button) widget).getSelection());
                }
                else   if (widget instanceof Combo) {
                        newValue = data.getValue(((Combo) widget).getSelectionIndex());
                       }
                       else {
                        return;
                       }
                String oldValue = setValue(data.getKey(), newValue);
                validateSettings(data.getKey(), oldValue, newValue);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

protected void controlChanged(Widget widget) {
  ControlData data = (ControlData) widget.getData();
  String newValue = null;
  if (widget instanceof Button) {
    newValue = data.getValue(((Button) widget).getSelection());
  }
  else
    if (widget instanceof Combo) {
      newValue = data.getValue(((Combo) widget).getSelectionIndex());
    }
    else {
      return;
    }
  String oldValue = setValue(data.getKey(), newValue);
  validateSettings(data.getKey(), oldValue, newValue);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None