CloneSet1761


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.990statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114215
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java
214248
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java
Clone Instance
1
Line Count
14
Source Line
215
Source File
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);
                        }


Clone Instance
2
Line Count
14
Source Line
248
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java

                        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);
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5694f8e0]]
name 
12[[#5694f8e0]]
returnType 
21[[#9ce647e0]]
getMethodName 
22[[#9ce647e0]]
getReturnTypeString 
31[[#99081ca0]]
setNewMethodName 
32[[#99081ca0]]
setNewReturnTypeName