Browse Source

REPORT-96808 屏蔽设计器系统信息面板中的jxbrowser相关参数

release/11.0
Destiny.Lin 1 year ago
parent
commit
0c906a4831
  1. 16
      designer-base/src/main/java/com/fr/design/actions/help/SystemInfoPane.java

16
designer-base/src/main/java/com/fr/design/actions/help/SystemInfoPane.java

@ -43,11 +43,7 @@ public class SystemInfoPane extends JPanel {
String keyValue = keys[i].toString();
// james:屏蔽掉exe4j的内容
// jxbrowser的也得屏蔽
if (keyValue.indexOf("exe4j") != -1 || keyValue.indexOf("jxbrowser") != -1) {
continue;
}
// james:这个也是exe4j的东东
if ("install4j.exeDir".equals(keyValue)) {
if (needToShield(keyValue)) {
continue;
}
@ -67,4 +63,14 @@ public class SystemInfoPane extends JPanel {
add(new JScrollPane(table), BorderLayout.CENTER);
}
/**
* 是否属于需要屏蔽的内容
*
* @param keyValue 对应的key值
* @return 需要屏蔽则返回true
*/
private boolean needToShield(String keyValue) {
return keyValue.indexOf("exe4j") != -1 || keyValue.indexOf("jxbrowser") != -1 || "install4j.exeDir".equals(keyValue);
}
}
Loading…
Cancel
Save