|
|
@ -310,9 +310,14 @@ public class EnvChangeEntrance { |
|
|
|
|
|
|
|
|
|
|
|
String content = PluginErrorRemindHandler.pluginErrorContent(); |
|
|
|
String content = PluginErrorRemindHandler.pluginErrorContent(); |
|
|
|
if (StringUtils.isNotEmpty(content)) { |
|
|
|
if (StringUtils.isNotEmpty(content)) { |
|
|
|
SwingUtilities.invokeLater(() -> { |
|
|
|
// 该操作需要在当前awt操作之后执行,使用SwingUtilities.invokeLater将其置于awt操作对列末尾
|
|
|
|
PluginErrorRemindDialog dialog = new PluginErrorRemindDialog(DesignerContext.getDesignerFrame(), content); |
|
|
|
// 若使用UIUtil.invokeLaterIfNeeded,会立即执行,影响其他UI操作
|
|
|
|
dialog.setVisible(true); |
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void run() { |
|
|
|
|
|
|
|
PluginErrorRemindDialog dialog = new PluginErrorRemindDialog(DesignerContext.getDesignerFrame(), content); |
|
|
|
|
|
|
|
dialog.setVisible(true); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|