Class ContentChangeNotifier

java.lang.Object
org.eclipse.compare.internal.ContentChangeNotifier
All Implemented Interfaces:
IContentChangeNotifier

public class ContentChangeNotifier extends Object implements IContentChangeNotifier
A helper class for managing content change notification.
  • Constructor Details

  • Method Details

    • addContentChangeListener

      public void addContentChangeListener(IContentChangeListener listener)
      Description copied from interface: IContentChangeNotifier
      Adds a content change listener to this notifier. Has no effect if an identical listener is already registered.
      Specified by:
      addContentChangeListener in interface IContentChangeNotifier
      Parameters:
      listener - a content changed listener
    • removeContentChangeListener

      public void removeContentChangeListener(IContentChangeListener listener)
      Description copied from interface: IContentChangeNotifier
      Removes the given content changed listener from this notifier. Has no effect if the listener is not registered.
      Specified by:
      removeContentChangeListener in interface IContentChangeNotifier
      Parameters:
      listener - a content changed listener
    • fireContentChanged

      public void fireContentChanged()
      Notifies all registered IContentChangeListeners of a content change.
    • isEmpty

      public boolean isEmpty()
      Return whether this notifier is empty (i.e. has no listeners).
      Returns:
      whether this notifier is empty