CloneSet274


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30230.976class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
130145
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/provider/EEnumItemProvider.java
230143
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/provider/EModelElementItemProvider.java
Next
Last
Clone Instance
1
Line Count
30
Source Line
145
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/provider/EEnumItemProvider.java

/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@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()));
}


First
Previous
Clone Instance
2
Line Count
30
Source Line
143
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/provider/EModelElementItemProvider.java

/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@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 AbstractionParameter Count: 3Parameter Bindings

/**
   * This handles model notifications by calling {@link #updateChildren} to update any cached
   * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
@Override public void notifyChanged(Notification notification) {
  updateChildren(notification);
  switch (notification.getFeatureID( [[#variable171e8ac0]].class )) {
    case EcorePackage. [[#variable171e8b20]]:
      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. [[#variable171e8b20]], EcoreFactory.eINSTANCE. [[#variable171e0b00]]()));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#171e8ac0]]
EEnum 
12[[#171e8ac0]]
EModelElement 
21[[#171e8b20]]
EENUM__ELITERALS 
22[[#171e8b20]]
EMODEL_ELEMENT__EANNOTATIONS 
31[[#171e0b00]]
createEEnumLiteral 
32[[#171e0b00]]
createEAnnotation