Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 5 | 0.973 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 298 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractInterfaceWizard.java |
2 | 10 | 312 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractInterfaceWizard.java |
| ||||
private void addDeclareAsPublicCheckbox(Composite result) { final ExtractInterfaceProcessor processor = getExtractInterfaceRefactoring().getExtractInterfaceProcessor(); String[] keys = { RefactoringMessages.ExtractInterfaceWizard_public_label }; String title = Messages.format(RefactoringMessages.ExtractInterfaceWizard_12, keys); boolean defaultValue = processor.getPublic(); fDeclarePublicCheckbox = createCheckbox(result, title, defaultValue); processor.setPublic(fDeclarePublicCheckbox.getSelection()); fDeclarePublicCheckbox.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { processor.setPublic(fDeclarePublicCheckbox.getSelection()); } } ); } |
| ||||
private void addDeclareAsAbstractCheckbox(Composite result) { final ExtractInterfaceProcessor processor = getExtractInterfaceRefactoring().getExtractInterfaceProcessor(); String[] keys = { RefactoringMessages.ExtractInterfaceWizard_abstract_label }; String title = Messages.format(RefactoringMessages.ExtractInterfaceWizard_12, keys); boolean defaultValue = processor.getAbstract(); fDeclareAbstractCheckbox = createCheckbox(result, title, defaultValue); processor.setAbstract(fDeclareAbstractCheckbox.getSelection()); fDeclareAbstractCheckbox.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { processor.setAbstract(fDeclareAbstractCheckbox.getSelection()); } } ); } |
| |||
private void [[#variablec0aeb900]](Composite result) { final ExtractInterfaceProcessor processor = getExtractInterfaceRefactoring().getExtractInterfaceProcessor(); String[] keys = { RefactoringMessages. [[#variablec0aeb880]] }; String title = Messages.format(RefactoringMessages.ExtractInterfaceWizard_12, keys); boolean defaultValue = processor. [[#variablec0aeb800]](); [[#variablec0aeb760]]= createCheckbox(result, title, defaultValue); processor. [[#variablec0aeb700]]( [[#variablec0aeb760]].getSelection()); [[#variablec0aeb760]].addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { processor. [[#variablec0aeb700]]( [[#variablec0aeb760]].getSelection()); } } ); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c0aeb900]] | addDeclareAsPublicCheckbox |
1 | 2 | [[#c0aeb900]] | addDeclareAsAbstractCheckbox |
2 | 1 | [[#c0aeb880]] | ExtractInterfaceWizard_public_label |
2 | 2 | [[#c0aeb880]] | ExtractInterfaceWizard_abstract_label |
3 | 1 | [[#c0aeb800]] | getPublic |
3 | 2 | [[#c0aeb800]] | getAbstract |
4 | 1 | [[#c0aeb760]] | fDeclarePublicCheckbox |
4 | 2 | [[#c0aeb760]] | fDeclareAbstractCheckbox |
5 | 1 | [[#c0aeb700]] | setPublic |
5 | 2 | [[#c0aeb700]] | setAbstract |