File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/FeatureEditorDialog.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/FeatureEditorDialog.java | |||
Method name: Control createDialogArea(Composite)
|
Method name: Control createDialogArea(Composite)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | Composite choiceComposite = new Composite(contents, SWT.NONE);↵ | 1 | Composite featureComposite = new Composite(contents, SWT.NONE);↵ | |
2 | {↵ | 2 | {↵ | |
3 | GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);↵ | 3 | GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);↵ | |
4 | data.horizontalAlignment = SWT.END;↵ | 4 | data.horizontalAlignment = SWT.END;↵ | |
5 | choiceComposite.setLayoutData(data);↵ | 5 | featureComposite.setLayoutData(data);↵ | |
6 | GridLayout layout = new GridLayout();↵ | 6 | GridLayout layout = new GridLayout();↵ | |
7 | data.horizontalAlignment = SWT.FILL;↵ | 7 | data.horizontalAlignment = SWT.FILL;↵ | |
8 | layout.marginHeight = 0;↵ | 8 | layout.marginHeight = 0;↵ | |
9 | layout.marginWidth = 0;↵ | 9 | layout.marginWidth = 0;↵ | |
10 | layout.numColumns = 1;↵ | 10 | layout.numColumns = 1;↵ | |
11 | choiceComposite.setLayout(layout);↵ | 11 | featureComposite.setLayout(layout);↵ | |
12 | }↵ | 12 | }↵ | |
13 | Label choiceLabel = new Label(choiceComposite, SWT.NONE); | 13 | Label featureLabel = new Label(featureComposite,SWT.NONE); | |
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 | 58 |
Number of mapped statements | 11 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | Composite choiceComposite = new Composite(contents, SWT.NONE); |
| 86 | Composite featureComposite = new Composite(contents, SWT.NONE); | |||||||||||||
8 | GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); | 87 | GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); | ||||||||||||||
9 | data.horizontalAlignment = SWT.END; | 88 | data.horizontalAlignment = SWT.END; | ||||||||||||||
10 | choiceComposite.setLayoutData(data); |
| 89 | featureComposite.setLayoutData(data); | |||||||||||||
11 | GridLayout layout = new GridLayout(); | 90 | GridLayout layout = new GridLayout(); | ||||||||||||||
12 | data.horizontalAlignment = SWT.FILL; | 91 | data.horizontalAlignment = SWT.FILL; | ||||||||||||||
13 | layout.marginHeight = 0; | 92 | layout.marginHeight = 0; | ||||||||||||||
14 | layout.marginWidth = 0; | 93 | layout.marginWidth = 0; | ||||||||||||||
15 | layout.numColumns = 1; | 94 | layout.numColumns = 1; | ||||||||||||||
16 | choiceComposite.setLayout(layout); |
| 95 | featureComposite.setLayout(layout); | |||||||||||||
17 | Label choiceLabel = new Label(choiceComposite, SWT.NONE); |
| 96 | Label featureLabel = new Label(featureComposite, SWT.NONE); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables choiceLabel, choiceComposite , while Clone fragment #2 returns variables featureLabel, featureComposite |