File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemPropertyDescriptor.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemPropertyDescriptor.java | |||
Method name: void setPropertyValue(Object, Object)
|
Method name: void setPropertyValue(Object, Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | if (editingDomain == null)↵ | 1 | if (editingDomain == null)↵ | |
2 | {↵ | 2 | ↵ | |
3 | ↵ | 3 | {↵ | |
4 | eObject.eSet(parentReference, value);↵ | 4 | eObject.eSet(feature, value);↵ | |
5 | }↵ | 5 | ↵ | |
6 | ↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | {↵ | 8 | {↵ | |
9 | editingDomain.getCommandStack().execute(SetCommand.create(editingDomain, getCommandOwner(eObject), parentReference, value));↵ | 9 | editingDomain.getCommandStack().execute(SetCommand.create(editingDomain, getCommandOwner(eObject), feature, value));↵ | |
10 | }↵ | 10 |
| |
11 | return; | |||
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.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | if (editingDomain == null) | 32 | if (editingDomain == null) | |||||||||||||||
13 | eObject.eSet(parentReference, value); |
| 33 | eObject.eSet(feature, value); | ||||||||||||||
else | else | |||||||||||||||||
14 | editingDomain.getCommandStack().execute(SetCommand.create(editingDomain, getCommandOwner(eObject), parentReference, value)); |
| 34 | editingDomain.getCommandStack().execute(SetCommand.create(editingDomain, getCommandOwner(eObject), feature, value)); | ||||||||||||||
15 | return; |
| |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EReference of variable parentReference does not match with type org.eclipse.emf.ecore.EStructuralFeature of variable feature |
2 | Type org.eclipse.emf.ecore.EReference of variable parentReference does not match with type org.eclipse.emf.ecore.EStructuralFeature of variable feature |
3 | Unmatched return; |