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 SummaryConstructors
- 
Method SummaryModifier 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- 
addContentChangeListenerDescription copied from interface:IContentChangeNotifierAdds a content change listener to this notifier. Has no effect if an identical listener is already registered.- Specified by:
- addContentChangeListenerin interface- IContentChangeNotifier
- Parameters:
- listener- a content changed listener
 
- 
removeContentChangeListenerDescription copied from interface:IContentChangeNotifierRemoves the given content changed listener from this notifier. Has no effect if the listener is not registered.- Specified by:
- removeContentChangeListenerin interface- IContentChangeNotifier
- Parameters:
- listener- a content changed listener
 
- 
fireContentChangedpublic void fireContentChanged()Notifies all registeredIContentChangeListeners of a content change.
- 
isEmptypublic boolean isEmpty()Return whether this notifier is empty (i.e. has no listeners).- Returns:
- whether this notifier is empty
 
 
-