Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 5 | 0.981 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 117 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractTempWizard.java |
2 | 9 | 130 | 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()); } } ); } |
| ||||
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()); } } ); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bc5eb5a0]] | addReplaceAllCheckbox |
1 | 2 | [[#bc5eb5a0]] | addDeclareFinalCheckbox |
2 | 1 | [[#bc5eb5c0]] | ExtractTempInputPage_replace_all |
2 | 2 | [[#bc5eb5c0]] | ExtractTempInputPage_declare_final |
3 | 1 | [[#97bcdee0]] | replaceAllOccurrences |
3 | 2 | [[#97bcdee0]] | declareFinal |
4 | 1 | [[#bc5eb3e0]] | setReplaceAllOccurrences |
4 | 2 | [[#bc5eb3e0]] | setDeclareFinal |
5 | 1 | [[#bc5eb420]] | REPLACE_ALL |
5 | 2 | [[#bc5eb420]] | DECLARE_FINAL |