Browse Source

REPORT-76061【迭代】【起始页】起始页已打开,系统文件夹直接打开模板

1-文件名变更为全文件名
2-支持 mac
feature/x
Harrison 2 years ago
parent
commit
47a44a711e
  1. 4
      designer-realize/src/main/java/com/fr/design/deeplink/FileOpen4MacDeepLink.java

4
designer-realize/src/main/java/com/fr/design/deeplink/FileOpen4MacDeepLink.java

@ -4,6 +4,7 @@ import com.fr.design.mainframe.DesignerContext;
import com.fr.file.FileFILE; import com.fr.file.FileFILE;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.stable.os.OperatingSystem; import com.fr.stable.os.OperatingSystem;
import com.fr.start.common.DesignerStartupUtil;
import java.io.File; import java.io.File;
import java.util.Map; import java.util.Map;
@ -23,6 +24,9 @@ public class FileOpen4MacDeepLink extends DeepLink {
public void run(String url, String host, String path, Map<String, Object> params) { public void run(String url, String host, String path, Map<String, Object> params) {
File file = new File(url); File file = new File(url);
if (file.exists()) { if (file.exists()) {
if (DesignerStartupUtil.openTemplateIfOnWaiting(file)) {
return;
}
DesignerContext.getDesignerFrame().openTemplate(new FileFILE(file)); DesignerContext.getDesignerFrame().openTemplate(new FileFILE(file));
} }
} }

Loading…
Cancel
Save