Browse Source

REPORT-61356 fix 统一api使用入口

zheng-1641779399395
hades 3 years ago
parent
commit
c43a01c40c
  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