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/wizard/AbstractExampleInstallerWizard.java | |||
Method name: void createPartControl(Composite)
|
Method name: void createControl(Composite)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | GridLayout layout = new GridLayout();↵ | 1 | GridLayout layout = new GridLayout(2, false);↵ | |
2 | int margin = -5;↵ | 2 | int margin = -5;↵ | |
3 | int spacing = 3;↵ | 3 | int spacing = 3;↵ | |
4 | layout.marginTop = margin;↵ | 4 | layout.marginTop = margin;↵ | |
5 | layout.marginLeft = margin;↵ | 5 | layout.marginLeft = margin;↵ | |
6 | layout.marginRight = margin;↵ | 6 | layout.marginRight = margin;↵ | |
7 | layout.marginBottom = margin;↵ | 7 | layout.marginBottom = margin;↵ | |
8 | layout.horizontalSpacing = spacing;↵ | 8 | layout.horizontalSpacing = spacing;↵ | |
9 | layout.verticalSpacing = spacing;↵ | 9 | layout.verticalSpacing = spacing;↵ | |
10 | detailsComposite.setLayout(layout); | 10 | composite.setLayout(layout); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 58 |
Number of mapped statements | 10 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47 | GridLayout layout = new GridLayout(); |
| 8 | GridLayout layout = new GridLayout(2, false); | ||||||||||
48 | int margin = -5; | 9 | int margin = -5; | |||||||||||
49 | int spacing = 3; | 10 | int spacing = 3; | |||||||||||
50 | layout.marginTop = margin; | 11 | layout.marginTop = margin; | |||||||||||
51 | layout.marginLeft = margin; | 12 | layout.marginLeft = margin; | |||||||||||
52 | layout.marginRight = margin; | 13 | layout.marginRight = margin; | |||||||||||
53 | layout.marginBottom = margin; | 14 | layout.marginBottom = margin; | |||||||||||
54 | layout.horizontalSpacing = spacing; | 15 | layout.horizontalSpacing = spacing; | |||||||||||
55 | layout.verticalSpacing = spacing; | 16 | layout.verticalSpacing = spacing; | |||||||||||
56 | detailsComposite.setLayout(layout); |
| 17 | composite.setLayout(layout); |
Row | Violation |
---|