File path: /emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreModelWizard.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreModelWizard.java | |||
Method name: void createControlGen(Composite)
|
Method name: void createControlGen(Composite)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | Label containerLabel = new Label(composite, SWT.LEFT);↵ | 1 | Label encodingLabel = new Label(composite, SWT.LEFT);↵ | |
2 | {↵ | 2 | {↵ | |
3 | containerLabel.setText(EcoreEditorPlugin.INSTANCE.getString("_UI_ModelObject"));↵ | 3 | encodingLabel.setText(EcoreEditorPlugin.INSTANCE.getString("_UI_XMLEncoding"));↵ | |
4 | GridData data = new GridData();↵ | 4 | GridData data = new GridData();↵ | |
5 | data.horizontalAlignment = GridData.FILL;↵ | 5 | data.horizontalAlignment = GridData.FILL;↵ | |
6 | containerLabel.setLayoutData(data);↵ | 6 | encodingLabel.setLayoutData(data);↵ | |
7 | }↵ | 7 | }↵ | |
8 | initialObjectField = new Combo(composite, SWT.BORDER);↵ | 8 | encodingField = new Combo(composite, SWT.BORDER);↵ | |
9 | {↵ | 9 | {↵ | |
10 | GridData data = new GridData();↵ | 10 | GridData data = new GridData();↵ | |
11 | data.horizontalAlignment = GridData.FILL;↵ | 11 | data.horizontalAlignment = GridData.FILL;↵ | |
12 | data.grabExcessHorizontalSpace = true;↵ | 12 | data.grabExcessHorizontalSpace = true;↵ | |
13 | initialObjectField.setLayoutData(data); | 13 | encodingField.setLayoutData(data); | |
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 | 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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | Label containerLabel = new Label(composite, SWT.LEFT); |
| 26 | Label encodingLabel = new Label(composite, SWT.LEFT); | |||||||||||||
12 | containerLabel.setText(EcoreEditorPlugin.INSTANCE.getString("_UI_ModelObject")); |
| 27 | encodingLabel.setText(EcoreEditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); | |||||||||||||
13 | GridData data = new GridData(); | 28 | GridData data = new GridData(); | ||||||||||||||
14 | data.horizontalAlignment = GridData.FILL; | 29 | data.horizontalAlignment = GridData.FILL; | ||||||||||||||
15 | containerLabel.setLayoutData(data); |
| 30 | encodingLabel.setLayoutData(data); | |||||||||||||
16 | initialObjectField = new Combo(composite, SWT.BORDER); |
| 31 | encodingField = new Combo(composite, SWT.BORDER); | |||||||||||||
17 | GridData data = new GridData(); | 32 | GridData data = new GridData(); | ||||||||||||||
18 | data.horizontalAlignment = GridData.FILL; | 33 | data.horizontalAlignment = GridData.FILL; | ||||||||||||||
19 | data.grabExcessHorizontalSpace = true; | 34 | data.grabExcessHorizontalSpace = true; | ||||||||||||||
20 | initialObjectField.setLayoutData(data); |
| 35 | encodingField.setLayoutData(data); |
Row | Violation |
---|---|
1 | Expression initialObjectField is a field being modified, and thus it cannot be parameterized |
2 | Expression encodingField is a field being modified, and thus it cannot be parameterized |
3 | Expression initialObjectField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression encodingField cannot be parameterized, because it has dependencies to/from statements that will be extracted |