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 | 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 | buttonComposite.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(); | 26 | GridLayout layout = new GridLayout(); | |||||||||||
48 | int margin = -5; | 27 | int margin = -5; | |||||||||||
49 | int spacing = 3; | 28 | int spacing = 3; | |||||||||||
50 | layout.marginTop = margin; | 29 | layout.marginTop = margin; | |||||||||||
51 | layout.marginLeft = margin; | 30 | layout.marginLeft = margin; | |||||||||||
52 | layout.marginRight = margin; | 31 | layout.marginRight = margin; | |||||||||||
53 | layout.marginBottom = margin; | 32 | layout.marginBottom = margin; | |||||||||||
54 | layout.horizontalSpacing = spacing; | 33 | layout.horizontalSpacing = spacing; | |||||||||||
55 | layout.verticalSpacing = spacing; | 34 | layout.verticalSpacing = spacing; | |||||||||||
56 | detailsComposite.setLayout(layout); |
| 35 | buttonComposite.setLayout(layout); |
Row | Violation |
---|