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