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: 3 | Number of AST nodes: 3 | |||
1 | Composite buttonComposite = new Composite(parent, SWT.NONE);↵ | 1 | Composite buttonComposite = new Composite(composite, SWT.NONE);↵ | |
2 | buttonComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_END));↵ | 2 | buttonComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_END));↵ | |
3 | buttonComposite.setLayout(new GridLayout()); | 3 | buttonComposite.setLayout(new GridLayout()); | |
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 | 5 |
Number of mapped statements | 3 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | Composite buttonComposite = new Composite(parent, SWT.NONE); |
| 23 | Composite buttonComposite = new Composite(composite, SWT.NONE); | ||||||||||
17 | buttonComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_END)); | 24 | buttonComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_END)); | |||||||||||
18 | buttonComposite.setLayout(new GridLayout()); | 25 | buttonComposite.setLayout(new GridLayout()); |
Row | Violation |
---|