@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(EEnum.class)) { case EcorePackage.EENUM__ELITERALS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); } /** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (EcorePackage.Literals.EENUM__ELITERALS, EcoreFactory.eINSTANCE.createEEnumLiteral()));
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(EModelElement.class)) { case EcorePackage.EMODEL_ELEMENT__EANNOTATIONS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); } /** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (EcorePackage.Literals.EMODEL_ELEMENT__EANNOTATIONS, EcoreFactory.eINSTANCE.createEAnnotation()));
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EEnumItemProvider.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EModelElementItemProvider.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
@Override
1
@Override
2
  public void notifyChanged(Notification notification)
2
  public void notifyChanged(Notification notification)
3
  {
3
  {
4
    updateChildren(notification);
4
    updateChildren(notification);
5
    switch (notification.getFeatureID(EEnum.class))
5
    switch (notification.getFeatureID(EModelElement.class))
6
    {
6
    {
7
      case EcorePackage.EENUM__ELITERALS:
7
      case EcorePackage.EMODEL_ELEMENT__EANNOTATIONS:
8
        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
8
        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
9
        return;
9
        return;
10
    }
10
    }
11
    super.notifyChanged(notification);
11
    super.notifyChanged(notification);
12
  }
12
  }
13
  /**
13
  /**
14
   * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
14
   * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
15
   * that can be created under this object.
15
   * that can be created under this object.
16
   * <!-- begin-user-doc -->
16
   * <!-- begin-user-doc -->
17
   * <!-- end-user-doc -->
17
   * <!-- end-user-doc -->
18
   * @generated
18
   * @generated
19
   */
19
   */
20
  @Override
20
  @Override
21
  protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object)
21
  protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object)
22
  {
22
  {
23
    super.collectNewChildDescriptors(newChildDescriptors, object);
23
    super.collectNewChildDescriptors(newChildDescriptors, object);
24
    newChildDescriptors.add
24
    newChildDescriptors.add
25
      (createChildParameter
25
      (createChildParameter
26
        (EcorePackage.Literals.EENUM__ELITERALS,
26
        (EcorePackage.Literals.EMODEL_ELEMENT__EANNOTATIONS,
27
         EcoreFactory.eINSTANCE.createEEnumLiteral()));
27
         EcoreFactory.eINSTANCE.createEAnnotation()));
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0