Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 5 | 0.964 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 159 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SelectImportsDialog.java |
2 | 15 | 174 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SelectImportsDialog.java |
| ||||
fAddTypeButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent se) { addType(); } public void widgetDefaultSelected(SelectionEvent se) { } } ); // Add package button fAddPackageButton = new Button(buttonContainer, SWT.PUSH); fAddPackageButton.setText(SnippetMessages.getString("SelectImportsDialog.Add_&Package_3")); //$NON-NLS-1$ fAddPackageButton.setToolTipText(SnippetMessages.getString("SelectImportsDialog.Choose_a_Package_to_Add_as_an_Import_4")); //$NON-NLS-1$ gd = getButtonGridData(fAddPackageButton); fAddPackageButton.setLayoutData(gd); fAddPackageButton.setFont(font); |
| ||||
fAddPackageButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent se) { addPackage(); } public void widgetDefaultSelected(SelectionEvent se) { } } ); // Remove button fRemoveImportsButton = new Button(buttonContainer, SWT.PUSH); fRemoveImportsButton.setText(SnippetMessages.getString("SelectImportsDialog.&Remove_5")); //$NON-NLS-1$ fRemoveImportsButton.setToolTipText(SnippetMessages.getString("SelectImportsDialog.Remove_All_Selected_Imports_6")); //$NON-NLS-1$ gd = getButtonGridData(fRemoveImportsButton); fRemoveImportsButton.setLayoutData(gd); fRemoveImportsButton.setFont(font); |
| |||
[[#variableb2a3f620]].addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent se) { [[#variableb2a3f5a0]](); } public void widgetDefaultSelected(SelectionEvent se) { } } ); [[#variableb2a3f500]]= new Button(buttonContainer, SWT.PUSH); [[#variableb2a3f500]].setText(SnippetMessages.getString( [[#variablea5c20240]])); //$NON-NLS-1$ [[#variableb2a3f500]].setToolTipText(SnippetMessages.getString( [[#variablea5c202a0]])); //$NON-NLS-1$ gd = getButtonGridData( [[#variableb2a3f500]]); [[#variableb2a3f500]].setLayoutData(gd); [[#variableb2a3f500]].setFont(font); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b2a3f620]] | fAddTypeButton |
1 | 2 | [[#b2a3f620]] | fAddPackageButton |
2 | 1 | [[#b2a3f5a0]] | addType |
2 | 2 | [[#b2a3f5a0]] | addPackage |
3 | 1 | [[#b2a3f500]] | // Add package button fAddPackageButton |
3 | 2 | [[#b2a3f500]] | // Remove button fRemoveImportsButton |
4 | 1 | [[#a5c20240]] | "SelectImportsDialog.Add_&Package_3" |
4 | 2 | [[#a5c20240]] | "SelectImportsDialog.&Remove_5" |
5 | 1 | [[#a5c202a0]] | "SelectImportsDialog.Choose_a_Package_to_Add_as_an_Import_4" |
5 | 2 | [[#a5c202a0]] | "SelectImportsDialog.Remove_All_Selected_Imports_6" |