/** * Notifies all listeners that this parameter type 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 fireParameterTypeChanged(final ParameterTypeEvent event) { if (event == null) { throw new NullPointerException( "Cannot send a null event to listeners."); //$NON-NLS-1$ } if (!isListenerAttached()) { return; } for (Object listener : getListeners()) { final IParameterTypeListener parameterTypeListener = (IParameterTypeListener) listener; parameterTypeListener.parameterTypeChanged(event); } }
/** * Notifies all listeners that this parameter type 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 fireParameterTypeChanged(final ParameterTypeEvent event) { if (event == null) { throw new NullPointerException( "Cannot send a null event to listeners."); //$NON-NLS-1$ } if (!isListenerAttached()) { return; } final Object[] listeners = getListeners(); for (int i = 0; i < listeners.length; i++) { final IParameterTypeListener listener = (IParameterTypeListener) listeners[i]; listener.parameterTypeChanged(event); } }
/** * Notifies all listeners that this parameter type 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 fireParameterTypeChanged(final ParameterTypeEvent event) { if (event == null) { throw new NullPointerException( "Cannot send a null event to listeners."); //$NON-NLS-1$ } if (!isListenerAttached()) { return; } final Object[] listeners = getListeners(); for (int i = 0; i < listeners.length; i++) { final IParameterTypeListener listener = (IParameterTypeListener) listeners[i]; listener.parameterTypeChanged(event); } }