CloneSet1489


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10250.973class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110298
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractInterfaceWizard.java
210312
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractInterfaceWizard.java
Clone Instance
1
Line Count
10
Source Line
298
Source File
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());
                                }
                                                                    } );
                }


Clone Instance
2
Line Count
10
Source Line
312
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractInterfaceWizard.java

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


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c0aeb900]]
addDeclareAsPublicCheckbox 
12[[#c0aeb900]]
addDeclareAsAbstractCheckbox 
21[[#c0aeb880]]
ExtractInterfaceWizard_public_label 
22[[#c0aeb880]]
ExtractInterfaceWizard_abstract_label 
31[[#c0aeb800]]
getPublic 
32[[#c0aeb800]]
getAbstract 
41[[#c0aeb760]]
fDeclarePublicCheckbox 
42[[#c0aeb760]]
fDeclareAbstractCheckbox 
51[[#c0aeb700]]
setPublic 
52[[#c0aeb700]]
setAbstract