CloneSet1657


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9250.981class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19117
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractTempWizard.java
29130
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractTempWizard.java
Clone Instance
1
Line Count
9
Source Line
117
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractTempWizard.java

                private void addReplaceAllCheckbox(Composite result, RowLayouter layouter) {
                        String title = RefactoringMessages.ExtractTempInputPage_replace_all;
                        boolean defaultValue = getExtractTempRefactoring().replaceAllOccurrences();
                        final Button checkBox = createCheckbox(result,  title, defaultValue, layouter);
                        getExtractTempRefactoring().setReplaceAllOccurrences(checkBox.getSelection());
                        checkBox.addSelectionListener(new SelectionAdapter() {
                                public void widgetSelected(SelectionEvent e) {
                                        fSettings.put(REPLACE_ALL, checkBox.getSelection());
                                        getExtractTempRefactoring().setReplaceAllOccurrences(checkBox.getSelection());
                                }
                                                      } );
                }


Clone Instance
2
Line Count
9
Source Line
130
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractTempWizard.java

                private void addDeclareFinalCheckbox(Composite result, RowLayouter layouter) {
                        String title = RefactoringMessages.ExtractTempInputPage_declare_final;
                        boolean defaultValue = getExtractTempRefactoring().declareFinal();
                        final Button checkBox = createCheckbox(result,  title, defaultValue, layouter);
                        getExtractTempRefactoring().setDeclareFinal(checkBox.getSelection());
                        checkBox.addSelectionListener(new SelectionAdapter() {
                                public void widgetSelected(SelectionEvent e) {
                                        fSettings.put(DECLARE_FINAL, checkBox.getSelection());
                                        getExtractTempRefactoring().setDeclareFinal(checkBox.getSelection());
                                }
                                                      } );
                }


Clone AbstractionParameter Count: 5Parameter Bindings

private void [[#variablebc5eb5a0]](Composite result, RowLayouter layouter) {
  String title = RefactoringMessages. [[#variablebc5eb5c0]];
  boolean defaultValue = getExtractTempRefactoring(). [[#variable97bcdee0]]();
  final Button checkBox = createCheckbox(result, title, defaultValue, layouter);
  getExtractTempRefactoring(). [[#variablebc5eb3e0]](checkBox.getSelection());
  checkBox.addSelectionListener(new SelectionAdapter() {
                                  public void widgetSelected(SelectionEvent e) {
                                    fSettings.put( [[#variablebc5eb420]], checkBox.getSelection());
                                    getExtractTempRefactoring(). [[#variablebc5eb3e0]](checkBox.getSelection());
                                  }
                                } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc5eb5a0]]
addReplaceAllCheckbox 
12[[#bc5eb5a0]]
addDeclareFinalCheckbox 
21[[#bc5eb5c0]]
ExtractTempInputPage_replace_all 
22[[#bc5eb5c0]]
ExtractTempInputPage_declare_final 
31[[#97bcdee0]]
replaceAllOccurrences 
32[[#97bcdee0]]
declareFinal 
41[[#bc5eb3e0]]
setReplaceAllOccurrences 
42[[#bc5eb3e0]]
setDeclareFinal 
51[[#bc5eb420]]
REPLACE_ALL 
52[[#bc5eb420]]
DECLARE_FINAL