CloneSet725


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

        /*
         * @see DialogField#doFillIntoGrid
         */
        public Control[] doFillIntoGrid(Composite parent, int nColumns) {
                assertEnoughColumns(nColumns);

                if (fGroupBorderStyle == SWT.NONE) {
                        Label label = getLabelControl(parent);
                        label.setLayoutData(gridDataForLabel(1));

                        Composite buttonsgroup = getSelectionButtonsGroup(parent);
                        GridData gd = new GridData();
                        gd.horizontalSpan = nColumns - 1;
                        buttonsgroup.setLayoutData(gd);
                        return new Control[] {
                                               label, buttonsgroup
                                             };
                }
                else   {
                        Composite buttonsgroup = getSelectionButtonsGroup(parent);
                        GridData gd = new GridData();
                        gd.horizontalSpan = nColumns;
                        buttonsgroup.setLayoutData(gd);
                        return new Control[] {
                                               buttonsgroup
                                             };
                }
        }

        /*
         * @see DialogField#doFillIntoGrid
         */
        public int getNumberOfControls() {
                return (fGroupBorderStyle == SWT.NONE) ? 2:  1;
        }


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

        // ------- layout helpers
        /*
         * @see DialogField#doFillIntoGrid
         */
        public Control[] doFillIntoGrid(Composite parent, int nColumns) {
                assertEnoughColumns(nColumns);

                if (fGroupBorderStyle == SWT.NONE) {
                        Label label = getLabelControl(parent);
                        label.setLayoutData(gridDataForLabel(1));

                        Composite buttonsgroup = getSelectionButtonsGroup(parent);
                        GridData gd = new GridData();
                        gd.horizontalSpan = nColumns - 1;
                        buttonsgroup.setLayoutData(gd);

                        return new Control[] {
                                               label, buttonsgroup
                                             };
                }
                else   {
                        Composite buttonsgroup = getSelectionButtonsGroup(parent);
                        GridData gd = new GridData();
                        gd.horizontalSpan = nColumns;
                        buttonsgroup.setLayoutData(gd);

                        return new Control[] {
                                               buttonsgroup
                                             };
                }
        }

        /*
         * @see DialogField#doFillIntoGrid
         */
        public int getNumberOfControls() {
                return (fGroupBorderStyle == SWT.NONE) ? 2:  1;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

// ------- layout helpers
/*
         * @see DialogField#doFillIntoGrid
         */
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
  assertEnoughColumns(nColumns);
  if (fGroupBorderStyle == SWT.NONE) {
    Label label = getLabelControl(parent);
    label.setLayoutData(gridDataForLabel(1));
    Composite buttonsgroup = getSelectionButtonsGroup(parent);
    GridData gd = new GridData();
    gd.horizontalSpan = nColumns - 1;
    buttonsgroup.setLayoutData(gd);
    return new Control[] {
                           label,
                           buttonsgroup
                         };
  }
  else {
    Composite buttonsgroup = getSelectionButtonsGroup(parent);
    GridData gd = new GridData();
    gd.horizontalSpan = nColumns;
    buttonsgroup.setLayoutData(gd);
    return new Control[] {
                           buttonsgroup
                         };
  }
}

/*
         * @see DialogField#doFillIntoGrid
         */
public int getNumberOfControls() {
  return (fGroupBorderStyle == SWT.NONE) ? 2: 1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None