|
|
@ -861,6 +861,11 @@ public abstract class AbstractPluginManager implements PluginManager { |
|
|
|
* @param event the plugin state event |
|
|
|
* @param event the plugin state event |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected synchronized void firePluginStateEvent(PluginStateEvent event) { |
|
|
|
protected synchronized void firePluginStateEvent(PluginStateEvent event) { |
|
|
|
|
|
|
|
if (event.getPluginState() == event.getOldState()) { |
|
|
|
|
|
|
|
// ignore events without state change
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (PluginStateListener listener : pluginStateListeners) { |
|
|
|
for (PluginStateListener listener : pluginStateListeners) { |
|
|
|
log.trace("Fire '{}' to '{}'", event, listener); |
|
|
|
log.trace("Fire '{}' to '{}'", event, listener); |
|
|
|
listener.pluginStateChanged(event); |
|
|
|
listener.pluginStateChanged(event); |
|
|
|