Browse Source
1-修改退出时的逻辑展示 2-添加 fatalError 的检测 3-工具栏效果 4-优化一下 MessageWithLink 的使用方式 5-补充超链接feature/x
Harrison
3 years ago
13 changed files with 131 additions and 78 deletions
@ -1,8 +1,33 @@ |
|||||||
package com.fr.env.detect.ui; |
package com.fr.env.detect.ui; |
||||||
|
|
||||||
|
import com.fr.design.utils.DevUtils; |
||||||
|
import com.fr.env.detect.bean.DetectorResult; |
||||||
|
import com.fr.env.detect.bean.DetectorType; |
||||||
|
import com.fr.env.detect.bean.ExceptionLog; |
||||||
|
import com.fr.env.detect.bean.ExceptionSolution; |
||||||
|
import com.fr.env.detect.bean.ExceptionTips; |
||||||
|
import com.fr.third.guava.collect.Lists; |
||||||
|
|
||||||
|
import java.awt.Frame; |
||||||
|
import java.util.function.Consumer; |
||||||
|
|
||||||
import static org.junit.Assert.*; |
import static org.junit.Assert.*; |
||||||
|
|
||||||
public class DetectorErrorDialogTest { |
public class DetectorErrorDialogTest { |
||||||
|
|
||||||
|
public static void main(String[] args) { |
||||||
|
|
||||||
|
DevUtils.show(new Consumer<Frame>() { |
||||||
|
@Override |
||||||
|
public void accept(Frame frame) { |
||||||
|
|
||||||
|
DetectorErrorDialog dialog = new DetectorErrorDialog(frame, Lists.newArrayList(DetectorResult.exception(DetectorType.FINE_DB_PERMISSION, |
||||||
|
ExceptionTips.create("test"), |
||||||
|
ExceptionSolution.create("111<a href=\"\">test</a>222", "www.baidu.com", null), |
||||||
|
ExceptionLog.create("log")))); |
||||||
|
dialog.setVisible(true); |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
} |
} |
Loading…
Reference in new issue