Browse Source

REPORT-70481 远程设计切换校验机制优化

1.删除多余代码;2.工具类判空
feature/x
Yvan 2 years ago
parent
commit
ebc91e18e0
  1. 5
      designer-base/src/main/java/com/fr/design/plugin/remind/PluginInvalidateRemindDialog.java

5
designer-base/src/main/java/com/fr/design/plugin/remind/PluginInvalidateRemindDialog.java

@ -1,5 +1,6 @@
package com.fr.design.plugin.remind; package com.fr.design.plugin.remind;
import com.fr.common.util.Collections;
import com.fr.design.actions.UpdateAction; import com.fr.design.actions.UpdateAction;
import com.fr.design.gui.ibutton.UIButton; import com.fr.design.gui.ibutton.UIButton;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
@ -12,7 +13,6 @@ import com.fr.general.FRFont;
import com.fr.general.IOUtils; import com.fr.general.IOUtils;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import com.fr.plugin.context.PluginMarker; import com.fr.plugin.context.PluginMarker;
import com.fr.plugin.injectable.PluginModule;
import com.fr.plugin.manage.PluginManager; import com.fr.plugin.manage.PluginManager;
import com.fr.plugin.manage.control.PluginTaskCallback; import com.fr.plugin.manage.control.PluginTaskCallback;
import com.fr.plugin.manage.control.PluginTaskResult; import com.fr.plugin.manage.control.PluginTaskResult;
@ -98,7 +98,6 @@ public class PluginInvalidateRemindDialog extends JDialog implements ActionListe
topPane.add(imagePanel, BorderLayout.WEST); topPane.add(imagePanel, BorderLayout.WEST);
topPane.add(verticalPanel, BorderLayout.CENTER); topPane.add(verticalPanel, BorderLayout.CENTER);
// topPane.setPreferredSize(DesignSizeI18nManager.getInstance().i18nDimension("com.fr.design.plugin.remind.PluginInvalidateRemindDialog.topPane"));
topPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 20)); topPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 20));
return topPane; return topPane;
} }
@ -191,7 +190,7 @@ public class PluginInvalidateRemindDialog extends JDialog implements ActionListe
* @param toDelete * @param toDelete
*/ */
private void deleteEmbedPlugins(List<PluginMarker> toDelete) { private void deleteEmbedPlugins(List<PluginMarker> toDelete) {
if (toDelete == null) { if (Collections.isEmpty(toDelete)) {
return; return;
} }
for (PluginMarker pluginMarker : toDelete) { for (PluginMarker pluginMarker : toDelete) {

Loading…
Cancel
Save