public void addListener(INotifyChangedListener notifyChangedListener) { changeNotifier.addListener(notifyChangedListener); } /** * This removes a listener. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void removeListener(INotifyChangedListener notifyChangedListener) { changeNotifier.removeListener(notifyChangedListener); } /** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification);
public void addListener(INotifyChangedListener notifyChangedListener) { changeNotifier.add(notifyChangedListener); } public void removeListener(INotifyChangedListener notifyChangedListener) { changeNotifier.remove(notifyChangedListener); } public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EcoreItemProviderAdapterFactory.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ComposedAdapterFactory.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void addListener(INotifyChangedListener notifyChangedListener)
1
public void addListener(INotifyChangedListener notifyChangedListener)
2
  {
2
  {
3
    changeNotifier.addListener(notifyChangedListener);
3
    changeNotifier.add(notifyChangedListener);
4
  }
4
  }
5
  /**
6
   * This removes a listener.
7
   * <!-- begin-user-doc -->
8
   * <!-- end-user-doc -->
9
   * @generated
10
   */
11
  public void removeListener(INotifyChangedListener notifyChangedListener)
5
  public void removeListener(INotifyChangedListener notifyChangedListener)
12
  {
6
  {
13
    changeNotifier.removeListener(notifyChangedListener);
7
    changeNotifier.remove(notifyChangedListener);
14
  }
8
  }
15
  /**
16
   * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
17
   * <!-- begin-user-doc -->
18
   * <!-- end-user-doc -->
19
   * @generated
20
   */
21
  public void fireNotifyChanged(Notification notification)
9
  public void fireNotifyChanged(Notification notification)
22
  {
10
  {
23
    changeNotifier.fireNotifyChanged(notification);
11
    changeNotifier.fireNotifyChanged(notification);
24
    if (parentAdapterFactory != null)
12
    if (parentAdapterFactory != null)
25
    {
13
    {
26
      parentAdapterFactory.fireNotifyChanged(notification);
14
      parentAdapterFactory.fireNotifyChanged(notification);
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