Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
46 | 2 | 4 | 0.986 | statement_sequence[25] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 46 | 414 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java |
2 | 45 | 249 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.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(); } } ); |
| ||||
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(); } } ); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b484b920]] | gl |
1 | 2 | [[#b484b920]] | layout |
2 | 1 | [[#b4377060]] | PULL_UP_ACTION |
2 | 2 | [[#b4377060]] | MemberActionInfo.PUSH_DOWN_ACTION |
3 | 1 | [[#b2f992e0]] | PullUpInputPage1_Edit |
3 | 2 | [[#b2f992e0]] | PushDownInputPage_Edit |
4 | 1 | [[#b43776e0]] | editSelectedMembers() |
4 | 2 | [[#b43776e0]] | PushDownInputPage.this.editSelectedMembers() |