Package org.eclipse.compare.internal
Class ContentChangeNotifier
java.lang.Object
org.eclipse.compare.internal.ContentChangeNotifier
- All Implemented Interfaces:
IContentChangeNotifier
A helper class for managing content change notification.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a content change listener to this notifier.void
Notifies all registeredIContentChangeListener
s of a content change.boolean
isEmpty()
Return whether this notifier is empty (i.e. has no listeners).void
Removes the given content changed listener from this notifier.
-
Constructor Details
-
ContentChangeNotifier
-
-
Method Details
-
addContentChangeListener
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 interfaceIContentChangeNotifier
- Parameters:
listener
- a content changed listener
-
removeContentChangeListener
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 interfaceIContentChangeNotifier
- Parameters:
listener
- a content changed listener
-
fireContentChanged
public void fireContentChanged()Notifies all registeredIContentChangeListener
s 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
-