Browse Source

Pull request #1791: REPORT-33500 添加日志面板清除日志后同时清除设计器右上角日志提示信息功能

Merge in DESIGN/design from ~YUAN.WANG/design:release/10.0 to release/10.0

* commit 'bf1b315dcae41d94986d06f1826e5de8eee40ffd':
  REPORT-34351 ""改为StringUtils.EMPTY
  REPORT-33500 日志面板清除日志后同时清除设计器右上角日志提示信息
feature/big-screen
Yuan.Wang 4 years ago
parent
commit
09784224ef
  1. 1
      designer-base/src/main/java/com/fr/design/mainframe/loghandler/LogHandlerBar.java
  2. 6
      designer-base/src/main/java/com/fr/design/mainframe/loghandler/LogMessageBar.java

1
designer-base/src/main/java/com/fr/design/mainframe/loghandler/LogHandlerBar.java

@ -93,6 +93,7 @@ public class LogHandlerBar extends JPanel implements ItemSelectable {
public void clearMessage() {
INFONUM = ERRORNUM = SERVERNUM = 0;
LogMessageBar.getInstance().clear();
changeLabel();
}

6
designer-base/src/main/java/com/fr/design/mainframe/loghandler/LogMessageBar.java

@ -2,6 +2,7 @@ package com.fr.design.mainframe.loghandler;
import com.fr.design.constants.UIConstants;
import com.fr.design.gui.ilable.UILabel;
import com.fr.stable.StringUtils;
import javax.swing.JFrame;
@ -63,6 +64,11 @@ public class LogMessageBar extends JPanel {
repaint();
}
public void clear() {
messageLabel.setText(StringUtils.EMPTY);
repaint();
}
public void setLoggerBarWidth(int width) {
this.width = width;
}

Loading…
Cancel
Save