ju 7 years ago
parent
commit
d0c789075f
  1. 18
      designer_base/src/com/fr/start/BaseDesigner.java

18
designer_base/src/com/fr/start/BaseDesigner.java

@ -62,12 +62,17 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
private Timer timer; private Timer timer;
public BaseDesigner(String[] args) { public BaseDesigner(String[] args) {
init(args);
}
private void init(String[] args) {
RestartHelper.deleteRecordFilesWhenStart(); RestartHelper.deleteRecordFilesWhenStart();
ConfigManagerFactory.registerConfigManagerProxy(new ConfigManagerCreatorProxy()); ConfigManagerFactory.registerConfigManagerProxy(new ConfigManagerCreatorProxy());
//启动core //启动core
BuildContext.setBuildFilePath(buildPropertiesPath()); BuildContext.setBuildFilePath(buildPropertiesPath());
if (isDebug()) { if (isDebug()) {
setDebugEnv(); setDebugEnv();
} else { } else {
@ -83,13 +88,13 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
//标记一下是设计器启动 //标记一下是设计器启动
PluginConversionModule.getInstance().markDesignerStart(); PluginConversionModule.getInstance().markDesignerStart();
SiteCenter.getInstance(); SiteCenter.getInstance();
//下面这两句的位置不能随便调换,因为会影响语言切换的问题 //下面这两句的位置不能随便调换,因为会影响语言切换的问题
initLanguage(); initLanguage();
// 在 initLanguage 之后加载设计器国际化文件,确保是正确的语言环境 // 在 initLanguage 之后加载设计器国际化文件,确保是正确的语言环境
Inter.loadLocaleFile(GeneralContext.getLocale(), DesignModule.LOCALE_FILE_PATH); Inter.loadLocaleFile(GeneralContext.getLocale(), DesignModule.LOCALE_FILE_PATH);
SplashWindow splashWindow = new SplashWindow(createSplashPane()); SplashWindow splashWindow = new SplashWindow(createSplashPane());
if (args != null) { if (args != null) {
for (String arg : args) { for (String arg : args) {
@ -204,7 +209,8 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
//在VM options里加入-Ddebug=true激活 //在VM options里加入-Ddebug=true激活
private boolean isDebug() { private boolean isDebug() {
return "true".equals(System.getProperty("debug"));
return ComparatorUtils.equals("true", System.getProperty("debug"));
} }
private static final int DEBUG_PORT = 51463; private static final int DEBUG_PORT = 51463;

Loading…
Cancel
Save