File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/ModelConverterDescriptorSelectionPage.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/FeatureEditorDialog.java | |||
Method name: void createControl(Composite)
|
Method name: Control createDialogArea(Composite)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | GridData data = new GridData();↵ | 1 | GridData choiceTableGridData = new GridData();↵ | |
2 | data.widthHint = Display.getCurrent().getBounds().width / 5;↵ | 2 | choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5;↵ | |
3 | data.heightHint = Display.getCurrent().getBounds().height / 3;↵ | 3 | choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3;↵ | |
4 | data.verticalAlignment = SWT.FILL;↵ | 4 | choiceTableGridData.verticalAlignment = SWT.FILL;↵ | |
5 | data.horizontalAlignment = SWT.FILL;↵ | 5 | choiceTableGridData.horizontalAlignment = SWT.FILL;↵ | |
6 | data.grabExcessHorizontalSpace = true;↵ | 6 | choiceTableGridData.grabExcessHorizontalSpace= true;↵ | |
7 | data.grabExcessVerticalSpace = true;↵ | 7 | choiceTableGridData.grabExcessVerticalSpace= true;↵ | |
8 | descriptorTable.setLayoutData(data); | 8 | choiceTable.setLayoutData(choiceTableGridData); | |
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 | 50 |
Number of mapped statements | 8 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | GridData data = new GridData(); |
| 25 | GridData choiceTableGridData = new GridData(); | |||||||||||||
19 | data.widthHint = Display.getCurrent().getBounds().width / 5; |
| 26 | choiceTableGridData.widthHint = Display.getCurrent().getBounds().width / 5; | |||||||||||||
20 | data.heightHint = Display.getCurrent().getBounds().height / 3; |
| 27 | choiceTableGridData.heightHint = Display.getCurrent().getBounds().height / 3; | |||||||||||||
21 | data.verticalAlignment = SWT.FILL; |
| 28 | choiceTableGridData.verticalAlignment = SWT.FILL; | |||||||||||||
22 | data.horizontalAlignment = SWT.FILL; |
| 29 | choiceTableGridData.horizontalAlignment = SWT.FILL; | |||||||||||||
23 | data.grabExcessHorizontalSpace = true; |
| 30 | choiceTableGridData.grabExcessHorizontalSpace = true; | |||||||||||||
24 | data.grabExcessVerticalSpace = true; |
| 31 | choiceTableGridData.grabExcessVerticalSpace = true; | |||||||||||||
25 | descriptorTable.setLayoutData(data); |
| 32 | choiceTable.setLayoutData(choiceTableGridData); |
Row | Violation |
---|