Browse Source

Pull request #9349: REPORT-74411 插件-插件管理机制优化-当本地不存在内置插件的时候,平台还是会收到内置通知

Merge in DESIGN/design from ~YVAN/design:feature/x to feature/x

* commit '62a0f227cefa7f36aa1937486b5db2ce52e23f6b':
  REPORT-74411 插件-插件管理机制优化-当本地不存在内置插件的时候,平台还是会收到内置通知 【问题原因】没有对消息做判空 【改动思路】1.添加判空,当不存在内置插件时,不推送消息通知;2.调一下提示语的间隔 【review建议】无
feature/x
Yvan 3 years ago
parent
commit
3ec5b0eb8f
  1. 3
      designer-base/src/main/java/com/fr/design/plugin/remind/PluginErrorDesignReminder.java

3
designer-base/src/main/java/com/fr/design/plugin/remind/PluginErrorDesignReminder.java

@ -9,6 +9,7 @@ import com.fr.plugin.error.PluginErrorRemindHandler;
import com.fr.plugin.error.PluginErrorReminder;
import com.fr.stable.StableUtils;
import com.fr.stable.StringUtils;
import com.fr.stable.collections.CollectionUtils;
import com.fr.workspace.WorkContext;
import javax.swing.SwingUtilities;
@ -64,7 +65,7 @@ public class PluginErrorDesignReminder implements PluginErrorReminder {
}
// 获取失效插件名称列表
List<String> embedPluginNames = PluginErrorRemindHandler.getInvalidateEmbedPluginNames();
if (embedPluginNames.size() > 0) {
if (!CollectionUtils.isEmpty(embedPluginNames)) {
// 构建消息
String message = generateMessageContent(embedPluginNames);
Notification notification = generateNotification(message, embedPluginNames);

Loading…
Cancel
Save