CloneSet237


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
46240.986statement_sequence[25]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
146414
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java
245249
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java
Clone Instance
1
Line Count
46
Source Line
414
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java

                composite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
                final GridLayout gl = new GridLayout();
                gl.marginHeight = 0;
                gl.marginWidth = 0;
                composite.setLayout(gl);

                fSelectAllButton = new Button(composite, SWT.PUSH);
                fSelectAllButton.setText(RefactoringMessages.PullUpWizard_select_all_label);
                fSelectAllButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
                fSelectAllButton.setEnabled(true);
                SWTUtil.setButtonDimensionHint(fSelectAllButton);
                fSelectAllButton.addSelectionListener(new SelectionAdapter() {

                        public void widgetSelected( final SelectionEvent event) {
                                final IMember[] members = getMembers();
                                setActionForMembers(members, PULL_UP_ACTION);
                                updateWizardPage(null, true);
                        }
                                                      } );

                fDeselectAllButton = new Button(composite, SWT.PUSH);
                fDeselectAllButton.setText(RefactoringMessages.PullUpWizard_deselect_all_label);
                fDeselectAllButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
                fDeselectAllButton.setEnabled(false);
                SWTUtil.setButtonDimensionHint(fDeselectAllButton);
                fDeselectAllButton.addSelectionListener(new SelectionAdapter() {

                        public void widgetSelected( final SelectionEvent event) {
                                final IMember[] members = getMembers();
                                setActionForMembers(members, MemberActionInfo.NO_ACTION);
                                updateWizardPage(null, true);
                        }
                                                        } );

                fEditButton = new Button(composite, SWT.PUSH);
                fEditButton.setText(RefactoringMessages.PullUpInputPage1_Edit);

                final GridData data = new GridData(GridData.FILL_HORIZONTAL);
                data.verticalIndent = new PixelConverter(parent).convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
                fEditButton.setLayoutData(data);
                fEditButton.setEnabled(false);
                SWTUtil.setButtonDimensionHint(fEditButton);
                fEditButton.addSelectionListener(new SelectionAdapter() {

                        public void widgetSelected( final SelectionEvent event) {
                                editSelectedMembers();
                        }
                                                 } );


Clone Instance
2
Line Count
45
Source Line
249
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java

                        composite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
                        final GridLayout layout = new GridLayout();
                        layout.marginHeight = 0;
                        layout.marginWidth = 0;
                        composite.setLayout(layout);

                        fSelectAllButton = new Button(composite, SWT.PUSH);
                        fSelectAllButton.setText(RefactoringMessages.PullUpWizard_select_all_label);
                        fSelectAllButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
                        fSelectAllButton.setEnabled(true);
                        SWTUtil.setButtonDimensionHint(fSelectAllButton);
                        fSelectAllButton.addSelectionListener(new SelectionAdapter() {

                                public void widgetSelected( final SelectionEvent event) {
                                        final IMember[] members = getMembers();
                                        setActionForMembers(members, MemberActionInfo.PUSH_DOWN_ACTION);
                                        updateWizardPage(null, true);
                                }
                                                              } );

                        fDeselectAllButton = new Button(composite, SWT.PUSH);
                        fDeselectAllButton.setText(RefactoringMessages.PullUpWizard_deselect_all_label);
                        fDeselectAllButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
                        fDeselectAllButton.setEnabled(false);
                        SWTUtil.setButtonDimensionHint(fDeselectAllButton);
                        fDeselectAllButton.addSelectionListener(new SelectionAdapter() {

                                public void widgetSelected( final SelectionEvent event) {
                                        final IMember[] members = getMembers();
                                        setActionForMembers(members, MemberActionInfo.NO_ACTION);
                                        updateWizardPage(null, true);
                                }
                                                                } );

                        fEditButton = new Button(composite, SWT.PUSH);
                        fEditButton.setText(RefactoringMessages.PushDownInputPage_Edit);
                        final GridData data = new GridData(GridData.FILL_HORIZONTAL);
                        data.verticalIndent = new PixelConverter(parent).convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
                        fEditButton.setLayoutData(data);
                        fEditButton.setEnabled(false);
                        SWTUtil.setButtonDimensionHint(fEditButton);
                        fEditButton.addSelectionListener(new SelectionAdapter() {

                                public void widgetSelected( final SelectionEvent event) {
                                        PushDownInputPage.this.editSelectedMembers();
                                }
                                                         } );


Clone AbstractionParameter Count: 4Parameter Bindings

composite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
final GridLayout  [[#variableb484b920]]= new GridLayout();
 [[#variableb484b920]].marginHeight = 0;
 [[#variableb484b920]].marginWidth = 0;
composite.setLayout( [[#variableb484b920]]);
fSelectAllButton = new Button(composite, SWT.PUSH);
fSelectAllButton.setText(RefactoringMessages.PullUpWizard_select_all_label);
fSelectAllButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
fSelectAllButton.setEnabled(true);
SWTUtil.setButtonDimensionHint(fSelectAllButton);
fSelectAllButton.addSelectionListener(new SelectionAdapter() {
                                        public void widgetSelected( final SelectionEvent event) {
                                          final IMember[] members = getMembers();
                                          setActionForMembers(members,  [[#variableb4377060]]);
                                          updateWizardPage(null, true);
                                        }
                                      } );
fDeselectAllButton = new Button(composite, SWT.PUSH);
fDeselectAllButton.setText(RefactoringMessages.PullUpWizard_deselect_all_label);
fDeselectAllButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
fDeselectAllButton.setEnabled(false);
SWTUtil.setButtonDimensionHint(fDeselectAllButton);
fDeselectAllButton.addSelectionListener(new SelectionAdapter() {
                                          public void widgetSelected( final SelectionEvent event) {
                                            final IMember[] members = getMembers();
                                            setActionForMembers(members, MemberActionInfo.NO_ACTION);
                                            updateWizardPage(null, true);
                                          }
                                        } );
fEditButton = new Button(composite, SWT.PUSH);
fEditButton.setText(RefactoringMessages. [[#variableb2f992e0]]);
final GridData data = new GridData(GridData.FILL_HORIZONTAL);
data.verticalIndent = new PixelConverter(parent).convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
fEditButton.setLayoutData(data);
fEditButton.setEnabled(false);
SWTUtil.setButtonDimensionHint(fEditButton);
fEditButton.addSelectionListener(new SelectionAdapter() {
                                   public void widgetSelected( final SelectionEvent event) {
                                      [[#variableb43776e0]];
                                   }
                                 } );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b484b920]]
gl 
12[[#b484b920]]
layout 
21[[#b4377060]]
PULL_UP_ACTION 
22[[#b4377060]]
MemberActionInfo.PUSH_DOWN_ACTION 
31[[#b2f992e0]]
PullUpInputPage1_Edit 
32[[#b2f992e0]]
PushDownInputPage_Edit 
41[[#b43776e0]]
editSelectedMembers() 
42[[#b43776e0]]
PushDownInputPage.this.editSelectedMembers()