/** * Notifies all listeners that this context has changed. This sends the * given event to all of the listeners, if any. * * @param event * The event to send to the listeners; must not be * <code>null</code>. */ private final void fireContextChanged(final ContextEvent event) { if (event == null) { throw new NullPointerException("Cannot send a null event to listeners."); //$NON-NLS-1$ } if (listeners == null) { return; } final Iterator<IContextListener> listenerItr = listeners.iterator(); while (listenerItr.hasNext()) { final IContextListener listener = listenerItr.next(); listener.contextChanged(event); } }
/** * Notifies all listeners that this context has changed. This sends the * given event to all of the listeners, if any. * * @param event * The event to send to the listeners; must not be * <code>null</code>. */ private final void fireContextChanged(final ContextEvent event) { if (event == null) { throw new NullPointerException("Cannot send a null event to listeners."); //$NON-NLS-1$ } if (listeners == null) { return; } final Iterator<IContextListener> listenerItr = listeners.iterator(); while (listenerItr.hasNext()) { final IContextListener listener = listenerItr.next(); listener.contextChanged(event); } }
/** * Notifies all listeners that this context has changed. This sends the * given event to all of the listeners, if any. * * @param event * The event to send to the listeners; must not be * <code>null</code>. */ private final void fireContextChanged(final ContextEvent event) { if (event == null) { throw new NullPointerException("Cannot send a null event to listeners."); //$NON-NLS-1$ } if (listeners == null) { return; } final Iterator<IContextListener> listenerItr = listeners.iterator(); while (listenerItr.hasNext()) { final IContextListener listener = listenerItr.next(); listener.contextChanged(event); } }