| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 16 | 2 | 6 | 0.978 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 16 | 127 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariablePathDialogField.java |
| 2 | 20 | 95 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/StringButtonStatusDialogField.java |
| ||||
// ------- layout helpers
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 - 3));
Button variableButton = getBrowseVariableControl(parent);
variableButton.setLayoutData(gridDataForButton(variableButton, 1));
Button browseButton = getChangeControl(parent);
browseButton.setLayoutData(gridDataForButton(browseButton, 1));
return new Control[] {
label, text, variableButton, browseButton
};
}
public int getNumberOfControls() {
return 4;
}
|
| ||||
// ------- 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 - 3));
Label status = getStatusLabelControl(parent);
status.setLayoutData(gridDataForStatusLabel(parent, 1));
Button button = getChangeControl(parent);
button.setLayoutData(gridDataForButton(button, 1));
return new Control[] {
label, text, status, button
};
}
/*
* @see DialogField#getNumberOfControls
*/
public int getNumberOfControls() {
return 4;
}
|
| |||
// ------- layout helpers
// ------- 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 - 3));
[[#variablebc019d00]] [[#variablebc019c80]]= [[#variablebc019be0]](parent);
[[#variablebc019c80]].setLayoutData( [[#variablebc019b80]]( [[#variablebc019a80]], 1));
Button [[#variablebc019b40]]= getChangeControl(parent);
[[#variablebc019b40]].setLayoutData(gridDataForButton( [[#variablebc019b40]], 1));
return new Control[] {
label,
text,
[[#variablebc019c80]],
[[#variablebc019b40]]
};
}
/*
* @see DialogField#getNumberOfControls
*/
public int getNumberOfControls() {
return 4;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#bc019d00]] | Button |
| 1 | 2 | [[#bc019d00]] | Label |
| 2 | 1 | [[#bc019c80]] | variableButton |
| 2 | 2 | [[#bc019c80]] | status |
| 3 | 1 | [[#bc019be0]] | getBrowseVariableControl |
| 3 | 2 | [[#bc019be0]] | getStatusLabelControl |
| 4 | 1 | [[#bc019b80]] | gridDataForButton |
| 4 | 2 | [[#bc019b80]] | gridDataForStatusLabel |
| 5 | 1 | [[#bc019a80]] | variableButton |
| 5 | 2 | [[#bc019a80]] | parent |
| 6 | 1 | [[#bc019b40]] | browseButton |
| 6 | 2 | [[#bc019b40]] | button |