|
|
|
@ -3,6 +3,7 @@ package com.fr.start.common;
|
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
|
import com.fr.design.env.DesignerWorkspaceType; |
|
|
|
|
import com.fr.file.FileFILE; |
|
|
|
|
import com.fr.start.module.StartupArgs; |
|
|
|
|
import com.fr.startup.metric.DesignerMetrics; |
|
|
|
|
import com.fr.startup.ui.StartupPageModel; |
|
|
|
@ -64,6 +65,11 @@ public class DesignerStartupContext {
|
|
|
|
|
*/ |
|
|
|
|
private boolean createNew; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 启动的模板 |
|
|
|
|
*/ |
|
|
|
|
private FileFILE startingTemplateFile; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 时间记录 |
|
|
|
|
*/ |
|
|
|
@ -72,7 +78,7 @@ public class DesignerStartupContext {
|
|
|
|
|
public static DesignerStartupContext getInstance() { |
|
|
|
|
return StartupContextHolder.INSTANCE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static class StartupContextHolder { |
|
|
|
|
private static final DesignerStartupContext INSTANCE = new DesignerStartupContext(); |
|
|
|
|
} |
|
|
|
@ -87,6 +93,14 @@ public class DesignerStartupContext {
|
|
|
|
|
|
|
|
|
|
/* 启动模式 */ |
|
|
|
|
|
|
|
|
|
public FileFILE getStartingTemplateFile() { |
|
|
|
|
return startingTemplateFile; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setStartingTemplateFile(FileFILE startingTemplateFile) { |
|
|
|
|
this.startingTemplateFile = startingTemplateFile; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 展示启动页 |
|
|
|
|
* 1. 判断当前的工作目录数量 |
|
|
|
|