File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/editor/ProblemEditorPart.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/editor/ProblemEditorPart.java | |||
Method name: void createPartControl(Composite)
|
Method name: void createPartControl(Composite)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Button openButton = new Button(buttonComposite, SWT.PUSH);↵ | 1 | Button createMarkersButton = new Button(buttonComposite, SWT.PUSH);↵ | |
2 | openButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL));↵ | 2 | createMarkersButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL));↵ | |
3 | openButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_OpenEditor_label"));↵ | 3 | createMarkersButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_CreateMarkers_label"));↵ | |
4 | openButton.addSelectionListener(new SelectionAdapter()↵ | 4 | createMarkersButton.addSelectionListener(new SelectionAdapter()↵ | |
5 | {↵ | 5 | {↵ | |
6 | @Override↵ | 6 | @Override↵ | |
7 | public void widgetSelected(SelectionEvent e)↵ | 7 | public void widgetSelected(SelectionEvent e)↵ | |
8 | {↵ | 8 | {↵ | |
9 | openEditor();↵ | 9 | createMarkers();↵ | |
10 | }↵ | 10 | }↵ | |
11 | }); | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | Button openButton = new Button(buttonComposite, SWT.PUSH); |
| 33 | Button createMarkersButton = new Button(buttonComposite, SWT.PUSH); | |||||||||||||||
29 | openButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL)); |
| 34 | createMarkersButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL)); | |||||||||||||||
30 | openButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_OpenEditor_label")); |
| 35 | createMarkersButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_CreateMarkers_label")); | |||||||||||||||
31 | openButton.addSelectionListener(new SelectionAdapter() {...}); |
| 36 | createMarkersButton.addSelectionListener(new SelectionAdapter() {...}); |
Row | Violation |
---|---|
1 | Expression openEditor() is a void method call, and thus it cannot be parameterized |
2 | Expression createMarkers() is a void method call, and thus it cannot be parameterized |