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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a content change listener to this notifier.voidNotifies all registeredIContentChangeListeners of a content change.booleanisEmpty()Return whether this notifier is empty (i.e. has no listeners).voidRemoves the given content changed listener from this notifier.
-
Constructor Details
-
ContentChangeNotifier
-
-
Method Details
-
addContentChangeListener
Description copied from interface:IContentChangeNotifierAdds a content change listener to this notifier. Has no effect if an identical listener is already registered.- Specified by:
addContentChangeListenerin interfaceIContentChangeNotifier- Parameters:
listener- a content changed listener
-
removeContentChangeListener
Description copied from interface:IContentChangeNotifierRemoves the given content changed listener from this notifier. Has no effect if the listener is not registered.- Specified by:
removeContentChangeListenerin interfaceIContentChangeNotifier- Parameters:
listener- a content changed listener
-
fireContentChanged
public void fireContentChanged()Notifies all registeredIContentChangeListeners 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
-