CloneSet964


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120166
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java
219155
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/SelectionButtonDialogFieldGroup.java
Clone Instance
1
Line Count
20
Source Line
166
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java

                        fButtonComposite.setLayout(layout);

                        SelectionListener listener = new SelectionListener() {
                                 public void widgetDefaultSelected(SelectionEvent e) {
                                         doWidgetSelected(e);
                                 }

                                 public void widgetSelected(SelectionEvent e) {
                                         doWidgetSelected(e);
                                 }
                                                     };
                        int nButtons = fButtonNames.length;
                        fButtons = new Button[nButtons];
                        for (int i = 0; i < nButtons; i++) {
                                fButtons[i] = createSelectionButton(i, fButtonComposite, listener);
                        }
                        int nRows = nButtons / fGroupNumberOfColumns;
                        int nFillElements = nRows * fGroupNumberOfColumns - nButtons;
                        for (int i = 0; i < nFillElements; i++) {
                                createEmptySpace(fButtonComposite);
                        }


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

                        fButtonComposite.setLayout(layout);

                        SelectionListener listener = new SelectionListener() {
                                 public void widgetDefaultSelected(SelectionEvent e) {
                                         doWidgetSelected(e);
                                 }

                                 public void widgetSelected(SelectionEvent e) {
                                         doWidgetSelected(e);
                                 }
                                                     };
                        int nButtons = fButtonNames.length;
                        fButtons = new Button[nButtons];
                        for (int i = 0; i < nButtons; i++) {
                                fButtons[i] = createSelectionButton(i, fButtonComposite, listener);
                        }
                        int nRows = nButtons / fGroupNumberOfColumns;
                        int nFillElements = nRows * fGroupNumberOfColumns - nButtons;
                        for (int i = 0; i < nFillElements; i++) {
                                createEmptySpace(fButtonComposite);
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

fButtonComposite.setLayout(layout);
SelectionListener listener = new SelectionListener() {
                               public void widgetDefaultSelected(SelectionEvent e) {
                                 doWidgetSelected(e);
                               }

                               public void widgetSelected(SelectionEvent e) {
                                 doWidgetSelected(e);
                               }
                             };
int nButtons = fButtonNames.length;
fButtons = new Button[nButtons];
for (int i = 0; i < nButtons; i++) {
  fButtons[i] = createSelectionButton(i, fButtonComposite, listener);
}
int nRows = nButtons / fGroupNumberOfColumns;
int nFillElements = nRows * fGroupNumberOfColumns - nButtons;
for (int i = 0; i < nFillElements; i++) {
  createEmptySpace(fButtonComposite);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None