Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.976 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 548 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistAdvancedConfigurationBlock.java |
2 | 14 | 563 | 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); |
| ||||
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); |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4c7a39e0]] | fDownButton |
1 | 2 | [[#4c7a39e0]] | fUpButton |
2 | 1 | [[#77b16fe0]] | CodeAssistAdvancedConfigurationBlock_Down |
2 | 2 | [[#77b16fe0]] | CodeAssistAdvancedConfigurationBlock_Up |
3 | 1 | [[#5b5cc7a0]] | moveDown |
3 | 2 | [[#5b5cc7a0]] | moveUp |