Browse Source

无 JIRA 任务,补充注释

feature/x
Harrison 2 years ago
parent
commit
3910005fe8
  1. 4
      designer-base/src/main/java/com/fr/design/components/notification/NotificationDialog.java
  2. 1
      designer-base/src/main/java/com/fr/env/detect/impl/JarInconsistentDetector.java
  3. 1
      designer-realize/src/main/java/com/fr/start/FineDesigner.java
  4. 2
      designer-realize/src/main/java/com/fr/start/LifecycleFatalErrorHandler.java

4
designer-base/src/main/java/com/fr/design/components/notification/NotificationDialog.java

@ -154,7 +154,9 @@ public class NotificationDialog extends JDialog {
}) })
.collect(Collectors.toList()); .collect(Collectors.toList());
Function<Double, Integer> calStandardWidth = e -> e > 4 ? 280 : 300; // 当高度 / 15(每个字的大小) 大于 4 时,就会出现滚动条。
// 当出现滚动条时,需要将内部的宽度限制为 280, 否则会展示不出来
Function<Double, Integer> calStandardWidth = heightFactor -> heightFactor > 4 ? 280 : 300;
int widthUnit = messageComponents.stream() int widthUnit = messageComponents.stream()
.map((component) -> { .map((component) -> {

1
designer-base/src/main/java/com/fr/env/detect/impl/JarInconsistentDetector.java vendored

@ -145,6 +145,7 @@ public class JarInconsistentDetector extends AbstractExceptionDetector {
for (BuildInfo localInfo : localInfos) { for (BuildInfo localInfo : localInfos) {
String jar = localInfo.getJar(); String jar = localInfo.getJar();
String groupContent = localInfo.getGroupBuild(); String groupContent = localInfo.getGroupBuild();
// 不一致的 JAR 检测,忽视缺少的情况
if (StringUtils.isNotEmpty(groupContent)) { if (StringUtils.isNotEmpty(groupContent)) {
localMap.put(jar, groupContent); localMap.put(jar, groupContent);
} }

1
designer-realize/src/main/java/com/fr/start/FineDesigner.java

@ -25,6 +25,7 @@ public class FineDesigner extends FineProcessEntry {
try { try {
super.run(args); super.run(args);
} catch (Throwable throwable) { } catch (Throwable throwable) {
// 守护进程启动时,需要捕获异常。并且退出。
DesignerExiter.getInstance().exit(throwable); DesignerExiter.getInstance().exit(throwable);
} }
} }

2
designer-realize/src/main/java/com/fr/start/LifecycleFatalErrorHandler.java

@ -94,7 +94,7 @@ public class LifecycleFatalErrorHandler {
.collect(Collectors.toList()); .collect(Collectors.toList());
String showText = generateShowText(results); String showText = generateShowText(results);
// 如果还是异常,抛出预期外的错误 // 如果还是异常,说明并不是 DB 的异常,抛出预期外的错误
if (StringUtils.isEmpty(showText)) { if (StringUtils.isEmpty(showText)) {
DesignerFrame designerFrame = DesignerContext.getDesignerFrame(); DesignerFrame designerFrame = DesignerContext.getDesignerFrame();
DetectorErrorDialog errorDialog = new DetectorErrorDialog(designerFrame, results); DetectorErrorDialog errorDialog = new DetectorErrorDialog(designerFrame, results);

Loading…
Cancel
Save