Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 4 | 0.983 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 48 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ComboDialogField.java |
2 | 24 | 57 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/StringDialogField.java |
| ||||
// ------- layout helpers /* * @see DialogField#doFillIntoGrid */ public Control[] doFillIntoGrid(Composite parent, int nColumns) { assertEnoughColumns(nColumns); Label label = getLabelControl(parent); label.setLayoutData(gridDataForLabel(1)); Combo combo = getComboControl(parent); combo.setLayoutData(gridDataForCombo(nColumns - 1)); return new Control[] { label, combo }; } /* * @see DialogField#getNumberOfControls */ public int getNumberOfControls() { return 2; } protected static GridData gridDataForCombo(int span) { GridData gd = new GridData(); gd.horizontalAlignment = GridData.FILL; gd.grabExcessHorizontalSpace = false; gd.horizontalSpan = span; return gd; } |
| ||||
// ------- layout helpers /* * @see DialogField#doFillIntoGrid */ public Control[] doFillIntoGrid(Composite parent, int nColumns) { assertEnoughColumns(nColumns); Label label = getLabelControl(parent); label.setLayoutData(gridDataForLabel(1)); Text text = getTextControl(parent); text.setLayoutData(gridDataForText(nColumns - 1)); return new Control[] { label, text }; } /* * @see DialogField#getNumberOfControls */ public int getNumberOfControls() { return 2; } protected static GridData gridDataForText(int span) { GridData gd = new GridData(); gd.horizontalAlignment = GridData.FILL; gd.grabExcessHorizontalSpace = false; gd.horizontalSpan = span; return gd; } |
| |||
// ------- layout helpers /* * @see DialogField#doFillIntoGrid */ public Control[] doFillIntoGrid(Composite parent, int nColumns) { assertEnoughColumns(nColumns); Label label = getLabelControl(parent); label.setLayoutData(gridDataForLabel(1)); [[#variable7d193960]] [[#variable7d1938c0]]= [[#variable7d193840]](parent); [[#variable7d1938c0]].setLayoutData( [[#variable7d193880]](nColumns - 1)); return new Control[] { label, [[#variable7d1938c0]] }; } /* * @see DialogField#getNumberOfControls */ public int getNumberOfControls() { return 2; } protected static GridData [[#variable7d193880]](int span) { GridData gd = new GridData(); gd.horizontalAlignment = GridData.FILL; gd.grabExcessHorizontalSpace = false; gd.horizontalSpan = span; return gd; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7d193960]] | Combo |
1 | 2 | [[#7d193960]] | Text |
2 | 1 | [[#7d1938c0]] | combo |
2 | 2 | [[#7d1938c0]] | text |
3 | 1 | [[#7d193840]] | getComboControl |
3 | 2 | [[#7d193840]] | getTextControl |
4 | 1 | [[#7d193880]] | gridDataForCombo |
4 | 2 | [[#7d193880]] | gridDataForText |