Browse Source

Pull request #4856: REPORT-53699 更改监听BeforeAllStop事件

Merge in DESIGN/design from ~VITO/c-design:bugfix/10.0 to bugfix/10.0

* commit 'd99bffbc5826f7e59337bd755485790512dfb8aa':
  REPORT-53699 更改监听BeforeAllStop事件
bugfix/10.0
ju|剧浩宇 3 years ago
parent
commit
03d29ffbf9
  1. 4
      designer-realize/src/main/java/com/fr/design/mainframe/app/DesignerAppUtils.java

4
designer-realize/src/main/java/com/fr/design/mainframe/app/DesignerAppUtils.java

@ -43,7 +43,7 @@ public class DesignerAppUtils {
private static final int DEFAULT_MAX_CACHE_SIZE = 50; private static final int DEFAULT_MAX_CACHE_SIZE = 50;
private static final int DEFAULT_CONCURRENCY_LEVEL = 8; private static final int DEFAULT_CONCURRENCY_LEVEL = 8;
private static final long DEFAULT_EXPIRE_HOURS = 1; private static final long DEFAULT_EXPIRE_HOURS = 1;
private static boolean enablePluginTipDialog = true; private volatile static boolean enablePluginTipDialog = true;
private static final Cache<String, Multimap<String, PluginMarkerAdapter>> ERROR_CACHE = CacheBuilder.newBuilder() private static final Cache<String, Multimap<String, PluginMarkerAdapter>> ERROR_CACHE = CacheBuilder.newBuilder()
.maximumSize(DEFAULT_MAX_CACHE_SIZE) .maximumSize(DEFAULT_MAX_CACHE_SIZE)
@ -52,7 +52,7 @@ public class DesignerAppUtils {
.build(); .build();
public static void initPluginAllActiveListener() { public static void initPluginAllActiveListener() {
PluginListenerRegistration.getInstance().listen(PluginEventType.BeforeAllActive, new PluginEventListener() { PluginListenerRegistration.getInstance().listen(PluginEventType.BeforeAllStop, new PluginEventListener() {
@Override @Override
public void on(PluginEvent event) { public void on(PluginEvent event) {
enablePluginTipDialog = false; enablePluginTipDialog = false;

Loading…
Cancel
Save