|
|
|
@ -18,7 +18,6 @@ import com.fr.plugin.manage.PluginFilter;
|
|
|
|
|
import com.fr.plugin.observer.PluginEvent; |
|
|
|
|
import com.fr.plugin.observer.PluginEventListener; |
|
|
|
|
import com.fr.plugin.observer.PluginEventType; |
|
|
|
|
import com.fr.plugin.observer.PluginListenerRegistration; |
|
|
|
|
import com.fr.stable.os.support.OSBasedAction; |
|
|
|
|
import com.fr.stable.os.support.OSSupportCenter; |
|
|
|
|
|
|
|
|
@ -110,7 +109,7 @@ public class NorthRegionContainerPane extends JPanel {
|
|
|
|
|
PluginEventListener beforeAllPluginStopListener = new PluginEventListener() { |
|
|
|
|
@Override |
|
|
|
|
public void on(PluginEvent event) { |
|
|
|
|
PluginListenerRegistration.getInstance().stopListen(pluginOnRunOrStopListener); |
|
|
|
|
GeneralContext.stopListenPlugin(pluginOnRunOrStopListener); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
PluginEventListener pluginEventListener = new PluginEventListener() { |
|
|
|
@ -120,8 +119,8 @@ public class NorthRegionContainerPane extends JPanel {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
GeneralContext.listenPluginRunningChanged(pluginEventListener, pluginFilter); |
|
|
|
|
PluginListenerRegistration.getInstance().listen(PluginEventType.AfterAllActive, afterAllPluginsActiveListener); |
|
|
|
|
PluginListenerRegistration.getInstance().listen(PluginEventType.BeforeAllStop, beforeAllPluginStopListener); |
|
|
|
|
GeneralContext.listenPlugin(PluginEventType.AfterAllActive, afterAllPluginsActiveListener); |
|
|
|
|
GeneralContext.listenPlugin(PluginEventType.BeforeAllStop, beforeAllPluginStopListener); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|