Browse Source

REPORT-61356 fix 统一api使用入口

new-design
hades 3 years ago
parent
commit
5ee8ca1b57
  1. 7
      designer-base/src/main/java/com/fr/design/mainframe/NorthRegionContainerPane.java

7
designer-base/src/main/java/com/fr/design/mainframe/NorthRegionContainerPane.java

@ -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);
}

Loading…
Cancel
Save