/** * Calls {@link ButtonContentFilterListener#showTextChanged(ButtonContentFilter, Dockable, DockAction)} on all * listeners that are currently registered * @param dockable the dockable for which the result of {@link #showText(Dockable, DockAction)} changed, can be <code>null</code> * @param action the action for which the result of {@link #showText(Dockable, DockAction)} changed, can be <code>null</code> */ protected void fire( Dockable dockable, DockAction action ){ for( ButtonContentFilterListener listener : listeners.toArray( new ButtonContentFilterListener[ listeners.size() ] )){ listener.showTextChanged( this, dockable, action ); } }
/** * Calls {@link ButtonContentFilterListener#showTextChanged(ButtonContentFilter, Dockable, DockAction)} on all * listeners that are currently registered * @param dockable the dockable for which the result of {@link #showText(Dockable, DockAction)} changed, can be <code>null</code> * @param action the action for which the result of {@link #showText(Dockable, DockAction)} changed, can be <code>null</code> */ protected void fire( Dockable dockable, DockAction action ){ for( ButtonContentFilterListener listener : listeners.toArray( new ButtonContentFilterListener[ listeners.size() ] )){ listener.showTextChanged( this, dockable, action ); } }