CloneSet1809


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114199
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java
214182
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/SelectionButtonDialogFieldGroup.java
Clone Instance
1
Line Count
14
Source Line
199
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java

        /**
         * Returns a button from the group or <code>null</code> if not yet created.
         */
        public Button getSelectionButton(int index) {
                if (index >= 0 && index < fButtons.length) {
                        return fButtons[index];
                }
                return null;
        }

        private void doWidgetSelected(SelectionEvent e) {
                Button button = (Button) e.widget;
                for (int i = 0; i < fButtons.length; i++) {
                        if (fButtons[i] == button) {
                                fButtonsSelected[i] = button.getSelection();
                                dialogFieldChanged();
                                return;
                        }
                }
        }


Clone Instance
2
Line Count
14
Source Line
182
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/SelectionButtonDialogFieldGroup.java

        /**
         * Returns a button from the group or <code>null</code> if not yet created.
         */
        public Button getSelectionButton(int index) {
                if (index >= 0 && index < fButtons.length) {
                        return fButtons[index];
                }
                return null;
        }

        private void doWidgetSelected(SelectionEvent e) {
                Button button = (Button) e.widget;
                for (int i = 0; i < fButtons.length; i++) {
                        if (fButtons[i] == button) {
                                fButtonsSelected[i] = button.getSelection();
                                dialogFieldChanged();
                                return;
                        }
                }
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Returns a button from the group or <code>null</code> if not yet created.
         */
public Button getSelectionButton(int index) {
  if (index >= 0 && index < fButtons.length) {
    return fButtons[index];
  }
  return null;
}

private void doWidgetSelected(SelectionEvent e) {
  Button button = (Button) e.widget;
  for (int i = 0; i < fButtons.length; i++) {
    if (fButtons[i] == button) {
      fButtonsSelected[i] = button.getSelection();
      dialogFieldChanged();
      return;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None