Browse Source

REPORT-96107 8.0和11.0.2能双开,8.0和11.0.14不能双开--调整

newui
John.Ying-应志浩 2 years ago
parent
commit
7a9d957377
  1. 8
      designer-base/src/main/java/com/fr/design/utils/DesignUtils.java

8
designer-base/src/main/java/com/fr/design/utils/DesignUtils.java

@ -69,9 +69,6 @@ public class DesignUtils {
private static Integer port; private static Integer port;
private static final String TURE = "true";
private static final String DEBUG = "debug";
private static boolean started = false; private static boolean started = false;
@ -84,12 +81,8 @@ public class DesignUtils {
public synchronized static int getPort() { public synchronized static int getPort() {
if (port == null) { if (port == null) {
if (ComparatorUtils.equals(TURE, System.getProperty(DEBUG))) {
setPort(DesignerPort.getInstance().getDebugMessagePort());
} else {
setPort(DesignerPort.getInstance().getMessagePort()); setPort(DesignerPort.getInstance().getMessagePort());
} }
}
return port; return port;
} }
@ -493,6 +486,7 @@ public class DesignUtils {
/** /**
* 获取设计器可用字体 * 获取设计器可用字体
*
* @return * @return
*/ */
public static String[] getAvailableFontFamilyNames4Report() { public static String[] getAvailableFontFamilyNames4Report() {

Loading…
Cancel
Save