|
|
@ -2,7 +2,9 @@ package com.fr.startup.ui; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
|
|
|
|
import com.fr.design.env.DesignerWorkspaceType; |
|
|
|
import com.fr.third.guava.collect.Lists; |
|
|
|
import com.fr.third.guava.collect.Lists; |
|
|
|
|
|
|
|
import com.fr.workspace.connect.WorkspaceConnectionInfo; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
@ -36,7 +38,12 @@ public class StartupPageModel { |
|
|
|
.stream() |
|
|
|
.stream() |
|
|
|
.map((e) -> { |
|
|
|
.map((e) -> { |
|
|
|
DesignerWorkspaceInfo workspaceInfo = envManager.getWorkspaceInfo(e); |
|
|
|
DesignerWorkspaceInfo workspaceInfo = envManager.getWorkspaceInfo(e); |
|
|
|
return new StartupWorkspaceBean(e, workspaceInfo.getPath(), workspaceInfo.getType()); |
|
|
|
if (workspaceInfo.getType() == DesignerWorkspaceType.Remote) { |
|
|
|
|
|
|
|
WorkspaceConnectionInfo connection = workspaceInfo.getConnection(); |
|
|
|
|
|
|
|
return new StartupWorkspaceBean(e, connection.getUrl(), workspaceInfo.getType()); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return new StartupWorkspaceBean(e, workspaceInfo.getPath(), workspaceInfo.getType()); |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
.collect(Collectors.toList()); |
|
|
|
Map<String, List<String>> recentFileMap = new HashMap<>(); |
|
|
|
Map<String, List<String>> recentFileMap = new HashMap<>(); |
|
|
|