Browse Source

REPORT-46585 fix 单个插件监听逻辑保持与之前一致

feature/big-screen
hades 4 years ago
parent
commit
fc501390c2
  1. 4
      designer-base/src/main/java/com/fr/design/PluginClassRefreshManager.java

4
designer-base/src/main/java/com/fr/design/PluginClassRefreshManager.java

@ -42,14 +42,14 @@ public class PluginClassRefreshManager {
private final PluginEventListener beforeAllPluginActive = new PluginEventListener() { private final PluginEventListener beforeAllPluginActive = new PluginEventListener() {
@Override @Override
public void on(PluginEvent event) { public void on(PluginEvent event) {
removePluginListener(); PluginListenerRegistration.getInstance().stopListen(pluginAfterRunEventListener);
} }
}; };
private final PluginEventListener afterAllPluginsActive = new PluginEventListener() { private final PluginEventListener afterAllPluginsActive = new PluginEventListener() {
@Override @Override
public void on(PluginEvent event) { public void on(PluginEvent event) {
addPluginListener(); PluginListenerRegistration.getInstance().listen(PluginEventType.AfterRun, pluginAfterRunEventListener);
if (DesignerLaunchStatus.getStatus() != DesignerLaunchStatus.WORKSPACE_INIT_COMPLETE) { if (DesignerLaunchStatus.getStatus() != DesignerLaunchStatus.WORKSPACE_INIT_COMPLETE) {
HistoryTemplateListCache.getInstance().reloadAllEditingTemplate(); HistoryTemplateListCache.getInstance().reloadAllEditingTemplate();
} }

Loading…
Cancel
Save