Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 0 | 1.000 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 103 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java |
2 | 28 | 85 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/SelectionButtonDialogFieldGroup.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; } |
| ||||
// ------- 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; } |
| |||
// ------- 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |