Browse Source

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

【问题原因】没有对消息做判空
【改动思路】1.添加判空,当不存在内置插件时,不推送消息通知;2.调一下提示语的间隔
【review建议】无
feature/x
Yvan 2 years ago
parent
commit
2026322139
  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.plugin.error.PluginErrorReminder;
import com.fr.stable.StableUtils; import com.fr.stable.StableUtils;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.stable.collections.CollectionUtils;
import com.fr.workspace.WorkContext; import com.fr.workspace.WorkContext;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
@ -64,7 +65,7 @@ public class PluginErrorDesignReminder implements PluginErrorReminder {
} }
// 获取失效插件名称列表 // 获取失效插件名称列表
List<String> embedPluginNames = PluginErrorRemindHandler.getInvalidateEmbedPluginNames(); List<String> embedPluginNames = PluginErrorRemindHandler.getInvalidateEmbedPluginNames();
if (embedPluginNames.size() > 0) { if (!CollectionUtils.isEmpty(embedPluginNames)) {
// 构建消息 // 构建消息
String message = generateMessageContent(embedPluginNames); String message = generateMessageContent(embedPluginNames);
Notification notification = generateNotification(message, embedPluginNames); Notification notification = generateNotification(message, embedPluginNames);

Loading…
Cancel
Save