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);
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 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/edit/provider/ComposedAdapterFactory.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/tree/provider/TreeItemProviderAdapterFactory.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.add(notifyChangedListener);
3
    changeNotifier.addListener(notifyChangedListener);
4
  }
4
  }
5
  /**
6
   * This removes a listener.
7
   */
5
  public void removeListener(INotifyChangedListener notifyChangedListener)
8
  public void removeListener(INotifyChangedListener notifyChangedListener)
6
  {
9
  {
7
    changeNotifier.remove(notifyChangedListener);
10
    changeNotifier.removeListener(notifyChangedListener);
8
  }
11
  }
12
  /**
13
   * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
14
   */
9
  public void fireNotifyChanged(Notification notification)
15
  public void fireNotifyChanged(Notification notification)
10
  {
16
  {
11
    changeNotifier.fireNotifyChanged(notification);
17
    changeNotifier.fireNotifyChanged(notification);
12
    if (parentAdapterFactory != null)
18
    if (parentAdapterFactory != null)
13
    {
19
    {
14
      parentAdapterFactory.fireNotifyChanged(notification);
20
      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