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.addListener(notifyChangedListener); } /** * This removes a listener. */ public void removeListener(INotifyChangedListener notifyChangedListener) { changeNotifier.removeListener(notifyChangedListener); } /** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. */ public void fireNotifyChanged(Notification msg) { changeNotifier.fireNotifyChanged(msg); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(msg);
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/mapping/provider/MappingItemProviderAdapterFactory.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.addListener(notifyChangedListener);
4
  }
4
  }
5
  /**
5
  /**
6
   * This removes a listener.
6
   * This removes a listener.
7
   * <!-- begin-user-doc -->
8
   * <!-- end-user-doc -->
9
   * @generated
10
   */
7
   */
11
  public void removeListener(INotifyChangedListener notifyChangedListener)
8
  public void removeListener(INotifyChangedListener notifyChangedListener)
12
  {
9
  {
13
    changeNotifier.removeListener(notifyChangedListener);
10
    changeNotifier.removeListener(notifyChangedListener);
14
  }
11
  }
15
  /**
12
  /**
16
   * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
13
   * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
17
   * <!-- begin-user-doc -->
18
   * <!-- end-user-doc -->
19
   * @generated
20
   */
14
   */
21
  public void fireNotifyChanged(Notification notification)
15
  public void fireNotifyChanged(Notification msg)
22
  {
16
  {
23
    changeNotifier.fireNotifyChanged(notification);
17
     changeNotifier.fireNotifyChanged(msg);
24
    if (parentAdapterFactory != null)
18
    if (parentAdapterFactory != null)
25
    {
19
    {
26
      parentAdapterFactory.fireNotifyChanged(notification);
20
      parentAdapterFactory.fireNotifyChanged(msg);
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