Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.990 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 215 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java |
2 | 14 | 248 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java |
| ||||
final Text text = new Text(returnType, SWT.BORDER); text.setText(getChangeMethodSignatureRefactoring().getReturnTypeString()); text.setLayoutData((new GridData(GridData.FILL_HORIZONTAL))); TextFieldNavigationHandler.install(text); if (getChangeMethodSignatureRefactoring().canChangeNameAndReturnType()) { text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { getChangeMethodSignatureRefactoring().setNewReturnTypeName(text.getText()); update(true); } } ); } else { text.setEnabled(false); } |
| ||||
final Text text = new Text(name, SWT.BORDER); text.setText(getChangeMethodSignatureRefactoring().getMethodName()); text.setLayoutData((new GridData(GridData.FILL_HORIZONTAL))); TextFieldNavigationHandler.install(text); if (getChangeMethodSignatureRefactoring().canChangeNameAndReturnType()) { text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { getChangeMethodSignatureRefactoring().setNewMethodName(text.getText()); update(true); } } ); } else { text.setEnabled(false); } |
| |||
final Text text = new Text( [[#variable5694f8e0]], SWT.BORDER); text.setText(getChangeMethodSignatureRefactoring(). [[#variable9ce647e0]]()); text.setLayoutData((new GridData(GridData.FILL_HORIZONTAL))); TextFieldNavigationHandler.install(text); if (getChangeMethodSignatureRefactoring().canChangeNameAndReturnType()) { text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { getChangeMethodSignatureRefactoring(). [[#variable99081ca0]](text.getText()); update(true); } } ); } else { text.setEnabled(false); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5694f8e0]] | name |
1 | 2 | [[#5694f8e0]] | returnType |
2 | 1 | [[#9ce647e0]] | getMethodName |
2 | 2 | [[#9ce647e0]] | getReturnTypeString |
3 | 1 | [[#99081ca0]] | setNewMethodName |
3 | 2 | [[#99081ca0]] | setNewReturnTypeName |