CloneSet1852


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.976statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114548
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistAdvancedConfigurationBlock.java
214563
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistAdvancedConfigurationBlock.java
Clone Instance
1
Line Count
14
Source Line
548
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistAdvancedConfigurationBlock.java

                fUpButton = new Button(composite, SWT.PUSH|  SWT.CENTER);
        fUpButton.setText(PreferencesMessages.CodeAssistAdvancedConfigurationBlock_Up);
        fUpButton.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent e) {
                        int index = getSelectionIndex();
                        if (index != -1) {
                                ((ModelElement) fModel.elements.get(index)).moveUp();
                                fSeparateViewer.refresh();
                                handleTableSelection();
                        }
                }
                                       } );
        fUpButton.setLayoutData(new GridData());
        SWTUtil.setButtonDimensionHint(fUpButton);


Clone Instance
2
Line Count
14
Source Line
563
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistAdvancedConfigurationBlock.java

        fDownButton = new Button(composite, SWT.PUSH|  SWT.CENTER);
        fDownButton.setText(PreferencesMessages.CodeAssistAdvancedConfigurationBlock_Down);
        fDownButton.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent e) {
                        int index = getSelectionIndex();
                        if (index != -1) {
                                ((ModelElement) fModel.elements.get(index)).moveDown();
                                fSeparateViewer.refresh();
                                handleTableSelection();
                        }
                }
                                         } );
        fDownButton.setLayoutData(new GridData());
        SWTUtil.setButtonDimensionHint(fDownButton);


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable4c7a39e0]]= new Button(composite, SWT.PUSH|SWT.CENTER);
 [[#variable4c7a39e0]].setText(PreferencesMessages. [[#variable77b16fe0]]);
 [[#variable4c7a39e0]].addSelectionListener(new SelectionAdapter() {
                                              public void widgetSelected(SelectionEvent e) {
                                                int index = getSelectionIndex();
                                                if (index != -1) {
                                                  ((ModelElement) fModel.elements.get(index)). [[#variable5b5cc7a0]]();
                                                  fSeparateViewer.refresh();
                                                  handleTableSelection();
                                                }
                                              }
                                            } );
 [[#variable4c7a39e0]].setLayoutData(new GridData());
SWTUtil.setButtonDimensionHint( [[#variable4c7a39e0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4c7a39e0]]
fDownButton 
12[[#4c7a39e0]]
fUpButton 
21[[#77b16fe0]]
CodeAssistAdvancedConfigurationBlock_Down 
22[[#77b16fe0]]
CodeAssistAdvancedConfigurationBlock_Up 
31[[#5b5cc7a0]]
moveDown 
32[[#5b5cc7a0]]
moveUp