CloneSet1611


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.994statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114106
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java
214104
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceParameterWizard.java
Clone Instance
1
Line Count
14
Source Line
106
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java

                                        fDeprecateDelegateCheckBox.setLayoutData(data);
                                        fDeprecateDelegateCheckBox.setText(DelegateUIHelper.getDeprecateDelegateCheckBoxTitle());
                                        final ChangeSignatureRefactoring refactoring = getChangeMethodSignatureRefactoring();
                                        fDeprecateDelegateCheckBox.setSelection(DelegateUIHelper.loadDeprecateDelegateSetting(refactoring));
                                        refactoring.setDeprecateDelegates(fDeprecateDelegateCheckBox.getSelection());
                                        fDeprecateDelegateCheckBox.addSelectionListener(new SelectionAdapter() {
                                                public void widgetSelected(SelectionEvent e) {
                                                        refactoring.setDeprecateDelegates(fDeprecateDelegateCheckBox.getSelection());
                                                }
                                                                                        } );
                                        fDeprecateDelegateCheckBox.setEnabled(fLeaveDelegateCheckBox.getSelection());
                                        fLeaveDelegateCheckBox.addSelectionListener(new SelectionAdapter() {
                                                public void widgetSelected(SelectionEvent e) {
                                                        fDeprecateDelegateCheckBox.setEnabled(fLeaveDelegateCheckBox.getSelection());
                                                }
                                                                                    } );


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

                                fDeprecateDelegateCheckBox.setLayoutData(data);
                                fDeprecateDelegateCheckBox.setText(DelegateUIHelper.getDeprecateDelegateCheckBoxTitle());
                                final IntroduceParameterRefactoring refactoring = getIntroduceParameterRefactoring();
                                fDeprecateDelegateCheckBox.setSelection(DelegateUIHelper.loadDeprecateDelegateSetting(refactoring));
                                refactoring.setDeprecateDelegates(fDeprecateDelegateCheckBox.getSelection());
                                fDeprecateDelegateCheckBox.addSelectionListener(new SelectionAdapter() {
                                        public void widgetSelected(SelectionEvent e) {
                                                refactoring.setDeprecateDelegates(fDeprecateDelegateCheckBox.getSelection());
                                        }
                                                                                } );
                                fDeprecateDelegateCheckBox.setEnabled(fLeaveDelegateCheckBox.getSelection());
                                fLeaveDelegateCheckBox.addSelectionListener(new SelectionAdapter() {
                                        public void widgetSelected(SelectionEvent e) {
                                                fDeprecateDelegateCheckBox.setEnabled(fLeaveDelegateCheckBox.getSelection());
                                        }
                                                                            } );


Clone AbstractionParameter Count: 2Parameter Bindings

fDeprecateDelegateCheckBox.setLayoutData(data);
fDeprecateDelegateCheckBox.setText(DelegateUIHelper.getDeprecateDelegateCheckBoxTitle());
final [[#variableb4a054a0]] refactoring = [[#variableb4a05480]]();
fDeprecateDelegateCheckBox.setSelection(DelegateUIHelper.loadDeprecateDelegateSetting(refactoring));
refactoring.setDeprecateDelegates(fDeprecateDelegateCheckBox.getSelection());
fDeprecateDelegateCheckBox.addSelectionListener(new SelectionAdapter() {
                                                  public void widgetSelected(SelectionEvent e) {
                                                    refactoring.setDeprecateDelegates(fDeprecateDelegateCheckBox.getSelection());
                                                  }
                                                } );
fDeprecateDelegateCheckBox.setEnabled(fLeaveDelegateCheckBox.getSelection());
fLeaveDelegateCheckBox.addSelectionListener(new SelectionAdapter() {
                                              public void widgetSelected(SelectionEvent e) {
                                                fDeprecateDelegateCheckBox.setEnabled(fLeaveDelegateCheckBox.getSelection());
                                              }
                                            } );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4a054a0]]
ChangeSignatureRefactoring 
12[[#b4a054a0]]
IntroduceParameterRefactoring 
21[[#b4a05480]]
getChangeMethodSignatureRefactoring 
22[[#b4a05480]]
getIntroduceParameterRefactoring