File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EFactoryItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EModelElementItemProvider.java | |||
Method name: void notifyChanged(Notification)
|
Method name: void notifyChanged(Notification)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | updateChildren(notification);↵ | 1 | updateChildren(notification);↵ | |
2 | switch (notification.getFeatureID(EFactory.class))↵ | 2 | switch (notification.getFeatureID(EModelElement.class))↵ | |
3 | {↵ | 3 | {↵ | |
4 | case EcorePackage.EFACTORY__EPACKAGE:↵ | 4 | case EcorePackage.EMODEL_ELEMENT__EANNOTATIONS:↵ | |
5 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵ | 5 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));↵ | |
6 | return;↵ | 6 | return;↵ | |
7 | }↵ | 7 | }↵ | |
8 | super.notifyChanged(notification); | 8 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 6 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | updateChildren(notification); | 1 | updateChildren(notification); | ||||||||||||||
2 | switch (notification.getFeatureID(EFactory.class)) | 2 | switch (notification.getFeatureID(EModelElement.class)) | ||||||||||||||
3 | case EcorePackage.EFACTORY__EPACKAGE: |
| 3 | case EcorePackage.EMODEL_ELEMENT__EANNOTATIONS: | |||||||||||||
4 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); |
| 4 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); | |||||||||||||
5 | return; | 5 | return; | ||||||||||||||
6 | super.notifyChanged(notification); | 6 | super.notifyChanged(notification); |
Row | Violation |
---|