File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/contribution/base/ModelConverterPackagePage.java | File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/contribution/base/ModelConverterPackagePage.java | |||
Method name: void createPackageControl(Composite)
|
Method name: void createReferencedGenModelControl(Composite)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | composite.setLayoutData(new GridData(GridData.FILL_BOTH));↵ | 1 | composite.setLayoutData(new GridData(GridData.FILL_BOTH));↵ | |
2 | {↵ | 2 | {↵ | |
3 | FormLayout layout = new FormLayout();↵ | 3 | FormLayout layout = new FormLayout();↵ | |
4 | layout.marginTop = 10;↵ | 4 | layout.marginTop = 10;↵ | |
5 | layout.spacing = 10;↵ | 5 | layout.spacing = 10;↵ | |
6 | composite.setLayout(layout);↵ | 6 | composite.setLayout(layout);↵ | |
7 | }↵ | 7 | }↵ | |
8 | Label packagesLabel = new Label(composite, SWT.LEFT);↵ | 8 | Label referencedGenModelsLabel = new Label(composite, SWT.LEFT);↵ | |
9 | packagesLabel.setText(getPackagesLabel());↵ | 9 | referencedGenModelsLabel.setText(getReferencedGenModelsLabel());↵ | |
10 | {↵ | 10 | {↵ | |
11 | FormData data = new FormData();↵ | 11 | FormData data = new FormData();↵ | |
12 | data.left = new FormAttachment(0);↵ | 12 | data.left = new FormAttachment(0);↵ | |
13 | packagesLabel.setLayoutData(data); | 13 | referencedGenModelsLabel.setLayoutData(data); | |
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 declared in the same class |
Number of node comparisons | 41 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | composite.setLayoutData(new GridData(GridData.FILL_BOTH)); | 2 | composite.setLayoutData(new GridData(GridData.FILL_BOTH)); | ||||||||||||||
3 | FormLayout layout = new FormLayout(); | 3 | FormLayout layout = new FormLayout(); | ||||||||||||||
4 | layout.marginTop = 10; | 4 | layout.marginTop = 10; | ||||||||||||||
5 | layout.spacing = 10; | 5 | layout.spacing = 10; | ||||||||||||||
6 | composite.setLayout(layout); | 6 | composite.setLayout(layout); | ||||||||||||||
7 | Label packagesLabel = new Label(composite, SWT.LEFT); |
| 7 | Label referencedGenModelsLabel = new Label(composite, SWT.LEFT); | |||||||||||||
8 | packagesLabel.setText(getPackagesLabel()); |
| 8 | referencedGenModelsLabel.setText(getReferencedGenModelsLabel()); | |||||||||||||
9 | FormData data = new FormData(); | 9 | FormData data = new FormData(); | ||||||||||||||
10 | data.left = new FormAttachment(0); | 10 | data.left = new FormAttachment(0); | ||||||||||||||
11 | packagesLabel.setLayoutData(data); |
| 11 | referencedGenModelsLabel.setLayoutData(data); |
Row | Violation |
---|